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

Function new_err_code_maps_message

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

Source from the content-addressed store, hash-verified

93
94 #[test]
95 fn new_err_code_maps_message() {
96 let e = CodeError::new_err_code(crate::error_code::INVALID_PARAMS);
97 assert_eq!(e.get_err_code(), 400);
98 assert_eq!(e.get_err_msg(), "Param Error");
99 }
100
101 #[test]
102 fn new_err_code_msg_is_explicit() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected