1
0
Fork 0
mirror of https://github.com/restic/restic.git synced 2025-03-23 00:00:04 +01:00
restic/backend/rest_test.go

19 lines
325 B
Go
Raw Normal View History

2015-08-04 15:15:14 +02:00
package backend_test
import (
"github.com/restic/restic/backend/rest"
"net/url"
"testing"
)
func setupRestBackend(t *testing.T) *rest.Rest {
url, _ := url.Parse("http://localhost:8000")
backend, _ := rest.Open(url)
return backend
}
func TestRestBackend(t *testing.T) {
s := setupRestBackend(t)
testBackend(s, t)
}