MCPcopy Create free account
hub / github.com/featureform/featureform / Has

Method Has

helpers/struct_map/struct_map.go:29–35  ·  view source on GitHub ↗
(key string, val interface{})

Source from the content-addressed store, hash-verified

27}
28
29func (sm StructMap) Has(key string, val interface{}) bool {
30 v, ok := sm.Get(key)
31 if !ok {
32 return false
33 }
34 return reflect.DeepEqual(v, val)
35}
36
37func (sm StructMap) indexOf(key string) int {
38 for i, k := range sm.keys {

Callers 2

TestStructMapGetFunction · 0.95
differingFieldsFunction · 0.95

Calls 1

GetMethod · 0.95

Tested by 1

TestStructMapGetFunction · 0.76