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 Jan 28, 2021
1 parent b8debb6 commit d56c85c
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 d56c85c

Please sign in to comment.