(t *testing.T)
| 355 | } |
| 356 | |
| 357 | func TestRevTreeAddDuplicateRevID(t *testing.T) { |
| 358 | tempmap := testmap.copy() |
| 359 | assert.Equal(t, testmap, tempmap) |
| 360 | |
| 361 | err := tempmap.addRevision("testdoc", RevInfo{ID: "2-two", Parent: "1-one"}) |
| 362 | assert.Equal(t, fmt.Sprintf("doc: %v, RevTree addRevision, already contains rev %q", "testdoc", "2-two"), err.Error()) |
| 363 | } |
| 364 | |
| 365 | func TestRevTreeAddRevisionWithMissingParent(t *testing.T) { |
| 366 | tempmap := testmap.copy() |
nothing calls this directly
no test coverage detected