MCPcopy Index your code
hub / github.com/dropbox/godropbox / TestNull

Method TestNull

database/sqltypes/sqltypes_test.go:29–40  ·  view source on GitHub ↗
(c *C)

Source from the content-addressed store, hash-verified

27var _ = Suite(&SqlTypesSuite{})
28
29func (s *SqlTypesSuite) TestNull(c *C) {
30 n := Value{}
31 c.Assert(n.IsNull(), IsTrue)
32 c.Assert(n.String(), Equals, "")
33
34 b := bytes.NewBuffer(nil)
35 n.EncodeSql(b)
36 c.Assert(b.String(), Equals, "null")
37
38 n.EncodeAscii(b)
39 c.Assert(b.String(), Equals, "nullnull")
40}
41
42func TestNumeric(t *testing.T) {
43 n := Value{Numeric([]byte("1234"))}

Callers

nothing calls this directly

Calls 5

IsNullMethod · 0.95
StringMethod · 0.95
EncodeSqlMethod · 0.95
EncodeAsciiMethod · 0.95
StringMethod · 0.65

Tested by

no test coverage detected