MCPcopy
hub / github.com/SpecterOps/BloodHound / Equal

Method Equal

cmd/api/src/database/types/null/bool.go:144–146  ·  view source on GitHub ↗

Equal returns true if both booleans have the same value or are both null.

(other Bool)

Source from the content-addressed store, hash-verified

142
143// Equal returns true if both booleans have the same value or are both null.
144func (s Bool) Equal(other Bool) bool {
145 return s.Valid == other.Valid && (!s.Valid || s.Bool == other.Bool)
146}

Callers 15

TestCache_SetFunction · 0.45
TestCache_GuardedSetFunction · 0.45
TestInvalidValueErrorFunction · 0.45
Test_PrimaryNodeKindFunction · 0.45
TestEncodingValuesFunction · 0.45
TestBOMEncodingFunction · 0.45
TestEncodingEqualityFunction · 0.45
TestHasSequenceFunction · 0.45
TestDetectBOMEncodingFunction · 0.45
TestNormalizeToUTF8Function · 0.45
Test_UseHarnessFunction · 0.45

Calls

no outgoing calls

Tested by 15

TestCache_SetFunction · 0.36
TestCache_GuardedSetFunction · 0.36
TestInvalidValueErrorFunction · 0.36
Test_PrimaryNodeKindFunction · 0.36
TestEncodingValuesFunction · 0.36
TestBOMEncodingFunction · 0.36
TestEncodingEqualityFunction · 0.36
TestHasSequenceFunction · 0.36
TestDetectBOMEncodingFunction · 0.36
TestNormalizeToUTF8Function · 0.36
Test_UseHarnessFunction · 0.36