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