2016-01-23 17:43:49 +01:00
|
|
|
// DO NOT EDIT, AUTOMATICALLY GENERATED
|
2015-11-22 16:12:00 +01:00
|
|
|
package backend_test
|
|
|
|
|
|
|
|
import (
|
|
|
|
"testing"
|
|
|
|
|
2016-01-23 17:42:26 +01:00
|
|
|
"github.com/restic/restic/backend/test"
|
2015-11-22 16:12:00 +01:00
|
|
|
)
|
|
|
|
|
2016-01-23 18:30:02 +01:00
|
|
|
var SkipMessage string
|
|
|
|
|
|
|
|
func TestMemBackendCreate(t *testing.T) {
|
|
|
|
if SkipMessage != "" {
|
|
|
|
t.Skip(SkipMessage)
|
|
|
|
}
|
2016-01-23 19:12:02 +01:00
|
|
|
test.TestCreate(t)
|
2016-01-23 18:30:02 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
func TestMemBackendOpen(t *testing.T) {
|
|
|
|
if SkipMessage != "" {
|
|
|
|
t.Skip(SkipMessage)
|
|
|
|
}
|
2016-01-23 19:12:02 +01:00
|
|
|
test.TestOpen(t)
|
2016-01-23 18:30:02 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
func TestMemBackendCreateWithConfig(t *testing.T) {
|
|
|
|
if SkipMessage != "" {
|
|
|
|
t.Skip(SkipMessage)
|
|
|
|
}
|
2016-01-23 19:12:02 +01:00
|
|
|
test.TestCreateWithConfig(t)
|
2016-01-23 18:30:02 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
func TestMemBackendLocation(t *testing.T) {
|
|
|
|
if SkipMessage != "" {
|
|
|
|
t.Skip(SkipMessage)
|
|
|
|
}
|
2016-01-23 19:12:02 +01:00
|
|
|
test.TestLocation(t)
|
2016-01-23 18:30:02 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
func TestMemBackendConfig(t *testing.T) {
|
|
|
|
if SkipMessage != "" {
|
|
|
|
t.Skip(SkipMessage)
|
|
|
|
}
|
2016-01-23 19:12:02 +01:00
|
|
|
test.TestConfig(t)
|
2016-01-23 18:30:02 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
func TestMemBackendGetReader(t *testing.T) {
|
|
|
|
if SkipMessage != "" {
|
|
|
|
t.Skip(SkipMessage)
|
|
|
|
}
|
2016-01-23 19:12:02 +01:00
|
|
|
test.TestGetReader(t)
|
2016-01-23 18:30:02 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
func TestMemBackendLoad(t *testing.T) {
|
|
|
|
if SkipMessage != "" {
|
|
|
|
t.Skip(SkipMessage)
|
|
|
|
}
|
2016-01-23 19:12:02 +01:00
|
|
|
test.TestLoad(t)
|
2016-01-23 18:30:02 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
func TestMemBackendWrite(t *testing.T) {
|
|
|
|
if SkipMessage != "" {
|
|
|
|
t.Skip(SkipMessage)
|
|
|
|
}
|
2016-01-23 19:12:02 +01:00
|
|
|
test.TestWrite(t)
|
2016-01-23 18:30:02 +01:00
|
|
|
}
|
|
|
|
|
2016-01-23 19:12:02 +01:00
|
|
|
func TestMemBackendBackend(t *testing.T) {
|
2016-01-23 18:30:02 +01:00
|
|
|
if SkipMessage != "" {
|
|
|
|
t.Skip(SkipMessage)
|
|
|
|
}
|
2016-01-23 19:12:02 +01:00
|
|
|
test.TestBackend(t)
|
2016-01-23 18:30:02 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
func TestMemBackendDelete(t *testing.T) {
|
|
|
|
if SkipMessage != "" {
|
|
|
|
t.Skip(SkipMessage)
|
|
|
|
}
|
2016-01-23 19:12:02 +01:00
|
|
|
test.TestDelete(t)
|
2016-01-23 18:30:02 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
func TestMemBackendCleanup(t *testing.T) {
|
|
|
|
if SkipMessage != "" {
|
|
|
|
t.Skip(SkipMessage)
|
|
|
|
}
|
2016-01-23 19:12:02 +01:00
|
|
|
test.TestCleanup(t)
|
2016-01-23 18:30:02 +01:00
|
|
|
}
|