From e327cf38d1f3311ab4afeb21661e9789a8712302 Mon Sep 17 00:00:00 2001 From: pyq-lsa <26353308+pyq-lsa@users.noreply.github.com> Date: Sun, 1 May 2022 12:09:03 -0700 Subject: [PATCH] tidy --- mapper_test.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/mapper_test.go b/mapper_test.go index eaca30d..43818ec 100644 --- a/mapper_test.go +++ b/mapper_test.go @@ -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) {