Skip to main content

Module asserted_coverage

Module asserted_coverage 

Source
Expand description

The language-neutral join of asserted coverage: sites, evidence and observations in, a verdict per site out.

Frontends contribute facts and never verdicts, so everything syntactic happens before this module: which boundaries a site’s effect or value reaches, which sites each outcome of a decision controls, what each assertion reads and how strongly. This module decides only what those facts imply, which is the one part of the metric that is the same in every language.

Evident and presence are candidate classifications under the frontend’s flow and observation rules, not formal proofs of arbitrary-change detection. Unresolved sites carry a reason: a gap a test can close, or an analysis limit the frontend could not follow. Limits remain visible and must not be silently removed from a reported accuracy denominator.

Structs§

AwaitedObservationSource
Boundary
A place a site’s effect or value arrives, and which an assertion may read: a function’s return or escape, a sink the test injected, a mocked module, an installed global, a process channel, rendered output, or internal for an effect that leaves no boundary at all.
CallOmissionEvidence
A bounded check of one specified edit, never general value or site credit.
Comparison
ComparisonInput
Input provenance through const aliases/await, not evaluated value identity.
ComparisonOperand
Source identities of both operands. Equal source text is not binding identity.
CompletionCheck
CompletionDiagnostic
CompletionMatcher
CompletionSensitivityEvidence
CountSensitivityEvidence
CountSensitivityVariant
DecisionFacts
The sites each outcome of a decision controls, and the site sets its witness rules ask about.
DefaultKept
Dependent
DirectReturnCheck
DirectReturnSensitivityEvidence
DirectReturnVariant
Facts
MissingExceptionDiagnostic
MockCountCall
MockCountEvidence
MockCountRowBinding
Source-reproduced registration inputs; not a value-protection proof.
MockCountRowValue
MockHistorySelection
A bounded selection from a copied history, not a claim about the whole mock.
MockProjection
Which part of a mock’s history a passing assertion reads. This is source evidence; relating a history element to a production site remains unresolved.
ObjectValued
Observation
Predicate strength applies to the projected value, not automatically to the arguments or count of each production call contributing to a mock history.
ObservationCaptureSource
Outcomes
PayloadCheck
PayloadCoercion
PayloadProjection
PayloadSensitivityEvidence
PayloadVariant
PragmaCheck
PragmaHint
A source suggestion, deliberately separate from observations and join inputs.
PragmaTarget
PrimitiveDecision
Bounded direct-call, side-effect-free literal branches checked by the frontend.
PrimitiveDecisionCheck
ProcessExitConsumer
ProcessExitEvent
ProcessExitEvidence
Checked resolver syntax, not a checked runtime/producer instance relation.
ProcessExitResolution
Reason
Resolution
SinkBinding
A test-owned object the test passed into production, and the parameter it arrived through.
Site
Summary
TestFacts
TestWitnessIssue
WitnessIssue

Enums§

HintValidation
ReasonKind
Why a site is not evident. A gap is closable by writing a test; a limit is something the frontend could not follow, and an agent that writes a test for one either wastes the effort or learns to satisfy the analyzer instead of the code.
SensitivityBasis
SourcePrimitive
Source literals, not sampled runtime values. Numeric text preserves -0.
Status
Strength
How strongly the modeled assertion checks what it reads. This classifies its predicate, not a formal proof of the complete source-to-assertion dependency; Presence says a value arrived.
WitnessIssueKind

Functions§

check_pragma_hints
Check source hints against existing facts, without modifying the normal join. Indexes are shared across hints; only the selected test’s observations are copied. This bounded first pass supports effect boundaries/flow, not decision or internal derivation proofs. Unsupported paths remain unresolved, not contradicted.
join
Resolve every site. Effect sites first, since a decision’s outcomes are judged by the strength of the sites they control; then decisions; then internal effects derived through their dependents, which can promote a site and so are followed by a second decision pass, exactly as the prototype does.
summary
The metric: of the contractual sites, how many are evident.