MCPcopy Create free account
hub / github.com/openclaw/gogcli / testRepository

Function testRepository

internal/docsbatch/repository_test.go:393–400  ·  view source on GitHub ↗
(t *testing.T, writer func(string, []byte, os.FileMode) error)

Source from the content-addressed store, hash-verified

391}
392
393func 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
402func testIdentity(documentID string) Identity {
403 return Identity{

Calls 1

NewFunction · 0.70

Tested by

no test coverage detected