MCPcopy
hub / github.com/rs/zerolog / TestAppendHex

Function TestAppendHex

internal/json/bytes_test.go:21–28  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

19}
20
21func TestAppendHex(t *testing.T) {
22 for _, tt := range internal.EncodeHexTests {
23 b := enc.AppendHex([]byte{}, []byte{tt.In})
24 if got, want := string(b), tt.Out; got != want {
25 t.Errorf("appendHex(%x) = %s, want %s", tt.In, got, want)
26 }
27 }
28}
29
30func TestStringBytes(t *testing.T) {
31 t.Parallel()

Callers

nothing calls this directly

Calls 1

AppendHexMethod · 0.65

Tested by

no test coverage detected