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

frictionlessdata / tableschema-js / 480
90%

Build:
DEFAULT BRANCH: master
Ran 07 Mar 2018 06:48PM UTC
Jobs 1
Files 35
Run time 2s
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
480

push

travis-ci

vitorbaptista
Autodetect CSV delimiter

This uses `csv-sniffer` to autodetect the CSV delimiter. It does so by adding a
`PassThrough()` stream that reads the first chunk of data, infers the
delimiter, and configures the existing CSV parser.

I hoped to be able to do this without creating a dependency between the CSV
delimiter extraction and the CSV parser, but was unable to because the pipeline
needs to be configured before reading, otherwise the CSV parser won't get the
first chunk.

I also tried adding a test to ensure that if an explicit delimiter is passed,
it'll be used, but failed because for some reason I couldn't catch an error
thrown by `csv-parser`. Didn't matter that the code was inside a try/catch
block, the error was still raised.

444 of 522 branches covered (85.06%)

Branch coverage included in aggregate %.

16 of 16 new or added lines in 1 file covered. (100.0%)

807 of 868 relevant lines covered (92.97%)

2003.62 hits per line

Jobs
ID Job ID Ran Files Coverage
1 480.1 07 Mar 2018 06:48PM UTC 0
90.0
Travis Job 480.1
Source Files on build 480
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #480
  • 724fe6b7 on github
  • Prev Build on master (#475)
  • Next Build on master (#481)
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