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

Function test_error_display

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

Source from the content-addressed store, hash-verified

592
593 #[test]
594 fn test_error_display() {
595 let err = RepositoryError::ViewNotFound {
596 name: "feature".to_string(),
597 };
598 assert_eq!(err.to_string(), "View not found: feature");
599
600 let err = RepositoryError::MissingDependency {
601 change: "ABC123".to_string(),
602 dependency: "DEF456".to_string(),
603 };
604 assert!(err.to_string().contains("ABC123"));
605 assert!(err.to_string().contains("DEF456"));
606 }
607
608 #[test]
609 fn test_tag_error_detection() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected