MCPcopy Create free account
hub / github.com/brimdata/super / loadMessage

Function loadMessage

db/branch.go:82–95  ·  view source on GitHub ↗
(objects []data.Object)

Source from the content-addressed store, hash-verified

80}
81
82func loadMessage(objects []data.Object) string {
83 var b strings.Builder
84 b.WriteString(fmt.Sprintf("loaded %d data object%s\n\n", len(objects), plural.Slice(objects, "s")))
85 for k, o := range objects {
86 b.WriteString(" ")
87 b.WriteString(o.String())
88 b.WriteByte('\n')
89 if k >= maxMessageObjects {
90 b.WriteString(" ...\n")
91 break
92 }
93 }
94 return b.String()
95}
96
97func loadMeta(sctx *super.Context, meta string) (super.Value, error) {
98 if meta == "" {

Callers 1

LoadMethod · 0.85

Calls 2

SliceFunction · 0.92
StringMethod · 0.65

Tested by

no test coverage detected