(t *testing.T, encoding string, testCases []EncodingTestCase)
| 541 | } |
| 542 | |
| 543 | func 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 | |
| 552 | func TestStandardEncryptDirNameBase32(t *testing.T) { |
| 553 | testStandardEncryptDirName(t, "base32", []EncodingTestCase{ |
no test coverage detected
searching dependent graphs…