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

Function test_not_found_detection

atomic-repository/src/error.rs:564–577  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

562
563 #[test]
564 fn test_not_found_detection() {
565 let err = RepositoryError::NotFound {
566 path: "/some/path".to_string(),
567 };
568 assert!(err.is_not_found());
569
570 let err = RepositoryError::NotInRepository;
571 assert!(err.is_not_found());
572
573 let err = RepositoryError::ViewNotFound {
574 name: "main".to_string(),
575 };
576 assert!(!err.is_not_found());
577 }
578
579 #[test]
580 fn test_user_fixable_detection() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected