mirror of
https://github.com/kopia/kopia.git
synced 2025-12-23 22:57:50 -05:00
* 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
28 lines
730 B
Go
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})
|
|
}
|