abstract class Spectator::NodeFilter

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

Defined in:

spectator/node_filter.cr

Instance Method Summary

Instance methods inherited from class Object

should(matcher : Spectator::Matchers::TypeMatcher(U), message = nil, *, _file = __FILE__, _line = __LINE__) forall U
should(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

def ===(node) #

Checks if a node is in the filter, and should be included in the test run.


[View source]
abstract def includes?(node) : Bool #

Checks if a node is in the filter, and should be included in the test run.


[View source]