abstract class Spectator::NodeFilter
- Spectator::NodeFilter
- Reference
- Object
Overview
Base class for all node filters.
Checks whether a node should be included in the test run.
Sub-classes must implement the #includes?
method.
Direct Known Subclasses
- Spectator::CompositeNodeFilter
- Spectator::LineNodeFilter
- Spectator::LocationNodeFilter
- Spectator::NameNodeFilter
- Spectator::NullNodeFilter
- Spectator::TagNodeFilter
Defined in:
spectator/node_filter.crInstance Method Summary
-
#===(node)
Checks if a node is in the filter, and should be included in the test run.
-
#includes?(node) : Bool
Checks if a node is in the filter, and should be included in the test run.
Instance methods inherited from class Object
should(matcher : Spectator::Matchers::TypeMatcher(U), message = nil, *, _file = __FILE__, _line = __LINE__) forall Ushould(matcher, message = nil, *, _file = __FILE__, _line = __LINE__) should, should_eventually(matcher, message = nil, *, _file = __FILE__, _line = __LINE__) should_eventually, should_never(matcher, message = nil, *, _file = __FILE__, _line = __LINE__) should_never, should_not(matcher : Spectator::Matchers::TypeMatcher(U), message = nil, *, _file = __FILE__, _line = __LINE__) forall U
should_not(matcher : Spectator::Matchers::NilMatcher, message = nil, *, _file = __FILE__, _line = __LINE__)
should_not(matcher, message = nil, *, _file = __FILE__, _line = __LINE__) should_not
Instance Method Detail
abstract
def includes?(node) : Bool
#
Checks if a node is in the filter, and should be included in the test run.