Add test for the else path.

main
Joe Gregorio 4 years ago
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…
Cancel
Save