Setup3 sets up a dnote env #3
(t *testing.T, db *database.DB)
| 47 | |
| 48 | // Setup3 sets up a dnote env #3 |
| 49 | func 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 |
| 58 | func Setup4(t *testing.T, db *database.DB) { |