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:
2026-05-02 20:02:20 +01:00
parent 0ae52ef72d
commit eadcf9fa14
6 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -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
View File
@@ -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
View File
@@ -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
View File
@@ -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
View File
@@ -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) {