@@ -500,8 +500,8 @@ func TestUnmarshaler(t *testing.T) {
500
500
require .NoError (t , cfgMap .Unmarshal (tc ))
501
501
assert .Equal (t , "make sure this is only called directly" , tc .Another )
502
502
assert .Equal (t , "make sure this is called" , tc .Next .String )
503
- assert .Equal (t , "make sure this is also called" , tc .EmbeddedConfig . Some )
504
- assert .Equal (t , "this better be also called2" , tc .EmbeddedConfig2 . Some2 )
503
+ assert .Equal (t , "make sure this is also called" , tc .Some )
504
+ assert .Equal (t , "this better be also called2" , tc .Some2 )
505
505
}
506
506
507
507
func TestEmbeddedUnmarshaler (t * testing.T ) {
@@ -518,8 +518,8 @@ func TestEmbeddedUnmarshaler(t *testing.T) {
518
518
require .NoError (t , cfgMap .Unmarshal (tc ))
519
519
assert .Equal (t , "make sure this" , tc .Another )
520
520
assert .Equal (t , "make sure this is called" , tc .Next .String )
521
- assert .Equal (t , "make sure this is also called" , tc .EmbeddedConfig . Some )
522
- assert .Equal (t , "this better be also called2" , tc .EmbeddedConfig2 . Some2 )
521
+ assert .Equal (t , "make sure this is also called" , tc .Some )
522
+ assert .Equal (t , "this better be also called2" , tc .Some2 )
523
523
}
524
524
525
525
func TestEmbeddedUnmarshalerError (t * testing.T ) {
@@ -808,8 +808,8 @@ func TestUnmarshalThroughEmbeddedStruct(t *testing.T) {
808
808
cfg := & topLevel {}
809
809
err := c .Unmarshal (cfg )
810
810
require .NoError (t , err )
811
- require .Equal (t , "success" , cfg .Cfg .embeddedStructWithUnmarshal . success )
812
- require .Equal (t , "bar" , cfg .Cfg .embeddedStructWithUnmarshal . Foo )
811
+ require .Equal (t , "success" , cfg .Cfg .success )
812
+ require .Equal (t , "bar" , cfg .Cfg .Foo )
813
813
}
814
814
815
815
type configWithOwnUnmarshalAndEmbeddedSquashedStruct struct {
@@ -830,8 +830,8 @@ func TestUnmarshalOwnThroughEmbeddedSquashedStruct(t *testing.T) {
830
830
cfg := & topLevelSquashedEmbedded {}
831
831
err := c .Unmarshal (cfg )
832
832
require .NoError (t , err )
833
- require .Equal (t , "success" , cfg .Cfg .embeddedStructWithUnmarshal . success )
834
- require .Equal (t , "bar" , cfg .Cfg .embeddedStructWithUnmarshal . Foo )
833
+ require .Equal (t , "success" , cfg .Cfg .success )
834
+ require .Equal (t , "bar" , cfg .Cfg .Foo )
835
835
}
836
836
837
837
type recursive struct {
0 commit comments