MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / assert_node_name

Function assert_node_name

tests/test_sqlite_writer.c:30–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28}
29
30static int assert_node_name(sqlite3 *db, const char *expected) {
31 sqlite3_stmt *stmt = NULL;
32 int rc = sqlite3_prepare_v2(db, "SELECT name FROM nodes WHERE id=1", -1, &stmt, NULL);
33 ASSERT_EQ(rc, SQLITE_OK);
34 rc = sqlite3_step(stmt);
35 ASSERT_EQ(rc, SQLITE_ROW);
36 ASSERT_STR_EQ((const char *)sqlite3_column_text(stmt, 0), expected);
37 sqlite3_finalize(stmt);
38 return 0;
39}
40
41static int write_fixture_file(const char *path, const char *contents) {
42 FILE *fp = cbm_fopen(path, "wb");

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected