Add a mega.nz remote #163

Not supported yet:
  * Hash
  * ModTime
  * Server Side Copy

Otherwise fully functional and passing all the tests.
This commit is contained in:
Nick Craig-Wood
2017-10-15 11:45:39 +01:00
parent f50b85278a
commit 1f255a8567
12 changed files with 1268 additions and 0 deletions

17
backend/mega/mega_test.go Normal file
View File

@@ -0,0 +1,17 @@
// Test Mega filesystem interface
package mega_test
import (
"testing"
"github.com/ncw/rclone/backend/mega"
"github.com/ncw/rclone/fstest/fstests"
)
// TestIntegration runs integration tests against the remote
func TestIntegration(t *testing.T) {
fstests.Run(t, &fstests.Opt{
RemoteName: "TestMega:",
NilObject: (*mega.Object)(nil),
})
}