mirror of
https://gitea.invidious.io/iv-org/shard-spectator.git
synced 2024-08-15 00:53:35 +00:00
4dfa5ccb6e
In Crystal 1.6, a segfault would occur in the spec spec/spectator/mocks/lazy_double_spec.cr:238 I suspect this is a Crystal bug of some kind, but can't reduce it. The methods produced by `method_missing` don't have a return type including Symbol. Symbol is excluded from the union of return types (Int32 | String | Nil). The program segfaults when calling a method on the actual value, which is a symbol. It ultimately crashes when producing a failure message, which indicates the value it tested doesn't equal the expected value (a symbol of the same value). Avoid this issue by preventing stubs on undefined/untyped methods. |
||
---|---|---|
.. | ||
allow_spec.cr | ||
arguments_spec.cr | ||
double_spec.cr | ||
exception_stub_spec.cr | ||
lazy_double_spec.cr | ||
method_call_spec.cr | ||
mock_spec.cr | ||
multi_value_stub_spec.cr | ||
null_double_spec.cr | ||
null_stub_spec.cr | ||
proc_stub_spec.cr | ||
reference_mock_registry_spec.cr | ||
value_mock_registry_spec.cr | ||
value_stub_spec.cr |