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

Function test_duration_display_zero

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

Source from the content-addressed store, hash-verified

906
907 #[test]
908 fn test_duration_display_zero() {
909 let e = SessionEnvelope::builder("s", "a")
910 .turn_duration_ms(0)
911 .build();
912 assert_eq!(e.duration_display(), "0ms");
913 }
914
915 #[test]
916 fn test_duration_display_one_second() {

Callers

nothing calls this directly

Calls 2

turn_duration_msMethod · 0.80
buildMethod · 0.45

Tested by

no test coverage detected