Skip to content

check: implement check.Context.HasValue #89

@GregoryAlbouy

Description

@GregoryAlbouy

Description

Current check.ContextChecker implementation requires to use a ValueChecker for equality check on a context value:

check.Context.Value(someContextKey, check.Wrap(check.String.Is("some value")))
// or
check.Context.Value(someContextKey, check.Value.Is("some value"))

We suspect equality checks to be rather common, thus the following would be convenient:

check.Context.HasValue(someContextKey, "some value")

Todo

  • Implement checkContextCheckerProvider.HasValue

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions