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

dart-lang / native / 22364358599 / 6 – native_pkgs_ubuntu
79%
main: 79%

Build:
DEFAULT BRANCH: main
Ran 24 Feb 2026 06:38PM UTC
Files 87
Run time 2s
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

24 Feb 2026 06:23PM UTC coverage: 70.618% (+0.02%) from 70.594%
native_pkgs_ubuntu – 22364358599.6

push

github

web-flow
[record_use] Public API deal with non-const (#3147)

This is not the final API yet, but the current internal API addresses some issues with the public API. So lets remove the old public API.

Closes:

* https://github.com/dart-lang/native/issues/2718
* https://github.com/dart-lang/native/issues/2938

The main design approach of using the new API, deep destructuring in a switch, and giving an error that you cannot tree-shake on failing to destructure:

```dart
      switch (call) {
        case CallWithArguments(
          positionalArguments: [StringConstant(value: final english), ...],
        ):
          // Shrink a translations file based on all the different translation
          // keys.
          print('Translating to pirate: $english');
        case _:
          throw UnsupportError('Cannot determine which translations are used.');
      }
```

```dart
      switch (ship) {
        case InstanceConstantReference(
          instanceConstant: InstanceConstant(
            fields: {'name': StringConstant(value: final name)},
          ),
        ):
          // Include the 3d model for this ship in the application but not
          // bundle the other ships.
          print('Pirate ship found: $name');
        case _:
          throw UnsupportedError('Cannot determine which ships are used.');
      }
```

6184 of 8757 relevant lines covered (70.62%)

23.07 hits per line

Source Files on job native_pkgs_ubuntu - 22364358599.6
  • Tree
  • List 87
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 22364358599
  • 4cbd204a on github
  • Prev Job for on main (#22344374298.7)
  • 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

© 2026 Coveralls, Inc