MCPcopy
hub / github.com/dosco/graphjin / newLocal

Function newLocal

core/fstable/local_test.go:15–23  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

13)
14
15func newLocal(t *testing.T) (*Local, string) {
16 t.Helper()
17 root := t.TempDir()
18 b, err := NewLocal(LocalConfig{Root: root})
19 if err != nil {
20 t.Fatal(err)
21 }
22 return b, root
23}
24
25func writeFile(t *testing.T, root, rel string, data []byte) {
26 t.Helper()

Calls 1

NewLocalFunction · 0.85

Tested by

no test coverage detected