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

Function test_error_from_pristine

atomic-core/src/output/repo/file.rs:1566–1576  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1564
1565 #[test]
1566 fn test_error_from_pristine() {
1567 let pristine_err = crate::pristine::PristineError::ViewNotFound {
1568 name: "test".to_string(),
1569 };
1570 let err: FileOutputError<std::io::Error> = pristine_err.into();
1571
1572 match err {
1573 FileOutputError::Graph(_) => (),
1574 _ => panic!("Expected Graph variant"),
1575 }
1576 }
1577
1578 #[test]
1579 fn test_error_from_output_error_io() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected