MCPcopy Index your code
hub / github.com/kopia/kopia / TestBytesStringBase2

Function TestBytesStringBase2

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

Source from the content-addressed store, hash-verified

92}
93
94func TestBytesStringBase2(t *testing.T) {
95 for i, c := range base2Cases {
96 t.Run(fmt.Sprint(i, "-", c.value), func(t *testing.T) {
97 actual := BytesStringBase2(c.value)
98 require.Equal(t, c.expected, actual)
99 })
100 }
101}
102
103func TestBytesString_base2EnvFalse(t *testing.T) {
104 t.Setenv(bytesStringBase2Envar, "false")

Callers

nothing calls this directly

Calls 3

BytesStringBase2Function · 0.85
EqualMethod · 0.80
RunMethod · 0.65

Tested by

no test coverage detected