Commit Graph

7 Commits

Author SHA1 Message Date
Rick Olson
3f1eec26a2 typo 2015-08-27 15:54:46 -06:00
Taylor Blau
a213908aa5 lfs/batcher: rename assertAll to runBatcherTests 2015-08-27 17:22:48 -04:00
Taylor Blau
d79653966e lfs/batcher: drop prefixes from Godoc comments in test 2015-08-27 17:21:48 -04:00
Taylor Blau
4a41bf16cd lfs/batcher: introduce test cases
This commit adds the notion of a test case into the `lfs.Batcher` tests. Each
test case has three properties:
  - the batch size
  - the number of batched items
  - whether or not the batcher should exit

This commit also adds a helper func called `assertAll` which processes a set of
test cases, throwing assertion errors into the `*testing.T` along the way.

On the other hand, this commit does not contain any utilities to assert that a
deadlock will occur when feeding items into a Batcher, i.e., when the batch size
is set to 0.
2015-08-27 16:39:45 -04:00
rubyist
c20272c16c Remove batcher timeout 2015-07-15 14:32:59 -07:00
rubyist
dcd975f293 Fix import again 2015-07-09 17:09:41 -04:00
rubyist
b9c4b3abfa Introduce a batcher that batches things into groups of n 2015-07-09 13:21:07 -04:00