MCPcopy Index your code
hub / github.com/dnote/dnote / Setup3

Function Setup3

pkg/cli/testutils/setup.go:49–55  ·  view source on GitHub ↗

Setup3 sets up a dnote env #3

(t *testing.T, db *database.DB)

Source from the content-addressed store, hash-verified

47
48// Setup3 sets up a dnote env #3
49func Setup3(t *testing.T, db *database.DB) {
50 b1UUID := "js-book-uuid"
51
52 database.MustExec(t, "setting up book 1", db, "INSERT INTO books (uuid, label) VALUES (?, ?)", b1UUID, "js")
53
54 database.MustExec(t, "setting up note 1", db, "INSERT INTO notes (uuid, book_uuid, body, added_on) VALUES (?, ?, ?, ?)", "43827b9a-c2b0-4c06-a290-97991c896653", b1UUID, "Booleans have toString()", 1515199943)
55}
56
57// Setup4 sets up a dnote env #4
58func Setup4(t *testing.T, db *database.DB) {

Callers 1

TestAddNoteFunction · 0.92

Calls 1

MustExecFunction · 0.92

Tested by 1

TestAddNoteFunction · 0.74