whitelister-eternal/src/test.ts
2024-07-26 00:24:03 -04:00

18 lines
303 B
TypeScript

export interface Test {
name(): string;
test(ip: string): Promise<TestResult>;
}
export enum TestResult {
PASS,
FAIL,
WARN,
ERROR,
}
export const TestResultStrings = {
[TestResult.PASS]: "PASS",
[TestResult.FAIL]: "FAIL",
[TestResult.WARN]: "WARN",
[TestResult.ERROR]: "ERROR",
};