Add test for the else path.

This commit is contained in:
Joe Gregorio 2020-12-05 21:59:56 -05:00
parent b8debb6845
commit d56c85cef5

View File

@ -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) {