1
0
镜像自地址 https://github.com/tuna/tunasync.git 已同步 2025-12-06 06:26:46 +00:00

extract mirror size from rsync provider automatically

这个提交包含在:
zyx
2019-04-13 01:27:35 +08:00
父节点 a283328dc4
当前提交 d0deeb19a9
共有 9 个文件被更改,包括 89 次插入2 次删除

查看文件

@@ -73,6 +73,7 @@ func TestRsyncProvider(t *testing.T) {
echo "syncing to $(pwd)"
echo $RSYNC_PASSWORD $@
sleep 1
echo "Total file size: 1.33T bytes"
echo "Done"
exit 0
`
@@ -83,6 +84,7 @@ exit 0
expectedOutput := fmt.Sprintf(
"syncing to %s\n"+
"%s\n"+
"Total file size: 1.33T bytes\n"+
"Done\n",
targetDir,
fmt.Sprintf(
@@ -99,6 +101,7 @@ exit 0
So(err, ShouldBeNil)
So(string(loggedContent), ShouldEqual, expectedOutput)
// fmt.Println(string(loggedContent))
So(provider.DataSize(), ShouldEqual, "1.33T")
})
})