@@ -382,7 +382,9 @@ func TestUnmarshaling(t *testing.T) {
382
382
383
383
unmarshalReader (r , v .config )
384
384
assert .True (t , InConfig ("name" ))
385
+ assert .True (t , InConfig ("clothing.jacket" ))
385
386
assert .False (t , InConfig ("state" ))
387
+ assert .False (t , InConfig ("clothing.hat" ))
386
388
assert .Equal (t , "steve" , Get ("name" ))
387
389
assert .Equal (t , []interface {}{"skateboarding" , "snowboarding" , "go" }, Get ("hobbies" ))
388
390
assert .Equal (t , map [string ]interface {}{"jacket" : "leather" , "trousers" : "denim" , "pants" : map [string ]interface {}{"size" : "large" }}, Get ("clothing" ))
@@ -1239,7 +1241,9 @@ func TestReadBufConfig(t *testing.T) {
1239
1241
t .Log (v .AllKeys ())
1240
1242
1241
1243
assert .True (t , v .InConfig ("name" ))
1244
+ assert .True (t , v .InConfig ("clothing.jacket" ))
1242
1245
assert .False (t , v .InConfig ("state" ))
1246
+ assert .False (t , v .InConfig ("clothing.hat" ))
1243
1247
assert .Equal (t , "steve" , v .Get ("name" ))
1244
1248
assert .Equal (t , []interface {}{"skateboarding" , "snowboarding" , "go" }, v .Get ("hobbies" ))
1245
1249
assert .Equal (t , map [string ]interface {}{"jacket" : "leather" , "trousers" : "denim" , "pants" : map [string ]interface {}{"size" : "large" }}, v .Get ("clothing" ))
0 commit comments