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

Function openFlowDB

internal/app/add_test.go:24–36  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

22}
23
24func openFlowDB(t *testing.T) *sql.DB {
25 t.Helper()
26 path, err := flowDBPath()
27 if err != nil {
28 t.Fatal(err)
29 }
30 db, err := flowdb.OpenDB(path)
31 if err != nil {
32 t.Fatalf("OpenDB: %v", err)
33 }
34 t.Cleanup(func() { db.Close() })
35 return db
36}
37
38// ---------- add project ----------
39

Calls 2

OpenDBFunction · 0.92
flowDBPathFunction · 0.85

Tested by

no test coverage detected