MCPcopy Create free account
hub / github.com/cel-expr/cel-cpp / WriteFile

Function WriteFile

bazel/cel_cc_embed.cc:51–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49}
50
51void WriteFile(const std::string& path, absl::Span<const char> data) {
52 ABSL_CHECK(!path.empty()) << "--out is required";
53 std::ofstream file(path);
54 ABSL_CHECK(file.is_open()) << path;
55 file.write(data.data(), data.size());
56 ABSL_CHECK(file.good());
57 file.flush();
58 ABSL_CHECK(file.good());
59}
60
61} // namespace
62

Callers 1

mainFunction · 0.85

Calls 2

emptyMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected