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

dart-lang / native / 13907892100
92%

Build:
DEFAULT BRANCH: main
Ran 17 Mar 2025 07:12PM UTC
Jobs 14
Files 242
Run time 5min
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

17 Mar 2025 07:11PM UTC coverage: 86.63% (-0.04%) from 86.67%
13907892100

push

github

web-flow
[native_assets_cli] Separate out `json_syntax_generator` into separate package (#2101)

Bug: https://github.com/dart-lang/native/issues/1826

This refactors `package:hook`s `tool/generate_syntax.dart`.

* Moved into its own package `package:json_syntax_generator`.
* Documented the feature set: optional/required fields, subclassing, tagged unions, and enums.
* Refactored from a single-pass code generator, to a two step pipeline. (1) analyze the JSON schema and extra into a data structure, (2) generate code from the data structure.
* Sprinkled comments about the "why" on the most important classes and fields.

This PR is intended to be a NOP w.r.t. the syntax that's generated. (Some whitespace and `toString` changes.)

Having this as a separate package will enable us to reuse it for the syntax in different places. For now, we're not intending to publish it, instead we can use it as a git dependency in the dev dependencies (or we publish it unlisted). @mosuem Please let me know if it is possible for you to generate the syntax for the `FontAsset`s.

Open issue:

* The generated code requires a `utils/json.dart`. We should make the generated code be standalone. I'll do that in a follow up PR.

0 of 8 new or added lines in 1 file covered. (0.0%)

2 existing lines in 1 file now uncovered.

13283 of 15333 relevant lines covered (86.63%)

36.36 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
8
67.93
-1.93% pkgs/native_assets_cli/lib/src/code_assets/syntax.g.dart

Uncovered Existing Lines

Lines Coverage ∆ File
2
62.22
0.34% pkgs/native_assets_cli/lib/src/hook/syntax.g.dart
Subprojects
ID Flag name Job ID Ran Files Coverage
6 native_toolchain_c_ubuntu 13907892100.6 17 Mar 2025 07:13PM UTC 26
74.53
GitHub Action Run
7 native_assets_builder_ubuntu 13907892100.7 17 Mar 2025 07:17PM UTC 11
89.56
GitHub Action Run
8 native_toolchain_c_windows 13907892100.8 17 Mar 2025 07:17PM UTC 26
79.15
GitHub Action Run
9 native_assets_builder_windows 13907892100.9 17 Mar 2025 07:20PM UTC 11
89.56
GitHub Action Run
10 native_assets_cli_windows 13907892100.10 17 Mar 2025 07:14PM UTC 31
69.29
GitHub Action Run
11 native_assets_cli_macos 13907892100.11 17 Mar 2025 07:12PM UTC 31
69.49
GitHub Action Run
12 native_toolchain_c_macos 13907892100.12 17 Mar 2025 07:13PM UTC 26
68.94
GitHub Action Run
13 native_assets_cli_ubuntu 13907892100.13 17 Mar 2025 07:13PM UTC 31
69.49
GitHub Action Run
14 native_assets_builder_macos 13907892100.14 17 Mar 2025 07:16PM UTC 11
89.56
GitHub Action Run
14 jnigen 13905423754.14 17 Mar 2025 05:15PM UTC 21
90.47
GitHub Action Run
13 jni 13905423754.13 17 Mar 2025 05:07PM UTC 31
70.55
GitHub Action Run
14 ffigen 13742814161.14 09 Mar 2025 12:25AM UTC 75
91.9
GitHub Action Run
14 objective_c 13877952997.14 16 Mar 2025 12:19AM UTC 76
79.34
GitHub Action Run
14 swift2objc 13688465141.14 06 Mar 2025 12:35AM UTC 46
85.29
GitHub Action Run
Source Files on build 13907892100
  • Tree
  • List 242
  • Changed 7
  • Source Changed 7
  • Coverage Changed 7
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #13907892100
  • a3aad771 on github
  • Prev Build on main (#13907619003)
  • Next Build on main (#13909218308)
  • 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