MCPcopy
hub / github.com/rclone/rclone / testStandardEncryptDirName

Function testStandardEncryptDirName

backend/crypt/cipher_test.go:543–550  ·  view source on GitHub ↗
(t *testing.T, encoding string, testCases []EncodingTestCase)

Source from the content-addressed store, hash-verified

541}
542
543func testStandardEncryptDirName(t *testing.T, encoding string, testCases []EncodingTestCase) {
544 enc, _ := NewNameEncoding(encoding)
545 c, _ := newCipher(NameEncryptionStandard, "", "", true, enc)
546 // First standard mode
547 for _, test := range testCases {
548 assert.Equal(t, test.expected, c.EncryptDirName(test.in))
549 }
550}
551
552func TestStandardEncryptDirNameBase32(t *testing.T) {
553 testStandardEncryptDirName(t, "base32", []EncodingTestCase{

Calls 4

NewNameEncodingFunction · 0.85
newCipherFunction · 0.85
EncryptDirNameMethod · 0.80
EqualMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…