mirror of
https://gitea.invidious.io/iv-org/shard-spectator.git
synced 2024-08-15 00:53:35 +00:00
11 lines
237 B
Crystal
11 lines
237 B
Crystal
|
# Spy class for testing `Spectator::Result#call`.
|
||
|
class ResultCallSpy
|
||
|
{% for name in %i[success failure error pending] %}
|
||
|
getter! {{name.id}} : ::Spectator::Result
|
||
|
|
||
|
def {{name.id}}(arg)
|
||
|
@{{name.id}} = arg
|
||
|
end
|
||
|
{% end %}
|
||
|
end
|