MCPcopy Create free account
hub / github.com/ByteYellow/AgentProvenance / insertDiffAttempt

Function insertDiffAttempt

internal/provenance/diff_test.go:230–239  ·  view source on GitHub ↗
(t *testing.T, db *sql.DB, id, toolCallID, workspace, strategy, command string, winner int, createdAt string)

Source from the content-addressed store, hash-verified

228}
229
230func 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}

Callers 2

TestDiffAndBlameJSONFunction · 0.85

Calls 1

ExecMethod · 0.65

Tested by

no test coverage detected