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

Function write_file

tests/test_model_loading.cpp:13–15  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11}
12
13static void write_file(const std::string& path, const std::string& content) {
14 std::ofstream(path, std::ios::binary) << content;
15}
16
17static bool expect_init_fails(const std::string& path) {
18 cactus_model_t model = cactus_init(path.c_str(), nullptr, false);

Callers 4

test_missing_configFunction · 0.85
test_corrupt_weightsFunction · 0.85
test_empty_weight_fileFunction · 0.85
test_missing_vocabFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected