Add test for the else path.
This commit is contained in:
parent
b8debb6845
commit
d56c85cef5
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user