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

Function handle_user_method

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

Source from the content-addressed store, hash-verified

90
91 #[test]
92 fn handle_user_method() {
93 let method_num = crate::method_hash!("TokensReceived");
94 let ret = match_method!(method_num, {
95 "Constructor" => Some(1),
96 "TokensReceived" => Some(2),
97 _ => None,
98 });
99
100 assert_eq!(ret, Some(2));
101 }
102
103 #[test]
104 fn handle_optional_commas() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected