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

Function test_api_duration_display

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

Source from the content-addressed store, hash-verified

1151
1152 #[test]
1153 fn test_api_duration_display() {
1154 let a = Attestation::builder("s", make_agent())
1155 .duration_api_ms(172_000)
1156 .build();
1157 assert_eq!(a.api_duration_display(), "2m 52s");
1158 }
1159
1160 #[test]
1161 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