Open yordis opened 1 year ago
lib/spear/reading/stream.ex:50:pattern_match
The pattern can never match the type.
Pattern:
{{:"event_store.client.streams.ReadResp",
{:stream_not_found, {:"event_store.client.streams.ReadResp.StreamNotFound", _}}},
__rest}
Type:
nil
________________________________________________________________________________
lib/spear/reading/stream.ex:54:pattern_match
The pattern can never match the type.
Pattern:
{_message = {:"event_store.client.streams.ReadResp", {:event, _}}, __rest}
Type:
nil
________________________________________________________________________________
lib/spear/reading/stream.ex:60:pattern_match
The pattern can never match the type.
Pattern:
{{:"event_store.client.streams.ReadResp", {_content_case, _}}, __rest}
Type:
nil
________________________________________________________________________________
lib/spear/reading/stream.ex:100:pattern_match
The pattern can never match the type.
Pattern:
{_, _rest = <<__head, _ / binary>>}
Type:
nil
________________________________________________________________________________
lib/spear/reading/stream.ex:113:pattern_match
The pattern can never match the type.
Pattern:
{_message = {:"event_store.client.streams.ReadResp", {:event, _}}, _remaining_buffer}
Type:
nil
________________________________________________________________________________
lib/spear/reading/stream.ex:118:pattern_match
The pattern can never match the type.
Pattern:
{{:"event_store.client.streams.ReadResp", _}, _remaining_buffer}
Type:
nil
________________________________________________________________________________
done (warnings were emitted)
Halting VM with exit status 2
Got stuck with these issues!
Ah I think Spear.Reading.Stream.unfold_chunk/1
is spec
'd incorrectly: it should be tuple()
instead of struct()
since each message is decoded by gpb
as a record
I think it is ready now 😄
Pull Request Test Coverage Report for Build 4b7c6eefe2d152d4cb26f9b4103e8ec8e2693453-PR-82
Warning: This coverage report may be inaccurate.
This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.
Details
💛 - Coveralls