Skip to content
This repository was archived by the owner on Jul 22, 2024. It is now read-only.

Commit 39194a0

Browse files
committed
fix tests
Signed-off-by: Nandor Kracser <bonifaido@gmail.com>
1 parent c76ad0d commit 39194a0

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

mapstructure_test.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,8 @@ type StructWithOmitEmpty struct {
160160
OmitMapField map[string]interface{} `mapstructure:"omittable-map,omitempty"`
161161
NestedField *Nested `mapstructure:"visible-nested"`
162162
OmitNestedField *Nested `mapstructure:"omittable-nested,omitempty"`
163+
}
164+
163165
type Required struct {
164166
RequiredBar string `mapstructure:"bar,required"`
165167
Value string `mapstructure:"foo"`
@@ -2233,6 +2235,9 @@ func TestDecode_StructTaggedWithOmitempty_KeepNonEmptyValues(t *testing.T) {
22332235

22342236
if !reflect.DeepEqual(actual, expected) {
22352237
t.Fatalf("Decode() expected: %#v, got: %#v", expected, actual)
2238+
}
2239+
}
2240+
22362241
func TestRequired(t *testing.T) {
22372242
t.Parallel()
22382243

0 commit comments

Comments
 (0)