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

Function testExponentError

decimal_test.go:39–46  ·  view source on GitHub ↗

testExponentError skips t if err was caused by an exponent being outside of the package's supported exponent range. Since the exponent is so large, we don't support those tests yet (i.e., it's an expected failure, so we skip it).

(t *testing.T, err error)

Source from the content-addressed store, hash-verified

37// we don't support those tests yet (i.e., it's an expected failure, so we
38// skip it).
39func testExponentError(t *testing.T, err error) {
40 if err == nil {
41 return
42 }
43 if err.Error() == errExponentOutOfRangeStr {
44 t.Skip(err)
45 }
46}
47
48func newDecimal(t *testing.T, c *Context, s string) *Decimal {
49 d, _, err := c.NewFromString(s)

Callers 2

gdaTestFunction · 0.85
newDecimalFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…