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

Function test_is_view_error

atomic-cli/src/error.rs:877–883  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

875
876 #[test]
877 fn test_is_view_error() {
878 assert!(CliError::view_not_found("main").is_view_error());
879 assert!(CliError::ViewAlreadyExists { name: "dev".into() }.is_view_error());
880 assert!(CliError::CannotDeleteCurrentView { name: "dev".into() }.is_view_error());
881
882 assert!(!CliError::NothingToRecord.is_view_error());
883 }
884
885 #[test]
886 fn test_is_file_error() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected