refactor: move testfixtures to internal package and update imports
- Relocated testfixtures from the root to the internal package for better encapsulation. - Updated import paths in codec test files across env, ini, json, yaml directories to reflect the new location. - Removed the now obsolete testfixtures.go file.
This commit is contained in:
Vendored
+1
-1
@@ -4,7 +4,7 @@ import (
|
|||||||
"context"
|
"context"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/eslider/go-config/testfixtures"
|
"github.com/eslider/go-config/internal/testfixtures"
|
||||||
)
|
)
|
||||||
|
|
||||||
type identityRoot struct {
|
type identityRoot struct {
|
||||||
|
|||||||
+1
-1
@@ -4,7 +4,7 @@ import (
|
|||||||
"context"
|
"context"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/eslider/go-config/testfixtures"
|
"github.com/eslider/go-config/internal/testfixtures"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestCodec_IdentityINIFixture(t *testing.T) {
|
func TestCodec_IdentityINIFixture(t *testing.T) {
|
||||||
|
|||||||
+1
-1
@@ -4,7 +4,7 @@ import (
|
|||||||
"context"
|
"context"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/eslider/go-config/testfixtures"
|
"github.com/eslider/go-config/internal/testfixtures"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestCodec_IdentityJSONFixture(t *testing.T) {
|
func TestCodec_IdentityJSONFixture(t *testing.T) {
|
||||||
|
|||||||
+1
-1
@@ -7,7 +7,7 @@ import (
|
|||||||
|
|
||||||
"github.com/eslider/go-config/internal/keymap"
|
"github.com/eslider/go-config/internal/keymap"
|
||||||
"github.com/eslider/go-config/internal/merge"
|
"github.com/eslider/go-config/internal/merge"
|
||||||
"github.com/eslider/go-config/testfixtures"
|
"github.com/eslider/go-config/internal/testfixtures"
|
||||||
yaml3 "gopkg.in/yaml.v3"
|
yaml3 "gopkg.in/yaml.v3"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -4,7 +4,7 @@ import (
|
|||||||
"context"
|
"context"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/eslider/go-config/testfixtures"
|
"github.com/eslider/go-config/internal/testfixtures"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestCodec_InvalidYAML(t *testing.T) {
|
func TestCodec_InvalidYAML(t *testing.T) {
|
||||||
|
|||||||
Reference in New Issue
Block a user