MCPcopy
hub / github.com/segmentio/ksuid / TestIssue25

Function TestIssue25

ksuid_test.go:100–111  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

98}
99
100func TestIssue25(t *testing.T) {
101 // https://github.com/segmentio/ksuid/issues/25
102 for _, s := range []string{
103 "aaaaaaaaaaaaaaaaaaaaaaaaaaa",
104 "aWgEPTl1tmebfsQzFP4bxwgy80!",
105 } {
106 _, err := Parse(s)
107 if err != errStrValue {
108 t.Error("invalid KSUID representations cannot be successfully parsed, got err =", err)
109 }
110 }
111}
112
113func TestEncodeAndDecode(t *testing.T) {
114 x := New()

Callers

nothing calls this directly

Calls 1

ParseFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…