mix mpp.cover.critical (mpp v0.18.0)

Copy Markdown View Source

Reads the coverage JSON produced by mix test.json --cover --output and fails if any module in the money-critical tier is below the 95% floor.

The tier is every payment method under lib/mpp/methods/, the session channel code under lib/mpp/session/, and the verification core every method depends on (headers, verifier, challenge, credential, replay, JCS, body digest). Client transports, discovery and the demo stay aggregate-gated.

Does not run the test suite. The precommit alias writes _build/test/cover.json from the existing test+cover step, then this task reads that file.

mix mpp.cover.critical
mix mpp.cover.critical path/to/cover.json

Summary

Functions

The lib/ path prefixes that make up the money-critical tier.

Evaluate a decoded mix test.json --cover document against the money-critical floor.

Functions

critical_prefixes()

@spec critical_prefixes() :: [String.t()]

The lib/ path prefixes that make up the money-critical tier.

evaluate(arg1)

@spec evaluate(map()) :: :ok | {:error, String.t()}

Evaluate a decoded mix test.json --cover document against the money-critical floor.