(t *testing.T)
| 68 | } |
| 69 | |
| 70 | func TestViewNoteInvalidRowID(t *testing.T) { |
| 71 | db := database.InitTestMemoryDB(t) |
| 72 | defer db.Close() |
| 73 | |
| 74 | ctx := context.DnoteCtx{DB: db} |
| 75 | var buf bytes.Buffer |
| 76 | |
| 77 | err := viewNote(ctx, &buf, "not-a-number", false) |
| 78 | assert.NotEqual(t, err, nil, "should return error for invalid rowid") |
| 79 | } |
| 80 | |
| 81 | func TestViewNoteNotFound(t *testing.T) { |
| 82 | db := database.InitTestMemoryDB(t) |
nothing calls this directly
no test coverage detected