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

frictionlessdata / tableschema-js / 478
90%
master: 90%

Build:
Build:
LAST BUILD BRANCH: main
DEFAULT BRANCH: master
Ran 07 Mar 2018 06:25PM 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
478

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 %.

807 of 868 relevant lines covered (92.97%)

2003.62 hits per line

Jobs
ID Job ID Ran Files Coverage
1 478.1 07 Mar 2018 06:25PM UTC 0
90.0
Travis Job 478.1
Source Files on build 478
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #478
  • be300756 on github
  • Prev Build on autodetect-csv-delimiter (#476)
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