()
| 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() { |
nothing calls this directly
no outgoing calls
no test coverage detected