MCPcopy Create free account
hub / github.com/clice-io/clice / write_json

Function write_json

tests/unit/command/cdb_diff_tests.cpp:27–29  ·  view source on GitHub ↗

Overwrite compile_commands.json under the temp root (without loading it).

Source from the content-addressed store, hash-verified

25
26/// Overwrite compile_commands.json under the temp root (without loading it).
27void write_json(TempDir& tmp, llvm::ArrayRef<CDBEntry> entries) {
28 tmp.touch("compile_commands.json", build_cdb_json(entries));
29}
30
31TEST_SUITE(ReloadDiff) {
32

Callers 1

TEST_CASEFunction · 0.85

Calls 2

build_cdb_jsonFunction · 0.85
touchMethod · 0.80

Tested by

no test coverage detected