mirror of
https://github.com/PR0M3TH3AN/bitgate.git
synced 2026-11-06 21:41:00 +00:00
feat: add fixture import harness and conformance test framework for BitVid parity cases
This commit is contained in:
1 parent
10326a2804
commit
1002185a03
8 files changed
+249
-20
No files matched your search
@@ -0,0 +1,47 @@
|
||||
// Test harness for BitVid parity cases
|
||||
import { describe, it, expect } from "vitest";
|
||||
|
||||
// BitVid parity characterization cases
|
||||
const BITVID_CHARACTERIZATION_CASES = [
|
||||
"personal-block-precedence",
|
||||
"user-deny",
|
||||
"event-deny",
|
||||
"address-deny",
|
||||
"allowlist-miss",
|
||||
"protected-target",
|
||||
"trusted-report-threshold-reached",
|
||||
"duplicate-reporter-dedupe",
|
||||
"blocked-reporter-ignored",
|
||||
"trusted-mute-below-threshold",
|
||||
"trusted-mute-at-threshold",
|
||||
"expired-trusted-mute",
|
||||
"viewer-override",
|
||||
"author-override",
|
||||
"cache-fallback-effective",
|
||||
"report-category-thresholds",
|
||||
"mute-aggregation-rules",
|
||||
"hide-vs-restrict-vs-downrank",
|
||||
"moderation-decorator-fields"
|
||||
];
|
||||
|
||||
describe("BitVid parity characterization", () => {
|
||||
// This suite will grow as we add real fixtures
|
||||
// For now, just ensure the harness loads correctly
|
||||
|
||||
it("has a list of characterization cases", () => {
|
||||
expect(Array.isArray(BITVID_CHARACTERIZATION_CASES)).toBe(true);
|
||||
expect(BITVID_CHARACTERIZATION_CASES.length).toBe(19);
|
||||
});
|
||||
|
||||
// Placeholder for when we have real fixtures
|
||||
describe.skip("trusted-report-threshold-reached", () => {
|
||||
it("should hide targets with sufficient trusted reports", async () => {
|
||||
// Load fixture
|
||||
// const fixture = await import("../../fixtures/bitvid/trusted-report-threshold.fixture.js");
|
||||
// Run through evaluator
|
||||
// const decision = evaluate(fixture.state, fixture.target);
|
||||
// Compare to expectation
|
||||
// expect(decision).toEqual(fixture.expectation);
|
||||
});
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user