class RunPatternTests

Runs the unit tests on each pattern

Public Instance Methods

pre_lint(pattern, _options) click to toggle source

Runs the unit tests on each pattern

@return [Boolean] the result of the unit tests

# File lib/textmate_grammar/linters/tests.rb, line 12
def pre_lint(pattern, _options)
    return true unless pattern.is_a? PatternBase

    pattern.run_tests
end