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

Function test_display_format

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

Source from the content-addressed store, hash-verified

1027
1028 #[test]
1029 fn test_display_format() {
1030 let trunk_id = TrunkId::new(NodeId::new(42), 5);
1031 let err = ApplyError::trunk_not_found(trunk_id);
1032 let display = err.to_string();
1033
1034 // Should contain identifying information
1035 assert!(display.contains("trunk"));
1036 assert!(display.contains("not found"));
1037 }
1038
1039 #[test]
1040 fn test_debug_format() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected