(t *testing.T)
| 79 | } |
| 80 | |
| 81 | func TestViewNoteNotFound(t *testing.T) { |
| 82 | db := database.InitTestMemoryDB(t) |
| 83 | defer db.Close() |
| 84 | |
| 85 | ctx := context.DnoteCtx{DB: db} |
| 86 | var buf bytes.Buffer |
| 87 | |
| 88 | err := viewNote(ctx, &buf, "999", false) |
| 89 | assert.NotEqual(t, err, nil, "should return error for non-existent note") |
| 90 | } |
nothing calls this directly
no test coverage detected