MCPcopy
hub / github.com/wavetermdev/waveterm / dump

Method dump

pkg/filestore/blockstore_test.go:66–77  ·  view source on GitHub ↗

lint:ignore U1000 used for testing

()

Source from the content-addressed store, hash-verified

64
65//lint:ignore U1000 used for testing
66func (s *FileStore) dump() string {
67 s.Lock.Lock()
68 defer s.Lock.Unlock()
69 var buf bytes.Buffer
70 buf.WriteString(fmt.Sprintf("FileStore %d entries\n", len(s.Cache)))
71 for _, v := range s.Cache {
72 entryStr := v.dump()
73 buf.WriteString(entryStr)
74 buf.WriteString("\n")
75 }
76 return buf.String()
77}
78
79func TestCreate(t *testing.T) {
80 initDb(t)

Callers

nothing calls this directly

Calls 2

WriteStringMethod · 0.80
StringMethod · 0.45

Tested by

no test coverage detected