MCPcopy Create free account
hub / github.com/consensus-shipyard/ipc / handle_constructor

Function handle_constructor

ext/frc42_dispatch/src/match_method.rs:70–78  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

68mod tests {
69 #[test]
70 fn handle_constructor() {
71 let method_num = 1u64; // constructor should always hash to 1
72 let ret = match_method!(method_num, {
73 "Constructor" => Some(1),
74 _ => None,
75 });
76
77 assert_eq!(ret, Some(1));
78 }
79
80 #[test]
81 fn handle_unknown_method() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected