MCPcopy Create free account
hub / github.com/dolthub/doltgresql / Contains

Method Contains

postgres/parser/ipaddr/ipaddr.go:492–494  ·  view source on GitHub ↗

Contains determines if one ipAddr is in the same subnet as another.

(other *IPAddr)

Source from the content-addressed store, hash-verified

490// Contains determines if one ipAddr is in the same
491// subnet as another.
492func (ipAddr IPAddr) Contains(other *IPAddr) bool {
493 return ipAddr.contains(other) && ipAddr.Mask < other.Mask
494}
495
496// ContainedByOrEquals determines if one ipAddr is in the same
497// subnet as another or the addresses and subnets are equal.

Callers 15

TestLargeOutOfBandValuesFunction · 0.45
RunQueryAttemptFunction · 0.45
TestConcurrentWritesFunction · 0.45
help.goFile · 0.45
scanOneStmtMethod · 0.45
populateErrorDetailsMethod · 0.45
handleParseMethod · 0.45
to_regtype.goFile · 0.45

Calls 1

containsMethod · 0.95

Tested by 15

TestLargeOutOfBandValuesFunction · 0.36
TestConcurrentWritesFunction · 0.36
TestIoInputSectionsFunction · 0.36
runReplicationScriptFunction · 0.36
TestMultipleStatementsFunction · 0.36
RunScriptNFunction · 0.36
RunImportTestsFunction · 0.36