mirror of
https://gitea.invidious.io/iv-org/shard-spectator.git
synced 2024-08-15 00:53:35 +00:00
Formatting
This commit is contained in:
parent
81f509c083
commit
1ea209184e
2 changed files with 4 additions and 4 deletions
|
@ -53,7 +53,7 @@ module Spectator
|
|||
protected def formatter
|
||||
case (formatters = self.formatters)
|
||||
when .one? then formatters.first
|
||||
else Formatting::BroadcastFormatter.new(formatters)
|
||||
else Formatting::BroadcastFormatter.new(formatters)
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -165,8 +165,8 @@ module Spectator
|
|||
protected def example_filter
|
||||
case (filters = @filters)
|
||||
when .empty? then NullExampleFilter.new
|
||||
when .one? then filters.first
|
||||
else CompositeExampleFilter.new(filters)
|
||||
when .one? then filters.first
|
||||
else CompositeExampleFilter.new(filters)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -92,7 +92,7 @@ module Spectator
|
|||
# Yields to run the test code and returns information about the outcome.
|
||||
# Returns a tuple with the elapsed time and an error if one occurred (otherwise nil).
|
||||
private def capture : Tuple(Time::Span, Exception?)
|
||||
error = nil
|
||||
error = nil
|
||||
elapsed = Time.measure do
|
||||
error = catch { yield }
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue