MCPcopy Create free account
hub / github.com/cockroachdb/apd / TestBigIntBitwise

Function TestBigIntBitwise

bigint_test.go:1988–2004  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

1986}
1987
1988func TestBigIntBitwise(t *testing.T) {
1989 x := new(BigInt)
1990 y := new(BigInt)
1991 for _, test := range bitwiseTests {
1992 x.SetString(test.x, 0)
1993 y.SetString(test.y, 0)
1994
1995 testBitFun(t, "and", (*BigInt).And, x, y, test.and)
1996 testBitFunSelf(t, "and", (*BigInt).And, x, y, test.and)
1997 testBitFun(t, "andNot", (*BigInt).AndNot, x, y, test.andNot)
1998 testBitFunSelf(t, "andNot", (*BigInt).AndNot, x, y, test.andNot)
1999 testBitFun(t, "or", (*BigInt).Or, x, y, test.or)
2000 testBitFunSelf(t, "or", (*BigInt).Or, x, y, test.or)
2001 testBitFun(t, "xor", (*BigInt).Xor, x, y, test.xor)
2002 testBitFunSelf(t, "xor", (*BigInt).Xor, x, y, test.xor)
2003 }
2004}
2005
2006var notTests = []struct {
2007 in string

Callers

nothing calls this directly

Calls 3

testBitFunFunction · 0.85
testBitFunSelfFunction · 0.85
SetStringMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…