Skip to content

Commit

Permalink
Add test for the else path.
Browse files Browse the repository at this point in the history
  • Loading branch information
jcgregorio committed Dec 7, 2020
1 parent 0304759 commit 72037cf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions context_test.go
Expand Up @@ -145,6 +145,7 @@ func TestContext_Value(t *testing.T) {
c := NewContext(nil, set, parentCtx)
expect(t, c.Value("myflag"), 12)
expect(t, c.Value("top-flag"), 13)
expect(t, c.Value("unknown-flag"), nil)
}

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

0 comments on commit 72037cf

Please sign in to comment.