MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / test_api_duration_display

Function test_api_duration_display

atomic-core/src/change/attestation.rs:1674–1679  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1672
1673 #[test]
1674 fn test_api_duration_display() {
1675 let a = Attestation::builder("s", make_agent())
1676 .duration_api_ms(172_000)
1677 .build();
1678 assert_eq!(a.api_duration_display(), "2m 52s");
1679 }
1680
1681 #[test]
1682 fn test_wall_duration_display() {

Callers

nothing calls this directly

Calls 3

make_agentFunction · 0.85
duration_api_msMethod · 0.80
buildMethod · 0.45

Tested by

no test coverage detected