Skip to content

Commit

Permalink
Add additional test
Browse files Browse the repository at this point in the history
  • Loading branch information
LandonTClipp committed Nov 6, 2023
1 parent 2dd8f00 commit b648c23
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions pkg/config/config_test.go
Expand Up @@ -1201,6 +1201,36 @@ packages:
with-expecter: false
recursive: true
with-expecter: false
`,
},
{
name: "empty map for subpackage of recursive package",
cfgYaml: `
with-expecter: False
dir: foobar
packages:
github.com/vektra/mockery/v2/pkg/fixtures/example_project/pkg_with_subpkgs/subpkg2:
config:
recursive: True
with-expecter: True
all: True
github.com/vektra/mockery/v2/pkg/fixtures/example_project/pkg_with_subpkgs/subpkg2/subpkg3: {}
`,
wantCfgMap: `dir: foobar
packages:
github.com/vektra/mockery/v2/pkg/fixtures/example_project/pkg_with_subpkgs/subpkg2:
config:
all: true
dir: foobar
recursive: true
with-expecter: true
github.com/vektra/mockery/v2/pkg/fixtures/example_project/pkg_with_subpkgs/subpkg2/subpkg3:
config:
all: true
dir: foobar
recursive: true
with-expecter: true
with-expecter: false
`,
},
}
Expand Down

0 comments on commit b648c23

Please sign in to comment.