failing test

This commit is contained in:
Lynn Cyrin 2019-12-24 07:22:30 -08:00
parent 49db826a05
commit b44b656820
No known key found for this signature in database
GPG Key ID: 9E60BEE0555C367B

View File

@ -293,6 +293,13 @@ func TestContext_Lineage(t *testing.T) {
expect(t, lineage[1], parentCtx) expect(t, lineage[1], parentCtx)
} }
func TestContext_BackgroundContextAttributeAccessing(t *testing.T) {
parentContext := context.Background()
ctx := NewContext(nil, nil, &Context{Context: parentContext})
value := ctx.Bool("some-bool")
expect(t, value, false)
}
func TestContext_lookupFlagSet(t *testing.T) { func TestContext_lookupFlagSet(t *testing.T) {
set := flag.NewFlagSet("test", 0) set := flag.NewFlagSet("test", 0)
set.Bool("local-flag", false, "doc") set.Bool("local-flag", false, "doc")