• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

poelstra / ts-stream / 98
97%

Build:
DEFAULT BRANCH: master
Ran 21 Jul 2020 07:26PM UTC
Jobs 1
Files 12
Run time 3s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
98

push

travis-ci-com

web-flow
Batch transform (#49)

* Batch stream function (no tests)

* Early-return chunk in case of abort

* expand batch with lower threshold and timeout features

* Lint

* some passing tests with detailed logging

* tests for timeout, refactor optional parameters to be named

* Reorganize behaviour around abort inside batch, tests for abort

* Realize that writeEach() folds abort errors into end errors

* Thoroughly test timeout clock

* simplify test

* Delog

* lint

* prettierify

* MochaDone -> Mocha.Done

* Remove stray line of code

* remove void

* remove function 'batcher' as unsure if needed

* Export batcher as a transform instead of a Stream method

* Explicitly compare timeout value to , since it could be a number (including 0) in the browser

* Simplify implementation with async/await, allow backpressure when maxBatchSize is reached, allow out-of-flow write operations to abort

* Switch launch config to bdd (it doesn't work otherwise)

* Update time-based tests to work with sinon.useFakeTimers() via clockwise()

* remove sinon clock mock test

* Shorten some tests, backpressure test

* remove accidentally copied test

* Clear any existing timeout before setting a new one

* Tests for backpressure and error bouncing

* Update test to ensure coverage

* Ensure that error within timeout flush is caught

* Replace composeEnders

* Prevent unnecessary Promise chaining as elements come in between minBatchSize and maxBatchSize

* Batcher Options

* Rewrite stream flow for clarity using 'pendingWrite' flag (credit Martin Poelstra)

* test to ensure the while loop inside earlyFlush() is doing its job

* explicitly assert that stream hasn't ended yet in while loop test

* Capture errors from early flush() and throw them on write() or end()

* Improve line coverage for Transform.ts

* Tighten up handling of failure cases (still one failing test)

* With pendingWrite tracked promis... (continued)

211 of 251 branches covered (84.06%)

419 of 419 new or added lines in 5 files covered. (100.0%)

2220 of 2299 relevant lines covered (96.56%)

24.58 hits per line

Jobs
ID Job ID Ran Files Coverage
1 98.1 21 Jul 2020 07:26PM UTC 0
96.56
Travis Job 98.1
Source Files on build 98
Detailed source file information is not available for this build.
  • Back to Repo
  • Build #98
  • 8e68a490 on github
  • Prev Build on master (#89)
  • Next Build on master (#107)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc