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

pelotom / runtypes / 456
96%

Build:
DEFAULT BRANCH: master
Ran 22 Jun 2020 05:33PM UTC
Jobs 1
Files 29
Run time 14min
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
456

push

travis-ci

web-flow
Implement Discriminated Unions (#149)

* Implement Discriminated Unions

If:
- all the alternatives of a union are records
- they have at least one field in common, that is a literal in each
record with unique values

Then when checking the alternatives we can pick the correct one first,
and then perform the validation, thus producing more specific error
messages.

This is something already present in TypeScript itself https://www.typescriptlang.org/docs/handbook/advanced-types.html#discriminated-unions
Though this implementation would not work in all the cases covered by
TS, but its a start.

* Remove perf optimisation

211 of 215 branches covered (98.14%)

Branch coverage included in aggregate %.

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

357 of 358 relevant lines covered (99.72%)

343.32 hits per line

Jobs
ID Job ID Ran Files Coverage
1 456.1 22 Jun 2020 05:33PM UTC 0
99.13
Travis Job 456.1
Source Files on build 456
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #456
  • c9058060 on github
  • Prev Build on master (#454)
  • Next Build on master (#457)
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