(t *testing.T)
| 338 | } |
| 339 | |
| 340 | func TestRevTreeAddRevision(t *testing.T) { |
| 341 | tempmap := testmap.copy() |
| 342 | assert.Equal(t, testmap, tempmap) |
| 343 | |
| 344 | err := tempmap.addRevision("testdoc", RevInfo{ID: "4-four", Parent: "3-three"}) |
| 345 | require.NoError(t, err) |
| 346 | assert.Equal(t, "3-three", tempmap.getParent("4-four")) |
| 347 | } |
| 348 | |
| 349 | func TestRevTreeAddRevisionWithEmptyID(t *testing.T) { |
| 350 | tempmap := testmap.copy() |
nothing calls this directly
no test coverage detected