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

emilio-martinez / is-datatype / 207
100%

Build:
DEFAULT BRANCH: master
Ran 24 Sep 2017 10:06AM UTC
Jobs 1
Files 3
Run time 0s
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
207

push

travis-ci

web-flow
perf: refactor to achieve various data access and size improvements

The following improvements were made:
* Sorted `DataType` properties to easily differentiate between primitives and not — will come in handy in the future
* Avoid zero `DataType` index to avoid falsy comparisons
* Reduce redundancies in `null` test
* Create a sister `const enum` for `DataType` for internal use
  This change should improve performance due to removing the overhead of object access in favor of primitive use in comparisons. Additionally, because `DATATYPE` is compiled into just numbers, there will be a size reduction.
  `DATATYPE` will not be exported to JS, only `DataType`.
  A test has been added to ensure that both `DATATYPE` and `DataType` stay in sync.
* Simplify `isValidOptions` to not be switch-based
* Deduplicate number bounds logic into `testNumberWithinBounds`
* Remove unnecessary `typeof` object check for Array

The overall results are a smaller output with a bit more performant checks, especially due to less comparison overhead.

156 of 156 branches covered (100.0%)

102 of 102 relevant lines covered (100.0%)

2025.39 hits per line

Jobs
ID Job ID Ran Files Coverage
1 207.1 24 Sep 2017 10:06AM UTC 0
100.0
Travis Job 207.1
Source Files on build 207
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #207
  • 7b1c6939 on github
  • Prev Build on master (#203)
  • Next Build on master (#210)
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