(t *testing.T, writer func(string, []byte, os.FileMode) error)
| 391 | } |
| 392 | |
| 393 | func testRepository(t *testing.T, writer func(string, []byte, os.FileMode) error) *Repository { |
| 394 | t.Helper() |
| 395 | |
| 396 | return New(t.TempDir(), Options{ |
| 397 | NewID: func() (string, error) { return testBatchID, nil }, |
| 398 | WriteFile: writer, |
| 399 | }) |
| 400 | } |
| 401 | |
| 402 | func testIdentity(documentID string) Identity { |
| 403 | return Identity{ |
no test coverage detected