Module: RuboCop::Cop::MinitestExplorationHelpers Private
- Extended by:
- NodePattern::Macros
- Includes:
- DefNode
- Included in:
- RuboCop::Cop::Minitest::AssertOutput, RuboCop::Cop::Minitest::AssertionInLifecycleHook, RuboCop::Cop::Minitest::DuplicateTestRun, RuboCop::Cop::Minitest::EmptyLineBeforeAssertionMethods, RuboCop::Cop::Minitest::LifecycleHooksOrder, RuboCop::Cop::Minitest::MultipleAssertions, RuboCop::Cop::Minitest::NoAssertions, RuboCop::Cop::Minitest::NoTestCases, RuboCop::Cop::Minitest::NonExecutableTestMethod, RuboCop::Cop::Minitest::NonPublicTestMethod, RuboCop::Cop::Minitest::ReturnInTestMethod, RuboCop::Cop::Minitest::TestFileName, RuboCop::Cop::Minitest::TestMethodName, RuboCop::Cop::Minitest::UnreachableAssertion
- Defined in:
- lib/rubocop/cop/mixin/minitest_exploration_helpers.rb
Overview
This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.
Helper methods for different explorations against test files and test cases.
Constant Summary collapse
- VALUE_MATCHERS =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
%i[ must_be_empty must_equal must_be_close_to must_be_within_delta must_be_within_epsilon must_include must_be_instance_of must_be_kind_of must_match must_be_nil must_be must_respond_to must_be_same_as path_must_exist path_wont_exist wont_be_empty wont_equal wont_be_close_to wont_be_within_delta wont_be_within_epsilon wont_include wont_be_instance_of wont_be_kind_of wont_match wont_be_nil wont_be wont_respond_to wont_be_same_as ].freeze
- BLOCK_MATCHERS =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
%i[ must_output must_pattern_match must_raise must_be_silent must_throw wont_pattern_match ].freeze
- MATCHER_METHODS =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
VALUE_MATCHERS + BLOCK_MATCHERS
- ASSERTION_PREFIXES =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
%i[assert refute].freeze
- LIFECYCLE_HOOK_METHODS_IN_ORDER =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
%i[ before_setup setup after_setup before_teardown teardown after_teardown ].freeze
- LIFECYCLE_HOOK_METHODS =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
LIFECYCLE_HOOK_METHODS_IN_ORDER.to_set.freeze