Skip to content

Commit

Permalink
tidy
Browse files Browse the repository at this point in the history
  • Loading branch information
pyqlsa committed May 16, 2022
1 parent ec17c6d commit e327cf3
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions mapper_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -478,15 +478,15 @@ func TestExistingDirMapper(t *testing.T) {

func TestExistingDirMapperDefaultMissing(t *testing.T) {
type CLI struct {
File string `type:"existingdir" default:"missing-dir"`
Dir string `type:"existingdir" default:"missing-dir"`
}
var cli CLI
p := mustNew(t, &cli)
file := "testdata"
_, err := p.Parse([]string{"--file", file})
dir := "testdata"
_, err := p.Parse([]string{"--dir", dir})
require.NoError(t, err)
require.NotNil(t, cli.File)
require.Contains(t, cli.File, file)
require.NotNil(t, cli.Dir)
require.Contains(t, cli.Dir, dir)
}

func TestMapperPlaceHolder(t *testing.T) {
Expand Down

0 comments on commit e327cf3

Please sign in to comment.