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

Function newDecimal

decimal_test.go:48–55  ·  view source on GitHub ↗
(t *testing.T, c *Context, s string)

Source from the content-addressed store, hash-verified

46}
47
48func newDecimal(t *testing.T, c *Context, s string) *Decimal {
49 d, _, err := c.NewFromString(s)
50 testExponentError(t, err)
51 if err != nil {
52 t.Fatalf("%s: %+v", s, err)
53 }
54 return d
55}
56
57func TestNewWithBigInt(t *testing.T) {
58 tests := []string{

Callers 8

TestNumDigitsFunction · 0.85
gdaTestFunction · 0.85
TestAddFunction · 0.85
TestCmpFunction · 0.85
TestModfFunction · 0.85
TestInt64Function · 0.85
TestQuoErrFunction · 0.85
TestFormatFlagsFunction · 0.85

Calls 2

testExponentErrorFunction · 0.85
NewFromStringMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…