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

Function test_exit_code_remote_error

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

Source from the content-addressed store, hash-verified

1115
1116 #[test]
1117 fn test_exit_code_remote_error() {
1118 assert_eq!(CliError::remote_error("failed", None).exit_code(), 4);
1119 assert_eq!(
1120 CliError::RemoteNotFound {
1121 name: "origin".into()
1122 }
1123 .exit_code(),
1124 4
1125 );
1126 }
1127
1128 #[test]
1129 fn test_exit_code_internal() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected