MCPcopy Create free account
hub / github.com/MaterializeInc/materialize / round_trips_format

Function round_trips_format

src/sql/src/session/vars/value.rs:1411–1416  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1409
1410 #[mz_ore::test]
1411 fn round_trips_format() {
1412 let lvl = IsolationLevel::BoundedStaleness(Duration::from_secs(5));
1413 assert_eq!(lvl.format(), "bounded staleness 5s");
1414 let parsed = parse_iso(&lvl.format()).unwrap();
1415 assert_eq!(parsed, lvl);
1416 }
1417
1418 #[mz_ore::test]
1419 fn accepts_long_durations() {

Callers

nothing calls this directly

Calls 3

parse_isoFunction · 0.85
unwrapMethod · 0.80
formatMethod · 0.45

Tested by

no test coverage detected