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

dart-lang / native / 16348450024

17 Jul 2025 02:51PM UTC coverage: 79.114% (-3.4%) from 82.506%
16348450024

push

github

web-flow
[json_syntax_generator] Add support for `Map<String, SomeClass>` (#2426)

Pub does not expose any of its json/yaml format parsers and unparsers.

Instead of just navigating json/yaml in Dart code blindly, lets use a schema to navigate these.

For the `pubspec_lock.yaml` we need support for `Map<String, SomeClass>` which we didn't have yet in hooks/code_assets.

Additionally, the json keys and values used in the pubspec lock have `-` and ` ` inside their strings. These are not valid Dart identifer characters, so use these as separators for camel case names.

I haven't figured out where the syntax classes themselves should live yet, so this PR is just adding it as an integration test for the generator for now.

11 of 13 new or added lines in 2 files covered. (84.62%)

4303 of 5439 relevant lines covered (79.11%)

45.17 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

67.63
/pkgs/json_syntax_generator/lib/src/parser/schema_analyzer.dart


Source Not Available

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