MCPcopy Create free account
hub / github.com/cactus-compute/cactus / main

Function main

tests/test_model_loading.cpp:65–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

63}
64
65int main() {
66 TestUtils::TestRunner runner("Model Loading Failure Tests");
67 runner.run_test("missing_directory", test_missing_directory());
68 runner.run_test("missing_config", test_missing_config());
69 runner.run_test("corrupt_weights", test_corrupt_weights());
70 runner.run_test("empty_weight_file", test_empty_weight_file());
71 runner.run_test("missing_vocab", test_missing_vocab());
72 runner.print_summary();
73 return runner.all_passed() ? 0 : 1;
74}

Callers

nothing calls this directly

Calls 8

test_missing_directoryFunction · 0.85
test_missing_configFunction · 0.85
test_corrupt_weightsFunction · 0.85
test_empty_weight_fileFunction · 0.85
test_missing_vocabFunction · 0.85
run_testMethod · 0.80
print_summaryMethod · 0.80
all_passedMethod · 0.80

Tested by

no test coverage detected