MCPcopy
hub / github.com/rclone/rclone / TestEncodeFileNameBase32

Function TestEncodeFileNameBase32

backend/crypt/cipher_test.go:72–92  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

70}
71
72func TestEncodeFileNameBase32(t *testing.T) {
73 testEncodeFileName(t, "base32", []EncodingTestCase{
74 {"", ""},
75 {"1", "64"},
76 {"12", "64p0"},
77 {"123", "64p36"},
78 {"1234", "64p36d0"},
79 {"12345", "64p36d1l"},
80 {"123456", "64p36d1l6o"},
81 {"1234567", "64p36d1l6org"},
82 {"12345678", "64p36d1l6orjg"},
83 {"123456789", "64p36d1l6orjge8"},
84 {"1234567890", "64p36d1l6orjge9g"},
85 {"12345678901", "64p36d1l6orjge9g64"},
86 {"123456789012", "64p36d1l6orjge9g64p0"},
87 {"1234567890123", "64p36d1l6orjge9g64p36"},
88 {"12345678901234", "64p36d1l6orjge9g64p36d0"},
89 {"123456789012345", "64p36d1l6orjge9g64p36d1l"},
90 {"1234567890123456", "64p36d1l6orjge9g64p36d1l6o"},
91 }, true)
92}
93
94func TestEncodeFileNameBase64(t *testing.T) {
95 testEncodeFileName(t, "base64", []EncodingTestCase{

Callers

nothing calls this directly

Calls 1

testEncodeFileNameFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…