MCPcopy
hub / github.com/kopia/kopia / TestBytesString_base2EnvFalse

Function TestBytesString_base2EnvFalse

internal/units/units_test.go:103–112  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

101}
102
103func TestBytesString_base2EnvFalse(t *testing.T) {
104 t.Setenv(bytesStringBase2Envar, "false")
105
106 for i, c := range base10Cases {
107 t.Run(fmt.Sprint(i, "-", c.value), func(t *testing.T) {
108 actual := BytesString(c.value)
109 require.Equal(t, c.expected, actual)
110 })
111 }
112}
113
114func TestBytesString_base2EnvTrue(t *testing.T) {
115 t.Setenv(bytesStringBase2Envar, "true")

Callers

nothing calls this directly

Calls 3

BytesStringFunction · 0.85
EqualMethod · 0.80
RunMethod · 0.65

Tested by

no test coverage detected