(t *testing.T, db *sql.DB, id, toolCallID, workspace, strategy, command string, winner int, createdAt string)
| 228 | } |
| 229 | |
| 230 | func insertDiffAttempt(t *testing.T, db *sql.DB, id, toolCallID, workspace, strategy, command string, winner int, createdAt string) { |
| 231 | t.Helper() |
| 232 | _, err := db.Exec(`INSERT INTO fork_attempts |
| 233 | (id, rollout_id, tool_call_id, snapshot_id, workspace_path, fork_ms, strategy, command, status, is_winner, created_at) |
| 234 | VALUES (?, 'rollout-1', ?, 'snap-1', ?, 1, ?, ?, 'passed', ?, ?)`, |
| 235 | id, toolCallID, workspace, strategy, command, winner, createdAt) |
| 236 | if err != nil { |
| 237 | t.Fatal(err) |
| 238 | } |
| 239 | } |
no test coverage detected