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

dart-lang / native / 5208477058
92%

Build:
DEFAULT BRANCH: main
Ran 08 Jun 2023 07:18AM UTC
Jobs 6
Files 32
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

08 Jun 2023 07:18AM UTC coverage: 99.407% (+0.003%) from 99.404%
5208477058

push

github

web-flow
Handle errors from process output (#63)

Remove the `stderrCompleter` and `stdoutCompleter` variables in favor of
holding the `StreamSubscription` and using `asFuture()`. This ensures
that any errors from the stream (for instance UTF8 decodign errors) are
captured by the awaited `Future` instead of bubbling up as unhandled
async errors.

Use the `.wait` extension for records so error handlers are eagerly
added for the `exitCode` and output futures instead of not listening to
the other futures until after the exit code has completed, and errors
may have already bubbled up unhandled.

Also refactor the use of a map literal - don't use an extra `...{}`
literal, move the for-in element to the outer collection literal and use
`...?` over a conditional element with a null check. Skip the extra
intermediate variable `newEnvironment`.

Check `captureOutput` eagerly and avoid a closure in favor of a tear-off
when it is false. When the logger is null this allows an ignorable
`null` callback instead of always invoking a callback that does nothing.

20 of 25 new or added lines in 1 file covered. (80.0%)

1340 of 1348 relevant lines covered (99.41%)

13.27 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
5
91.07
0.88% pkgs/c_compiler/lib/src/utils/run_process.dart
Subprojects
ID Flag name Job ID Ran Files Coverage
1 native_assets_cli-ubuntu 5208477058.1 08 Jun 2023 07:18AM UTC 14
99.81
GitHub Action Run
2 c_compiler-ubuntu 5208477058.2 08 Jun 2023 07:18AM UTC 18
73.62
GitHub Action Run
3 native_assets_cli-windows 5208477058.3 08 Jun 2023 07:19AM UTC 14
99.25
GitHub Action Run
4 native_assets_cli-macos 5208477058.4 08 Jun 2023 07:19AM UTC 14
99.81
GitHub Action Run
5 c_compiler-macos 5208477058.5 08 Jun 2023 07:20AM UTC 18
79.39
GitHub Action Run
6 c_compiler-windows 5208477058.6 08 Jun 2023 07:24AM UTC 18
88.59
GitHub Action Run
Source Files on build 5208477058
  • Tree
  • List 32
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #5208477058
  • 9135fa00 on github
  • Prev Build on main (#5187458599)
  • Next Build on main (#5208533122)
  • Delete
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

© 2025 Coveralls, Inc