(t *testing.T, db *sql.DB, id, path, createdAt string)
| 219 | } |
| 220 | |
| 221 | func insertDiffSnapshot(t *testing.T, db *sql.DB, id, path, createdAt string) { |
| 222 | t.Helper() |
| 223 | _, err := db.Exec(`INSERT INTO snapshots (id, name, kind, source, path, manifest_hash, file_count, bytes, status, created_at) |
| 224 | VALUES (?, 'ready', 'ready', 'test', ?, 'hash', 1, 1, 'ready', ?)`, id, path, createdAt) |
| 225 | if err != nil { |
| 226 | t.Fatal(err) |
| 227 | } |
| 228 | } |
| 229 | |
| 230 | func insertDiffAttempt(t *testing.T, db *sql.DB, id, toolCallID, workspace, strategy, command string, winner int, createdAt string) { |
| 231 | t.Helper() |
no test coverage detected