MCPcopy
hub / github.com/smallstep/cli / TestEncoding_String

Function TestEncoding_String

utils/internal/utfbom/utfbom_test.go:235–246  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

233}
234
235func TestEncoding_String(t *testing.T) {
236 for e := Unknown; e <= UTF32LittleEndian; e++ {
237 s := e.String()
238 if s == "" {
239 t.Errorf("no string for %#v", e)
240 }
241 }
242 s := Encoding(999).String()
243 if s != "Unknown" {
244 t.Errorf("wrong string '%s' for invalid encoding", s)
245 }
246}

Callers

nothing calls this directly

Calls 2

EncodingTypeAlias · 0.85
StringMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…