Test fix.
This commit is contained in:
parent
ed94ae0fe1
commit
d02921ea77
7
.vscode/settings.json
vendored
7
.vscode/settings.json
vendored
@ -1 +1,6 @@
|
|||||||
{}
|
{
|
||||||
|
"go.testFlags": [
|
||||||
|
"-cover"
|
||||||
|
],
|
||||||
|
"go.coverageOptions": "showBothCoveredAndUncoveredCode"
|
||||||
|
}
|
2
flag.go
2
flag.go
@ -23,7 +23,7 @@
|
|||||||
|
|
||||||
package flagger
|
package flagger
|
||||||
|
|
||||||
// This structure represents addable flag for Flagger.
|
// Flag represents addable flag for Flagger.
|
||||||
type Flag struct {
|
type Flag struct {
|
||||||
// Flag name. It will be accessible using this name later.
|
// Flag name. It will be accessible using this name later.
|
||||||
Name string
|
Name string
|
||||||
|
@ -251,6 +251,7 @@ func TestFlaggerGetStringFlag(t *testing.T) {
|
|||||||
val, err := f.GetStringValue("teststringflag")
|
val, err := f.GetStringValue("teststringflag")
|
||||||
require.Nil(t, err)
|
require.Nil(t, err)
|
||||||
require.NotEqual(t, "", val)
|
require.NotEqual(t, "", val)
|
||||||
|
require.Equal(t, "superstring", val)
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestFlaggerGetUnknownStringFlag(t *testing.T) {
|
func TestFlaggerGetUnknownStringFlag(t *testing.T) {
|
||||||
|
Loading…
Reference in New Issue
Block a user