← Về thư mục
scripts/test__next_verified_at_ms.py
- _persisted_entry · function · L48-L69 — def _persisted_entry(verified_at: str) -> dict[str, Any]
- TestNextVerifiedAtMs · class · L72-L115 — class TestNextVerifiedAtMs(unittest.TestCase)
- test_empty_ledger_returns_now · method · L76-L78 — def test_empty_ledger_returns_now(self) -> None
- test_clock_fresh_returns_now · method · L81-L84 — def test_clock_fresh_returns_now(self) -> None
- test_clock_stale_bumps_latest_by_one_ms · method · L87-L90 — def test_clock_stale_bumps_latest_by_one_ms(self) -> None
- test_clock_behind_bumps_latest_by_one_ms · method · L92-L95 — def test_clock_behind_bumps_latest_by_one_ms(self) -> None
- test_multi_entries_picks_max_not_last · method · L98-L105 — def test_multi_entries_picks_max_not_last(self) -> None
- test_ms_overflow_carries_to_seconds · method · L107-L110 — def test_ms_overflow_carries_to_seconds(self) -> None
- test_returns_rfc3339_ms_shape · method · L112-L115 — def test_returns_rfc3339_ms_shape(self) -> None
- TestStrictMonotonicProperty · class · L118-L144 — class TestStrictMonotonicProperty(unittest.TestCase)
- test_property_strictly_greater_than_every_prior · method · L121-L144 — def test_property_strictly_greater_than_every_prior(self) -> None
- TestPrimitives · class · L147-L185 — class TestPrimitives(unittest.TestCase)
- test_parse_round_trip · method · L150-L157 — def test_parse_round_trip(self) -> None
- test_bump_ms_overflows_second · method · L159-L163 — def test_bump_ms_overflows_second(self) -> None
- test_bump_ms_overflows_minute · method · L165-L169 — def test_bump_ms_overflows_minute(self) -> None
- test_utc_now_ms_real_clock_shape · method · L171-L173 — def test_utc_now_ms_real_clock_shape(self) -> None: # Sanity: real clock returns the expected shape.
- test_parse_rejects_non_ms_format · method · L175-L185 — def test_parse_rejects_non_ms_format(self) -> None
- TestCli · class · L188-L252 — class TestCli(unittest.TestCase)
- test_cli_with_empty_passport_yaml_returns_now_shape · method · L191-L197 — def test_cli_with_empty_passport_yaml_returns_now_shape(self) -> None
- test_cli_with_prior_entries_returns_strictly_greater · method · L199-L214 — def test_cli_with_prior_entries_returns_strictly_greater(self) -> None
- test_cli_with_unquoted_timestamps_does_not_crash · method · L216-L232 — def test_cli_with_unquoted_timestamps_does_not_crash(self) -> None: # Spec §3.1 example uses unquoted timestamps. PyYAML's default loader # would coerce these to datetime objects and break parse_rfc3339_ms. # CLI must keep them as strings (BaseLoader path).
- test_cli_with_no_audit_artifact_key_returns_now · method · L234-L240 — def test_cli_with_no_audit_artifact_key_returns_now(self) -> None
- test_cli_missing_passport_exits_nonzero · method · L242-L244 — def test_cli_missing_passport_exits_nonzero(self) -> None
- test_cli_malformed_yaml_exits_two · method · L246-L252 — def test_cli_malformed_yaml_exits_two(self) -> None