| 36 | HashMap<String, TestFunc> *test_commands = nullptr; |
| 37 | |
| 38 | int register_test_command(String p_command, TestFunc p_function) { |
| 39 | if (!test_commands) { |
| 40 | test_commands = new HashMap<String, TestFunc>; |
| 41 | } |
| 42 | test_commands->insert(p_command, p_function); |
| 43 | return 0; |
| 44 | } |