(t *testing.T)
| 1986 | } |
| 1987 | |
| 1988 | func 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 | |
| 2006 | var notTests = []struct { |
| 2007 | in string |
nothing calls this directly
no test coverage detected
searching dependent graphs…