diff options
Diffstat (limited to 'vendor/github.com/stretchr/objx/fixture_test.go')
-rw-r--r-- | vendor/github.com/stretchr/objx/fixture_test.go | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/vendor/github.com/stretchr/objx/fixture_test.go b/vendor/github.com/stretchr/objx/fixture_test.go index 27f7d9049..cefe8cdc6 100644 --- a/vendor/github.com/stretchr/objx/fixture_test.go +++ b/vendor/github.com/stretchr/objx/fixture_test.go @@ -1,8 +1,10 @@ -package objx +package objx_test import ( - "github.com/stretchr/testify/assert" "testing" + + "github.com/stretchr/objx" + "github.com/stretchr/testify/assert" ) var fixtures = []struct { @@ -79,20 +81,16 @@ var fixtures = []struct { } func TestFixtures(t *testing.T) { - for _, fixture := range fixtures { - - m := MustFromJSON(fixture.data) + m := objx.MustFromJSON(fixture.data) // get the value t.Logf("Running get fixture: \"%s\" (%v)", fixture.name, fixture) value := m.Get(fixture.get.(string)) // make sure it matches - assert.Equal(t, fixture.output, value.data, + assert.Equal(t, fixture.output, value.Data(), "Get fixture \"%s\" failed: %v", fixture.name, fixture, ) - } - } |