(t *testing.T)
| 10 | var enc = Encoder{} |
| 11 | |
| 12 | func TestAppendBytes(t *testing.T) { |
| 13 | for _, tt := range internal.EncodeStringTests { |
| 14 | b := enc.AppendBytes([]byte{}, []byte(tt.In)) |
| 15 | if got, want := string(b), tt.Out; got != want { |
| 16 | t.Errorf("appendBytes(%q) = %#q, want %#q", tt.In, got, want) |
| 17 | } |
| 18 | } |
| 19 | } |
| 20 | |
| 21 | func TestAppendHex(t *testing.T) { |
| 22 | for _, tt := range internal.EncodeHexTests { |
nothing calls this directly
no test coverage detected