Permalink
master
Commits on Mar 5, 2022
-
Fix some test failures on Windows
Co-authored-by: Aaron Huntley <aaron.huntley2007@gmail.com> Co-authored-by: Brian Hasden <bhasden@gmail.com> Co-authored-by: Umang Vanjara <umang.vanjara@gmail.com>
Commits on Feb 21, 2022
Commits on Jan 1, 2022
-
Merge pull request #89 from gty929/small-updates
Bug fixes and improvements for corner cases
-
-
Previously, pipes always wrote to os.Stdout on calling Stdout(). This made it awkward to test. Now you can set a 'fake stdout' by calling WithStdout(io.Writer) on the pipe.
-
Bug fixes and improvements for corner cases
Fix the defect that Column crashes on zero or negative input. Fix the defect that Last() crashes on negative input; Fix the defect that Regex filters crashes on nil regex expression; Add unit test for WithError(); close the pipe when a non-nil error is set; Add ExecForEach, Reject(), and RejectRegexp to doMethodsOnPipe tests; Improve coverage by adding equal counts in the testcase of Freq; Use io.Copy() in Stdout() to improve efficiency.
-
-
Previously, pipes always wrote to os.Stdout on calling Stdout(). This made it awkward to test. Now you can set a 'fake stdout' by calling WithStdout(io.Writer) on the pipe.
Commits on Dec 31, 2021
-
-
WriteFile is supposed to truncate and overwrite an existing file. In fact, it was overwriting the beginning of the file with the new data, but leaving the remaining old data intact. Adding the O_TRUNC flag to os.OpenFile fixes this.
Commits on Nov 22, 2021
Commits on Nov 6, 2021
Commits on Sep 8, 2021
Commits on Oct 27, 2020
Commits on Oct 24, 2020
Commits on Sep 5, 2020
Commits on Jul 2, 2020
-
-
* Add Slice() sink (fixes #47) * Add test with empty pipe * Apply suggestions from code review Co-Authored-By: John Arundel <john@bitfieldconsulting.com> * Not using type as variable name * Using cmp to deep compare * Not testing ListFiles in the test method for SliceSink * Remove examples/visitors/go.sum who should not be commited * An empty pipe should return an empty Slice * Better example for Slice * Ignore all go.sum Co-authored-by: John Arundel <john@bitfieldconsulting.com> * use cmp.diff when printing error * Remove comma in doc * Move Slice after SHA256 * Edit comments * Adding trailing blank line: * Single line with embeded new lines * Code style * Range over pids * Code style * Using EachLine to split on each lines * Slice is supposed to be after SHA256 * Change order of params in cmp.Equal * Better explanation in test * typo * Better example who don't use system specific command * still an order problem * Order problem * Add comment to the example for slice * Move the test to a t.Run format * Change order for cmp.Equal * Add example file * Tweaks to SliceSink Co-authored-by: John Arundel <john@bitfieldconsulting.com> Co-authored-by: Thomas Poignant <thomas.poignant@adevinta.com>
Commits on May 1, 2020
Commits on Apr 29, 2020
Commits on Apr 15, 2020
Commits on Apr 2, 2020
Commits on Mar 30, 2020
Commits on Mar 29, 2020
-
-
Merge pull request #43 from bitfield/concat_continue
Have Concat skip errors (fixes #26)
-
Commits on Mar 28, 2020
-
Merge pull request #42 from bitfield/better_exec
Fix Exec to handle quotes
-