Skip to content

test: add boundary assertion for mttr_minutes == threshold #37

Description

@Icahbod

compute_result classifies mttr_minutes > threshold as a violation. No test currently pins the equality case at the boundary despite the fact that rating-vs-performance branches and reward multipliers all hinge on it. Add tests in apexchainx_calculator/src/tests.rs (or threshold_config.rs) confirming that mttr == threshold is reported as status == "met" with rating good and a positive reward (not zero), and that mttr = threshold + 1 is reported as status == "viol" with rating poor.

Metadata

Metadata

Assignees

Labels

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions