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

Function assert_node_name

tests/test_sqlite_writer.c:29–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected