Files
kopia/cli/suite_test.go
Jarek Kowalski 6160ee5668 refactor(repository): moved format blob management to separate package (#2245)
* refactor(repository): moved format blob management to separate package

This is completely mechanical, no behavior changes, only:

- moved types and functions to a new package
- adjusted visibility where needed
- added missing godoc
- renamed some identifiers to align with current usage
- mechanically converted some top-level functions into member functions
- fixed some mis-named variables

* refactor(repository): moved content.FormatingOptions to format.ContentFormat
2022-07-30 14:13:52 -07:00

28 lines
730 B
Go

package cli_test
import (
"testing"
"github.com/kopia/kopia/internal/testutil"
"github.com/kopia/kopia/repo/format"
)
func TestMain(m *testing.M) { testutil.MyTestMain(m) }
type formatSpecificTestSuite struct {
formatFlags []string
formatVersion format.Version
}
func TestFormatV1(t *testing.T) {
testutil.RunAllTestsWithParam(t, &formatSpecificTestSuite{[]string{"--format-version=1"}, format.FormatVersion1})
}
func TestFormatV2(t *testing.T) {
testutil.RunAllTestsWithParam(t, &formatSpecificTestSuite{[]string{"--format-version=2"}, format.FormatVersion2})
}
func TestFormatV3(t *testing.T) {
testutil.RunAllTestsWithParam(t, &formatSpecificTestSuite{[]string{"--format-version=3"}, format.FormatVersion3})
}