mirror of
https://gitea.invidious.io/iv-org/shard-spectator.git
synced 2024-08-15 00:53:35 +00:00
Reorder methods
This commit is contained in:
parent
d0a8a1deae
commit
600c9fbde1
1 changed files with 10 additions and 10 deletions
|
@ -26,26 +26,26 @@ module Spectator
|
|||
@results.count(&.failed?)
|
||||
end
|
||||
|
||||
# Returns a set of results for all failed examples.
|
||||
def failures
|
||||
@results.select(&.failed?).map(&.as(FailedResult))
|
||||
end
|
||||
|
||||
# Number of examples that had errors.
|
||||
def error_count
|
||||
@results.count(&.errored?)
|
||||
end
|
||||
|
||||
# Returns a set of results for all errored examples.
|
||||
def errors
|
||||
@results.select(&.errored?).map(&.as(ErroredResult))
|
||||
end
|
||||
|
||||
# Number of pending examples.
|
||||
def pending_count
|
||||
@results.count(&.pending?)
|
||||
end
|
||||
|
||||
# Returns a set of results for all failed examples.
|
||||
def failures
|
||||
@results.select(&.failed?).map(&.as(FailedResult))
|
||||
end
|
||||
|
||||
# Returns a set of results for all errored examples.
|
||||
def errors
|
||||
@results.select(&.errored?).map(&.as(ErroredResult))
|
||||
end
|
||||
|
||||
# Length of time it took to run just example code.
|
||||
# This does not include hooks,
|
||||
# but it does include pre- and post-conditions.
|
||||
|
|
Loading…
Reference in a new issue