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

Method Call

runtime/sam/expr/function/has.go:7–22  ·  view source on GitHub ↗
(args []super.Value)

Source from the content-addressed store, hash-verified

5type Has struct{}
6
7func (h *Has) Call(args []super.Value) super.Value {
8 for _, val := range args {
9 if val.IsNull() {
10 return super.Null
11 }
12 }
13 for _, val := range args {
14 if val.IsError() {
15 if val.IsMissing() || val.IsQuiet() {
16 return super.False
17 }
18 return val
19 }
20 }
21 return super.True
22}
23
24type Missing struct {
25 has Has

Callers

nothing calls this directly

Calls 4

IsNullMethod · 0.80
IsErrorMethod · 0.80
IsMissingMethod · 0.45
IsQuietMethod · 0.45

Tested by

no test coverage detected