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

google / quiver-dart / 1723
84%

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

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

Jobs
ID Job ID Ran Files Coverage
6 1723.6 (SHARD=coveralls) 28 Feb 2020 08:36PM UTC 0
83.08
Travis Job 1723.6
Source Files on build 1723
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #1723
  • 41b4f693 on github
  • Prev Build on master (#1719)
  • Next Build on master (#1726)
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