remotivelabs.topology.testing.matcher
Base class for all ~hamcrest.core.matcher.Matcher
implementations.
Most implementations can just implement _matches
, leaving the
handling of any mismatch description to the matches
method. But if it
makes more sense to generate the mismatch description during the matching,
override ~hamcrest.core.matcher.Matcher.matches()
instead.
Generates a description of the object.
The description may be part of a description of a larger object of which this is just a component, so it should be worded appropriately.
Parameters
- description: The description to be built or appended to.
Checks if a list ends with another list
Generates a description of the object.
The description may be part of a description of a larger object of which this is just a component, so it should be worded appropriately.
Parameters
- description: The description to be built or appended to.
Base class for all ~hamcrest.core.matcher.Matcher
implementations.
Most implementations can just implement _matches
, leaving the
handling of any mismatch description to the matches
method. But if it
makes more sense to generate the mismatch description during the matching,
override ~hamcrest.core.matcher.Matcher.matches()
instead.
Generates a description of the object.
The description may be part of a description of a larger object of which this is just a component, so it should be worded appropriately.
Parameters
- description: The description to be built or appended to.
Base class for all ~hamcrest.core.matcher.Matcher
implementations.
Most implementations can just implement _matches
, leaving the
handling of any mismatch description to the matches
method. But if it
makes more sense to generate the mismatch description during the matching,
override ~hamcrest.core.matcher.Matcher.matches()
instead.
Generates a description of the object.
The description may be part of a description of a larger object of which this is just a component, so it should be worded appropriately.
Parameters
- description: The description to be built or appended to.