1
0
mirror of https://github.com/rclone/rclone.git synced 2026-01-01 08:03:26 +00:00

restic: refactor to use lib/http

Co-authored-by: Nick Craig-Wood <nick@craig-wood.com>
This commit is contained in:
Nolan Woods
2021-05-02 00:56:24 -07:00
committed by Nick Craig-Wood
parent 4444d2d102
commit 52443c2444
7 changed files with 270 additions and 181 deletions

View File

@@ -21,7 +21,7 @@ func (c *cache) String() string {
}
func TestCacheCRUD(t *testing.T) {
c := newCache()
c := newCache(true)
assert.Equal(t, "", c.String())
assert.Nil(t, c.find("potato"))
o := mockobject.New("potato")
@@ -35,7 +35,7 @@ func TestCacheCRUD(t *testing.T) {
}
func TestCacheRemovePrefix(t *testing.T) {
c := newCache()
c := newCache(true)
for _, remote := range []string{
"a",
"b",