run static method

Future<ZapConformanceReport> run({
  1. String? driftDir,
})

Runs all checks. driftDir, when given, adds the published-contract drift gate over <driftDir>/schemas/*.schema.json and <driftDir>/golden/*.golden.json.

Implementation

static Future<ZapConformanceReport> run({String? driftDir}) async {
  final checks = <ZapConformanceCheck>[
    ..._schemaSelfIntegrity(),
    ..._goldenPositives(),
    ..._goldenRoundTrips(),
    ..._negativeTable(),
    ...await _referenceClientSession(),
    ...await _disciplineViolationSession(),
    if (driftDir != null) ..._driftGate(driftDir),
  ];
  return ZapConformanceReport(checks);
}