mirror of
https://gitea.invidious.io/iv-org/shard-spectator.git
synced 2024-08-15 00:53:35 +00:00
Change visibility to private
This commit is contained in:
parent
4b59dcf142
commit
c75fba8076
2 changed files with 3 additions and 3 deletions
|
@ -18,7 +18,7 @@ module Spectator::Matchers
|
|||
|
||||
# Message displayed when the matcher isn't satisifed.
|
||||
# This is only called when `#matches?` returns false.
|
||||
abstract def failure_message(actual) : String
|
||||
private abstract def failure_message(actual) : String
|
||||
|
||||
# Message displayed when the matcher isn't satisifed and is negated.
|
||||
# This is only called when `#does_not_match?` returns false.
|
||||
|
@ -26,7 +26,7 @@ module Spectator::Matchers
|
|||
# A default implementation of this method is provided,
|
||||
# which causes compilation to fail.
|
||||
# If the matcher supports negation, it must override this method.
|
||||
def failure_message_when_negated(actual) : String
|
||||
private def failure_message_when_negated(actual) : String
|
||||
{% raise "Negation with #{@type.name} is not supported." %}
|
||||
end
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@ module Spectator::Matchers
|
|||
abstract struct ValueMatcher(ExpectedType) < Matcher
|
||||
# Expected value.
|
||||
# Sub-types may use this value to test the expectation and generate message strings.
|
||||
getter expected : TestValue(ExpectedType)
|
||||
private getter expected : TestValue(ExpectedType)
|
||||
|
||||
# Creates the value matcher.
|
||||
# The expected value is stored for later use.
|
||||
|
|
Loading…
Reference in a new issue