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

Function TestStandardEncryptFileNameBase64

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

Source from the content-addressed store, hash-verified

370}
371
372func TestStandardEncryptFileNameBase64(t *testing.T) {
373 testStandardEncryptFileName(t, "base64", []EncodingTestCase{
374 {"1", "yBxRX25ypgUVyj8MSxJnFw"},
375 {"1/12", "yBxRX25ypgUVyj8MSxJnFw/qQUDHOGN_jVdLIMQzYrhvA"},
376 {"1/12/123", "yBxRX25ypgUVyj8MSxJnFw/qQUDHOGN_jVdLIMQzYrhvA/1CxFf2Mti1xIPYlGruDh-A"},
377 {"1-v2001-02-03-040506-123", "yBxRX25ypgUVyj8MSxJnFw-v2001-02-03-040506-123"},
378 {"1/12-v2001-02-03-040506-123", "yBxRX25ypgUVyj8MSxJnFw/qQUDHOGN_jVdLIMQzYrhvA-v2001-02-03-040506-123"},
379 }, []EncodingTestCase{
380 {"1", "yBxRX25ypgUVyj8MSxJnFw"},
381 {"1/12", "1/qQUDHOGN_jVdLIMQzYrhvA"},
382 {"1/12/123", "1/12/1CxFf2Mti1xIPYlGruDh-A"},
383 {"1-v2001-02-03-040506-123", "yBxRX25ypgUVyj8MSxJnFw-v2001-02-03-040506-123"},
384 {"1/12-v2001-02-03-040506-123", "1/qQUDHOGN_jVdLIMQzYrhvA-v2001-02-03-040506-123"},
385 })
386}
387
388func TestStandardEncryptFileNameBase32768(t *testing.T) {
389 testStandardEncryptFileName(t, "base32768", []EncodingTestCase{

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…