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

Function TestBigIntBitLen

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

Source from the content-addressed store, hash-verified

1358}
1359
1360func TestBigIntBitLen(t *testing.T) {
1361 for i, test := range bitLenTests {
1362 x, ok := new(BigInt).SetString(test.in, 0)
1363 if !ok {
1364 t.Errorf("#%d test input invalid: %s", i, test.in)
1365 continue
1366 }
1367
1368 if n := x.BitLen(); n != test.out {
1369 t.Errorf("#%d got %d want %d", i, n, test.out)
1370 }
1371 }
1372}
1373
1374var expTests = []struct {
1375 x, y, m string

Callers

nothing calls this directly

Calls 2

BitLenMethod · 0.80
SetStringMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…