(t *testing.T)
| 40 | } |
| 41 | |
| 42 | func TestNumeric(t *testing.T) { |
| 43 | n := Value{Numeric([]byte("1234"))} |
| 44 | b := bytes.NewBuffer(nil) |
| 45 | n.EncodeSql(b) |
| 46 | if b.String() != "1234" { |
| 47 | t.Errorf("Expecting 1234, got %s", b.String()) |
| 48 | } |
| 49 | n.EncodeAscii(b) |
| 50 | if b.String() != "12341234" { |
| 51 | t.Errorf("Expecting 12341234, got %s", b.String()) |
| 52 | } |
| 53 | } |
| 54 | |
| 55 | func TestTime(t *testing.T) { |
| 56 | date := time.Date(1999, 1, 2, 3, 4, 5, 0, time.UTC) |
nothing calls this directly
no test coverage detected