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

Function TestBase62Value

base62_test.go:65–77  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

63}
64
65func TestBase62Value(t *testing.T) {
66 s := base62Characters
67
68 for i := range s {
69 v := int(base62Value(s[i]))
70
71 if v != i {
72 t.Error("bad value:")
73 t.Log("<<<", i)
74 t.Log(">>>", v)
75 }
76 }
77}
78
79func TestFastAppendEncodeBase62(t *testing.T) {
80 for i := 0; i != 1000; i++ {

Callers

nothing calls this directly

Calls 1

base62ValueFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…