-
Notifications
You must be signed in to change notification settings - Fork 267
Fix #435: replay only events from time of creating SeqAccess struct #453
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Codecov Report
@@ Coverage Diff @@
## master #453 +/- ##
==========================================
+ Coverage 51.33% 52.15% +0.81%
==========================================
Files 28 28
Lines 13312 13480 +168
==========================================
+ Hits 6834 7030 +196
+ Misses 6478 6450 -28
Flags with carried forward coverage won't be shown. Click here to find out more.
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
| ); | ||
|
|
||
| // Initial conditions - both are empty | ||
| assert_eq!(de.read, vec![]); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just .is_empty() is cleaner
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would like to keep comparing with empty vector for two reasons:
- keep uniformity of checks in the test
- if check failed, I would see actual content of a field
|
I remembered that I've implemented not all tests which I wish |
f26f317 to
a79e5d9
Compare
failures (1):
de::tests::skip::partial_replay
failures (14):
seq::fixed_name::fixed_size::field_after_list::overlapped_with_nested_list
seq::fixed_name::fixed_size::field_before_list::overlapped_with_nested_list
seq::fixed_name::fixed_size::two_lists::overlapped_with_nested_list
seq::fixed_name::variable_size::field_after_list::overlapped_with_nested_list
seq::fixed_name::variable_size::field_before_list::overlapped_with_nested_list
seq::fixed_name::variable_size::two_lists::overlapped_with_nested_list
seq::variable_name::fixed_size::field_after_list::overlapped_with_nested_list
seq::variable_name::fixed_size::field_before_list::overlapped_with_nested_list
seq::variable_name::fixed_size::two_lists::choice_and_fixed::overlapped::with_nested_list_fixed_after
seq::variable_name::fixed_size::two_lists::fixed_and_choice::overlapped::with_nested_list_fixed_after
seq::variable_name::variable_size::field_after_list::overlapped_with_nested_list
seq::variable_name::variable_size::field_before_list::overlapped_with_nested_list
seq::variable_name::variable_size::two_lists::choice_and_fixed::overlapped::with_nested_list_fixed_after
seq::variable_name::variable_size::two_lists::fixed_and_choice::overlapped::with_nested_list_fixed_after
a79e5d9 to
656081b
Compare
This PR fixes #435. The reason of the bug is that nested lists produces two calls of
start_replay()of skipped events, but not all events should be replayed after first call.This PR add marks that determines which events should be replayed after calling
start_replay(). The mark is created when new replay scope is started (whendeserialize_seq/deserialize_tuple/deserialize_tuple_structis called) and used whenstart_replay()is called.