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

Function test_duration_display_one_second

atomic-agent/src/envelope.rs:917–922  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

915
916 #[test]
917 fn test_duration_display_one_second() {
918 let e = SessionEnvelope::builder("s", "a")
919 .turn_duration_ms(1_000)
920 .build();
921 assert_eq!(e.duration_display(), "1s");
922 }
923
924 #[test]
925 fn test_duration_display_boundary_10s() {

Callers

nothing calls this directly

Calls 2

turn_duration_msMethod · 0.80
buildMethod · 0.45

Tested by

no test coverage detected