Skip to content

Commit b648c23

Browse files
committedNov 6, 2023
Add additional test
1 parent 2dd8f00 commit b648c23

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed
 

‎pkg/config/config_test.go

+30
Original file line numberDiff line numberDiff line change
@@ -1201,6 +1201,36 @@ packages:
12011201
with-expecter: false
12021202
recursive: true
12031203
with-expecter: false
1204+
`,
1205+
},
1206+
{
1207+
name: "empty map for subpackage of recursive package",
1208+
cfgYaml: `
1209+
with-expecter: False
1210+
dir: foobar
1211+
packages:
1212+
github.com/vektra/mockery/v2/pkg/fixtures/example_project/pkg_with_subpkgs/subpkg2:
1213+
config:
1214+
recursive: True
1215+
with-expecter: True
1216+
all: True
1217+
github.com/vektra/mockery/v2/pkg/fixtures/example_project/pkg_with_subpkgs/subpkg2/subpkg3: {}
1218+
`,
1219+
wantCfgMap: `dir: foobar
1220+
packages:
1221+
github.com/vektra/mockery/v2/pkg/fixtures/example_project/pkg_with_subpkgs/subpkg2:
1222+
config:
1223+
all: true
1224+
dir: foobar
1225+
recursive: true
1226+
with-expecter: true
1227+
github.com/vektra/mockery/v2/pkg/fixtures/example_project/pkg_with_subpkgs/subpkg2/subpkg3:
1228+
config:
1229+
all: true
1230+
dir: foobar
1231+
recursive: true
1232+
with-expecter: true
1233+
with-expecter: false
12041234
`,
12051235
},
12061236
}

0 commit comments

Comments
 (0)
Please sign in to comment.