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

Function test_duration_display_one_second

atomic-core/src/change/envelope.rs:916–921  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

914
915 #[test]
916 fn test_duration_display_one_second() {
917 let e = SessionEnvelope::builder("s", "a")
918 .turn_duration_ms(1_000)
919 .build();
920 assert_eq!(e.duration_display(), "1s");
921 }
922
923 #[test]
924 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