You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After a call to rs.UniqueVessels the file pointer in the RecordSet reader has already reached io.EOF and any further calls to the Reader do not behave as expected. Users may want to call UniqueVessels and see if a particular vessel is present in the data, and then use the set for additional operations that fail because the pointer needs be reset.
The text was updated successfully, but these errors were encountered:
Prep work for issue #35
Increases code coverage to 41% by covering the UniqueVessles method
of a RecordSet. This gives a good base to ensure that fixes to
issue #35 don't introduce new reression bugs.
Corrects issue #35
Main changes are contained in the RecordSet.UniqueVessels() function
where a buffer was created to keep track of the state of the Reader
before it was read until EOF by the function. Then the pointer for
the RecordSet is pointed at this new copy upon exiting the function.
Test coverage was also added to ensure this new functionality did not
cause breaking changes.
Regression testing revealed that changes were necessary to the
Record.Data() function in order to accurately reflect the way bytes are
written in a CSV record. This in turn caused a breakage in the
Track testing functions which was also corrected.
After a call to
rs.UniqueVessels
the file pointer in theRecordSet
reader has already reachedio.EOF
and any further calls to the Reader do not behave as expected. Users may want to callUniqueVessels
and see if a particular vessel is present in the data, and then use the set for additional operations that fail because the pointer needs be reset.The text was updated successfully, but these errors were encountered: