MCPcopy Index your code
hub / github.com/rclone/rclone / TestEncodeFileNameBase32768

Function TestEncodeFileNameBase32768

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

Source from the content-addressed store, hash-verified

114}
115
116func TestEncodeFileNameBase32768(t *testing.T) {
117 testEncodeFileName(t, "base32768", []EncodingTestCase{
118 {"", ""},
119 {"1", "㼿"},
120 {"12", "㻙ɟ"},
121 {"123", "㻙ⲿ"},
122 {"1234", "㻙ⲍƟ"},
123 {"12345", "㻙ⲍ⍟"},
124 {"123456", "㻙ⲍ⍆ʏ"},
125 {"1234567", "㻙ⲍ⍆觟"},
126 {"12345678", "㻙ⲍ⍆觓ɧ"},
127 {"123456789", "㻙ⲍ⍆觓栯"},
128 {"1234567890", "㻙ⲍ⍆觓栩ɣ"},
129 {"12345678901", "㻙ⲍ⍆觓栩朧"},
130 {"123456789012", "㻙ⲍ⍆觓栩朤ʅ"},
131 {"1234567890123", "㻙ⲍ⍆觓栩朤談"},
132 {"12345678901234", "㻙ⲍ⍆觓栩朤諆ɔ"},
133 {"123456789012345", "㻙ⲍ⍆觓栩朤諆媕"},
134 {"1234567890123456", "㻙ⲍ⍆觓栩朤諆媕䆿"},
135 }, false)
136}
137
138func TestDecodeFileNameBase32(t *testing.T) {
139 enc, err := NewNameEncoding("base32")

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…