Skip to content

test: property-based tests for basis-point conversion #8

Description

@Hollujay

Summary

Uptime is stored in basis points to avoid floats. The conversion from raw
metrics to basis points is arithmetic that is easy to get subtly wrong at the
edges — 0%, 100%, rounding at the half, and values that would overflow or
truncate.

Acceptance Criteria

  • Add property-based tests (proptest or similar) over the conversion
  • Explicitly cover 0, 10000 (100%), and rounding boundaries
  • Assert the result is always within the valid basis-point range, for any
    input the parser can produce

Tech Stack

Rust, proptest

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions