MCPcopy Index your code
hub / github.com/CodisLabs/codis / IsTrue

Method IsTrue

pkg/utils/sync2/atomic2/bool.go:14–16  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

12}
13
14func (b *Bool) IsTrue() bool {
15 return b.c.Int64() != 0
16}
17
18func (b *Bool) IsFalse() bool {
19 return b.c.Int64() == 0

Callers 4

BoolMethod · 0.95
IsBrokenMethod · 0.80
newSlotActionExecutorMethod · 0.80

Calls 1

Int64Method · 0.45

Tested by

no test coverage detected