MCPcopy
hub / github.com/google/mangle / String

Method String

factstore/factstore.go:109–119  ·  view source on GitHub ↗

String returns a readable debug string for this store.

()

Source from the content-addressed store, hash-verified

107
108// String returns a readable debug string for this store.
109func (s SimpleInMemoryStore) String() string {
110 var sb strings.Builder
111 for _, m := range s.shardsByPredicate {
112 for _, v := range m {
113 sb.WriteString(v.String())
114 sb.WriteRune(' ')
115 }
116 sb.WriteRune('\n')
117 }
118 return sb.String()
119}
120
121// ListPredicates returns a list of predicates.
122func (s SimpleInMemoryStore) ListPredicates() []ast.PredicateSym {

Callers

nothing calls this directly

Calls 1

StringMethod · 0.65

Tested by

no test coverage detected