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

Function insertDiffSnapshot

internal/provenance/diff_test.go:221–228  ·  view source on GitHub ↗
(t *testing.T, db *sql.DB, id, path, createdAt string)

Source from the content-addressed store, hash-verified

219}
220
221func 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
230func insertDiffAttempt(t *testing.T, db *sql.DB, id, toolCallID, workspace, strategy, command string, winner int, createdAt string) {
231 t.Helper()

Callers 2

TestDiffAndBlameJSONFunction · 0.85

Calls 1

ExecMethod · 0.65

Tested by

no test coverage detected