Skip to content

Commit f0e686d

Browse files
committed
fix test, squashme
1 parent 3af7135 commit f0e686d

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

obj/objFixtures_test.go

+2-6
Original file line numberDiff line numberDiff line change
@@ -349,9 +349,7 @@ var objFixtures = []struct {
349349
// Map walks *are* biased towards their declaration order though, as far as I can tell,
350350
// so it's less than a 1/4 chance here.
351351
sequence: fixtures.SequenceMap["quad map default order"],
352-
atlas: atlas.MustBuild(
353-
atlas.BuildEntry(map[string]string{}).MapMorphism().SetKeySortMode(atlas.KeySortMode_Default).Complete(),
354-
),
352+
atlas: atlas.MustBuild().WithMapMorphism(&atlas.MapMorphism{atlas.KeySortMode_Default}),
355353
marshalResults: []marshalResults{
356354
{title: "from map",
357355
valueFn: func() interface{} {
@@ -369,9 +367,7 @@ var objFixtures = []struct {
369367
// Map walks *are* biased towards their declaration order though, as far as I can tell,
370368
// so it's less than a 1/4 chance here.
371369
sequence: fixtures.SequenceMap["quad map rfc7049 order"],
372-
atlas: atlas.MustBuild(
373-
atlas.BuildEntry(map[string]string{}).MapMorphism().SetKeySortMode(atlas.KeySortMode_RFC7049).Complete(),
374-
),
370+
atlas: atlas.MustBuild().WithMapMorphism(&atlas.MapMorphism{atlas.KeySortMode_RFC7049}),
375371
marshalResults: []marshalResults{
376372
{title: "from map",
377373
valueFn: func() interface{} {

0 commit comments

Comments
 (0)