Implement rclone size for measuring remotes - fixes #153
This commit is contained in:
parent
4712043e26
commit
177dbbc29a
4 changed files with 55 additions and 8 deletions
|
@ -583,7 +583,21 @@ func TestMd5sum(t *testing.T) {
|
|||
}
|
||||
}
|
||||
|
||||
func TestCount(t *testing.T) {
|
||||
objects, size, err := fs.Count(fremote)
|
||||
if err != nil {
|
||||
t.Fatalf("Count failed: %v", err)
|
||||
}
|
||||
if objects != 2 {
|
||||
t.Errorf("want 2 objects got %d", objects)
|
||||
}
|
||||
if size != 60 {
|
||||
t.Errorf("want size 60 got %d", size)
|
||||
}
|
||||
}
|
||||
|
||||
func TestCheck(t *testing.T) {
|
||||
// FIXME
|
||||
}
|
||||
|
||||
// Clean the temporary directory
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue