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

Method Call

runtime/sam/expr/function/types.go:91–93  ·  view source on GitHub ↗
(args []super.Value)

Source from the content-addressed store, hash-verified

89type HasError struct{}
90
91func (h HasError) Call(args []super.Value) super.Value {
92 return super.NewBool(h.hasError(args[0].Type(), args[0].Bytes()))
93}
94
95func (h HasError) hasError(t super.Type, b scode.Bytes) bool {
96 switch typ := super.TypeUnder(t).(type) {

Callers

nothing calls this directly

Calls 4

hasErrorMethod · 0.95
NewBoolFunction · 0.92
TypeMethod · 0.65
BytesMethod · 0.45

Tested by

no test coverage detected