Exercise possible failure modes.
(t *testing.T)
| 161 | |
| 162 | // Exercise possible failure modes. |
| 163 | func TestDeleteObject_Error(t *testing.T) { |
| 164 | tx := newTxForObjects(t) |
| 165 | |
| 166 | deleted, err := query.DeleteObject(tx, "foo", 1) |
| 167 | assert.False(t, deleted) |
| 168 | assert.EqualError(t, err, "no such table: foo") |
| 169 | } |
| 170 | |
| 171 | // If an row was actually deleted, the returned flag is true. |
| 172 | func TestDeleteObject_Deleted(t *testing.T) { |
nothing calls this directly
no test coverage detected
searching dependent graphs…