lightspeed/ops/template_harness

Deterministic M23 template compiler conformance harness.

Types

Full M23 report.

pub type Report {
  Report(outcomes: List(ScenarioOutcome), failed_scenarios: Int)
}

Constructors

M23 template compiler scenarios.

pub type Scenario {
  CompileSuccess
  MissingAssignDiagnostic
  MissingSlotDiagnostic
  InvalidAttrTypeDiagnostic
}

Constructors

  • CompileSuccess
  • MissingAssignDiagnostic
  • MissingSlotDiagnostic
  • InvalidAttrTypeDiagnostic

One M23 scenario outcome.

pub type ScenarioOutcome {
  ScenarioOutcome(
    scenario: Scenario,
    passed: Bool,
    signature: String,
  )
}

Constructors

  • ScenarioOutcome(
      scenario: Scenario,
      passed: Bool,
      signature: String,
    )

Values

pub fn failed_scenarios(report: Report) -> Int

Failed scenario count.

pub fn outcomes(report: Report) -> List(ScenarioOutcome)

Outcomes accessor.

pub fn pass_fail_label(outcome: ScenarioOutcome) -> String

Pass/fail label.

pub fn report_signature(report: Report) -> String

Stable report signature.

pub fn run_matrix() -> Report

Run all M23 conformance scenarios.

pub fn run_scenario(scenario: Scenario) -> ScenarioOutcome

Run one M23 scenario.

pub fn scenario(outcome: ScenarioOutcome) -> Scenario

Scenario accessor.

pub fn scenario_label(scenario: Scenario) -> String

Scenario label.

pub fn signature(outcome: ScenarioOutcome) -> String

Scenario signature.

Search Document