MCPcopy Create free account
hub / github.com/rabbitstack/fibratus / CompareSeqLink

Function CompareSeqLink

pkg/filter/util.go:173–183  ·  view source on GitHub ↗

CompareSeqLink returns true if any value in the sequence link slice equals to the given LHS value.

(lhs any, rhs []any)

Source from the content-addressed store, hash-verified

171// in the sequence link slice equals to the
172// given LHS value.
173func CompareSeqLink(lhs any, rhs []any) bool {
174 if lhs == nil || rhs == nil {
175 return false
176 }
177 for _, v := range rhs {
178 if compareSeqLink(lhs, v) {
179 return true
180 }
181 }
182 return false
183}
184
185// CompareSeqLinks returns true any LHS sequence
186// link values equal to the RHS sequence link values.

Callers 1

evalSequenceMethod · 0.85

Calls 1

compareSeqLinkFunction · 0.85

Tested by

no test coverage detected