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

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

Build:
Build:
LAST BUILD BRANCH: main
DEFAULT BRANCH: master
Ran 07 Mar 2018 06:25PM UTC
Files 35
Run time 1s
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

07 Mar 2018 06:22PM UTC coverage: 90.0%. Remained the same
478.1

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

Source Files on job 478.1
  • Tree
  • List 0
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 1
  • Travis Job 478.1
  • be300756 on github
  • Prev Job for on autodetect-csv-delimiter (#476.1)
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