| 3670 | } |
| 3671 | |
| 3672 | static int k8s_inc_count(const char *db_path, const char *sql) { |
| 3673 | sqlite3 *db = NULL; |
| 3674 | int n = -1; |
| 3675 | if (sqlite3_open_v2(db_path, &db, SQLITE_OPEN_READONLY, NULL) == SQLITE_OK) { |
| 3676 | sqlite3_stmt *stmt = NULL; |
| 3677 | if (sqlite3_prepare_v2(db, sql, -1, &stmt, NULL) == SQLITE_OK && |
| 3678 | sqlite3_step(stmt) == SQLITE_ROW) { |
| 3679 | n = sqlite3_column_int(stmt, 0); |
| 3680 | } |
| 3681 | sqlite3_finalize(stmt); |
| 3682 | } |
| 3683 | sqlite3_close(db); |
| 3684 | return n; |
| 3685 | } |
| 3686 | |
| 3687 | TEST(incremental_k8s_edits_reach_other_files) { |
| 3688 | char tmp[256]; |
no outgoing calls
no test coverage detected