mirror of
https://gitea.invidious.io/iv-org/shard-spectator.git
synced 2024-08-15 00:53:35 +00:00
Remove unused methods
This commit is contained in:
parent
57c9333c1f
commit
a7ac170153
1 changed files with 1 additions and 19 deletions
|
@ -72,27 +72,9 @@ module Spectator
|
||||||
|
|
||||||
private def run_internal
|
private def run_internal
|
||||||
group?.try(&.call_before_each(self))
|
group?.try(&.call_before_each(self))
|
||||||
run_test
|
|
||||||
group?.try(&.call_after_each(self))
|
|
||||||
end
|
|
||||||
|
|
||||||
private def run_before_hooks : Nil
|
|
||||||
return unless (parent = group?)
|
|
||||||
|
|
||||||
parent.call_once_before_all
|
|
||||||
parent.call_before_each(self)
|
|
||||||
end
|
|
||||||
|
|
||||||
private def run_after_hooks : Nil
|
|
||||||
return unless (parent = group?)
|
|
||||||
|
|
||||||
parent.call_after_each(self)
|
|
||||||
parent.call_once_after_all if parent.finished?
|
|
||||||
end
|
|
||||||
|
|
||||||
private def run_test : Nil
|
|
||||||
@entrypoint.call(self)
|
@entrypoint.call(self)
|
||||||
@finished = true
|
@finished = true
|
||||||
|
group?.try(&.call_after_each(self))
|
||||||
end
|
end
|
||||||
|
|
||||||
# Executes code within the example's test context.
|
# Executes code within the example's test context.
|
||||||
|
|
Loading…
Reference in a new issue