Skip to content

Commit

Permalink
added .InterfaceFile test
Browse files Browse the repository at this point in the history
  • Loading branch information
istrau2 committed Apr 23, 2024
1 parent 527c0c4 commit dff9d54
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/outputter_test.go
Expand Up @@ -97,7 +97,7 @@ func Test_parseConfigTemplates(t *testing.T) {
args: args{
c: &config.Config{
Dir: "{{.InterfaceDir}}/{{.PackagePath}}",
FileName: "{{.InterfaceName}}_{{.InterfaceNameCamel}}_{{.InterfaceNameSnake}}_{{.InterfaceNameLower}}.go",
FileName: "{{.InterfaceName}}_{{.InterfaceNameCamel}}_{{.InterfaceNameSnake}}_{{.InterfaceNameLower}}_{{.InterfaceFile}}",
MockName: "{{.InterfaceNameLowerCamel}}",
Outpkg: "{{.PackageName}}",
},
Expand All @@ -110,7 +110,7 @@ func Test_parseConfigTemplates(t *testing.T) {
pkg: mockPkg,
want: &config.Config{
Dir: "path/to/github.com/user/project/package",
FileName: "FooBar_FooBar_foo_bar_foobar.go",
FileName: "FooBar_FooBar_foo_bar_foobar_foobar.go",
MockName: "fooBar",
Outpkg: "packageName",
},
Expand Down

0 comments on commit dff9d54

Please sign in to comment.