mirror of
https://github.com/kopia/kopia.git
synced 2026-01-24 14:28:06 -05:00
24 lines
588 B
Go
24 lines
588 B
Go
package cli_test
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/kopia/kopia/internal/testutil"
|
|
"github.com/kopia/kopia/repo/content"
|
|
)
|
|
|
|
func TestMain(m *testing.M) { testutil.MyTestMain(m) }
|
|
|
|
type formatSpecificTestSuite struct {
|
|
formatFlags []string
|
|
formatVersion content.FormatVersion
|
|
}
|
|
|
|
func TestFormatV1(t *testing.T) {
|
|
testutil.RunAllTestsWithParam(t, &formatSpecificTestSuite{[]string{"--format-version=1"}, content.FormatVersion1})
|
|
}
|
|
|
|
func TestFormatV2(t *testing.T) {
|
|
testutil.RunAllTestsWithParam(t, &formatSpecificTestSuite{[]string{"--format-version=2"}, content.FormatVersion2})
|
|
}
|