MCPcopy Create free account
hub / github.com/Redot-Engine/redot-engine / register_test_command

Function register_test_command

tests/test_macros.cpp:38–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36HashMap<String, TestFunc> *test_commands = nullptr;
37
38int 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}

Callers

nothing calls this directly

Calls 1

insertMethod · 0.45

Tested by

no test coverage detected