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

Function test_debug_format

atomic-core/src/crdt/apply/error.rs:1040–1047  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1038
1039 #[test]
1040 fn test_debug_format() {
1041 let trunk_id = TrunkId::new(NodeId::new(1), 0);
1042 let err = ApplyError::trunk_not_found(trunk_id);
1043 let debug = format!("{:?}", err);
1044
1045 // Debug format should show enum variant
1046 assert!(debug.contains("TrunkNotFound"));
1047 }
1048
1049 // Error Trait Tests
1050

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected