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

google / quiver-dart / 1723 / 6
84%
master: 84%

Build:
DEFAULT BRANCH: master
Ran 28 Feb 2020 08:36PM UTC
Files 45
Run time 6s
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

28 Feb 2020 08:24PM UTC coverage: 83.084% (+0.06%) from 83.022%
SHARD=coveralls

push

travis-ci

web-flow
Eliminate bad use of const in Optional.transform (#587)

It's invalid to create a const which references a type variable. The
language team decided that in order to avoid painful migration of common
Dart 1 usages such as `const []`, rather than generate an error, they
would replace the type variable with `Null`, since usually, for properly
covariant types, the result 'works'.

In cases where `transform` is chained with e.g., `or`, you can end up
with `Optional<T>.absent` replacing `T` with `Null`, but then do an
implicit covariance check on the incoming type in `or`, which should be
the `S` in `transform` but is found to be `Null`.

As a result, we revert the move to const construction in `transform` and
`transformNullable`.

This reverts this bit of constification that was added in e769045.

1778 of 2140 relevant lines covered (83.08%)

1.42 hits per line

Source Files on job 1723.6 (SHARD=coveralls)
  • Tree
  • List 0
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 1218
  • Travis Job 1723.6
  • 41b4f693 on github
  • Prev Job for SHARD=coveralls on master (#1719.6)
  • Next Job for SHARD=coveralls on master (#1726.6)
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