MCPcopy Create free account
hub / github.com/PostHog/duckgres / readDirNames

Function readDirNames

cmd/cache-proxy/cache_test.go:213–220  ·  view source on GitHub ↗
(dir string)

Source from the content-addressed store, hash-verified

211 c := newTestCache(t)
212 // Force the eviction threshold low so we trigger it quickly.
213 c.maxBytes = 100
214
215 keys := []string{
216 strings.Repeat("1", 64),
217 strings.Repeat("2", 64),
218 strings.Repeat("3", 64),
219 }
220 for _, k := range keys {
221 if _, err := c.PutStream(k, bytes.NewReader(make([]byte, 60))); err != nil {
222 t.Fatalf("PutStream %s: %v", k, err)
223 }

Callers 1

tmpDirEntriesFunction · 0.85

Calls 2

CloseMethod · 0.65
OpenMethod · 0.45

Tested by

no test coverage detected