Test fix.

This commit is contained in:
Stanislav Nikitin 2018-12-04 15:50:01 +05:00
parent ed94ae0fe1
commit d02921ea77
3 changed files with 8 additions and 2 deletions

View File

@ -1 +1,6 @@
{}
{
"go.testFlags": [
"-cover"
],
"go.coverageOptions": "showBothCoveredAndUncoveredCode"
}

View File

@ -23,7 +23,7 @@
package flagger
// This structure represents addable flag for Flagger.
// Flag represents addable flag for Flagger.
type Flag struct {
// Flag name. It will be accessible using this name later.
Name string

View File

@ -251,6 +251,7 @@ func TestFlaggerGetStringFlag(t *testing.T) {
val, err := f.GetStringValue("teststringflag")
require.Nil(t, err)
require.NotEqual(t, "", val)
require.Equal(t, "superstring", val)
}
func TestFlaggerGetUnknownStringFlag(t *testing.T) {