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

Function test_invalid_header_error

atomic-core/src/change/format_v3/error.rs:374–381  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

372
373 #[test]
374 fn test_invalid_header_error() {
375 let err = FormatError::InvalidHeader {
376 reason: "graph_section_count is zero but semantic_section_count is 5".to_string(),
377 };
378 let msg = err.to_string();
379 assert!(msg.contains("invalid header"));
380 assert!(msg.contains("graph_section_count is zero"));
381 }
382
383 #[test]
384 fn test_postcard_error_conversion() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected