MCPcopy
hub / github.com/gin-gonic/gin / TestBytesToStringEmpty

Function TestBytesToStringEmpty

internal/bytesconv/bytesconv_test.go:44–51  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

42}
43
44func TestBytesToStringEmpty(t *testing.T) {
45 if got := BytesToString([]byte{}); got != "" {
46 t.Fatalf("BytesToString([]byte{}) = %q; want empty string", got)
47 }
48 if got := BytesToString(nil); got != "" {
49 t.Fatalf("BytesToString(nil) = %q; want empty string", got)
50 }
51}
52
53const letterBytes = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"
54const (

Callers

nothing calls this directly

Calls 1

BytesToStringFunction · 0.85

Tested by

no test coverage detected