mirror of
https://gitea.invidious.io/iv-org/shard-spectator.git
synced 2024-08-15 00:53:35 +00:00
Remove unused classes
This commit is contained in:
parent
7a6045a1f3
commit
887a04a92a
2 changed files with 0 additions and 28 deletions
|
@ -1,5 +0,0 @@
|
|||
module Spectator
|
||||
abstract class ExampleFactory
|
||||
abstract def build(locals : Hash(Symbol, ValueWrapper)) : Example
|
||||
end
|
||||
end
|
|
@ -1,23 +0,0 @@
|
|||
require "./example_group"
|
||||
|
||||
module Spectator
|
||||
class GivenExampleGroup(T) < ExampleGroup
|
||||
def initialize(what, @collection : Array(T), @symbol : Symbol, parent = nil)
|
||||
super(what, parent)
|
||||
end
|
||||
|
||||
def example_count
|
||||
super * @collection.size
|
||||
end
|
||||
|
||||
def all_examples(locals = {} of Symbol => ValueWrapper)
|
||||
Array(Example).new(example_count).tap do |array|
|
||||
@collection.each do |local|
|
||||
wrapper = TypedValueWrapper(T).new(local)
|
||||
iter_locals = locals.merge({@symbol => wrapper})
|
||||
array.concat(super(iter_locals))
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
Loading…
Reference in a new issue