MCPcopy
hub / github.com/openfga/openfga / Equal

Method Equal

internal/condition/types/ipaddress.go:107–114  ·  view source on GitHub ↗

Equal implements the CEL ref.Val.Equal. See https://pkg.go.dev/github.com/google/cel-go/common/types/ref#Val

(other ref.Val)

Source from the content-addressed store, hash-verified

105//
106// See https://pkg.go.dev/github.com/google/cel-go/common/types/ref#Val
107func (ip IPAddress) Equal(other ref.Val) ref.Val {
108 otherip, ok := other.(IPAddress)
109 if !ok {
110 return types.NoSuchOverloadErr()
111 }
112
113 return types.Bool(ip.addr.Compare(otherip.addr) == 0)
114}
115
116// Type implements the CEL ref.Val.Type.
117//

Callers 15

TestUnaryInterceptorFunction · 0.80
TestStreamingInterceptorFunction · 0.80
TestPanicFunction · 0.80
TestWithoutContextFunction · 0.80
TestWithContextFunction · 0.80
TestWithFieldsFunction · 0.80

Calls

no outgoing calls

Tested by 15

TestUnaryInterceptorFunction · 0.64
TestStreamingInterceptorFunction · 0.64
TestPanicFunction · 0.64
TestWithoutContextFunction · 0.64
TestWithContextFunction · 0.64
TestWithFieldsFunction · 0.64