MCPcopy Create free account
hub / github.com/Ember-Moth/ppanel / new_err_code_msg_is_explicit

Function new_err_code_msg_is_explicit

crates/result/src/code_error.rs:102–106  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

100
101 #[test]
102 fn new_err_code_msg_is_explicit() {
103 let e = CodeError::new_err_code_msg(123, "custom");
104 assert_eq!(e.get_err_code(), 123);
105 assert_eq!(e.get_err_msg(), "custom");
106 }
107
108 #[test]
109 fn new_err_msg_uses_error_code() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected