ais icon indicating copy to clipboard operation
ais copied to clipboard

Wrte a test to ensure RecordSet.Read() calls are not moving the file pointer incorrectly

Open zacsketches opened this issue 7 years ago • 1 comments

From @zacsketches on November 15, 2018 12:14

There may be a subtle bug in the library where calls to csv.Read() are moving the file pointer over the first line when Headers are being checked. This could cause some operations later in a program to miss the first line. There needs to be a consistent way that the file pointer on the underlying file handle in a RecordSet is returned to the top of the file after each access.

Copied from original issue: FATHOM5/Seattle_Reasonable_Track2#27

zacsketches avatar Nov 20 '18 21:11 zacsketches

I need to create a test data.csv file that has the vessel names

first
second
third
fourth
fifth

and then ensure that multiple calls to csv.Read do not start clipping off all of the vessels in the RecrordSet.

zacsketches avatar Nov 20 '18 21:11 zacsketches