MCPcopy Create free account
hub / github.com/Facets-cloud/flow / insertProject

Function insertProject

internal/app/testhelpers_test.go:23–31  ·  view source on GitHub ↗
(t *testing.T, db *sql.DB, slug, name, wd, priority string)

Source from the content-addressed store, hash-verified

21}
22
23func insertProject(t *testing.T, db *sql.DB, slug, name, wd, priority string) {
24 t.Helper()
25 now := flowdb.NowISO()
26 _, err := db.Exec(`INSERT INTO projects (slug, name, status, priority, work_dir, created_at, updated_at) VALUES (?, ?, 'active', ?, ?, ?, ?)`,
27 slug, name, priority, wd, now, now)
28 if err != nil {
29 t.Fatalf("insert project: %v", err)
30 }
31}
32
33func insertTask(t *testing.T, db *sql.DB, slug, name, status, priority, wd string, project any) {
34 t.Helper()

Calls 1

NowISOFunction · 0.92

Tested by

no test coverage detected