Run plugin with asserts when building test protos (#1055)

Currently we run the tests with assertions but that doesn't cover some of the
code paths.

When building the test protos we don't run the plugin with assertions.

Add a new executable `protoc-gen-dart-debug` that is the same as
`protoc-gen-dart`, but passes `--enable-asserts` to Dart. Use it when building
test protos.

This triggers an assertion which was reported in #608. The assertion is clearly
wrong (we call the function for repeated fields a few lines above the
assertion) and no one knows or remembers why it's there. Remove the assertion.

Closes #608.
3 files changed
tree: 3c8e792a38b13692f8d648690fda291ce9dc8c32
  1. .github/
  2. benchmarks/
  3. protobuf/
  4. protoc_plugin/
  5. tool/
  6. .gitignore
  7. analysis_options.yaml
  8. AUTHORS
  9. LICENSE
  10. pubspec.yaml
  11. README.md
README.md

Protobuf support for Dart

Protocol Buffers (protobuf) are Google's language-neutral, platform-neutral, extensible mechanism for serializing structured data.

This repository is home to packages related to protobuf support for Dart.

PackageDescriptionPublished Version
protobufRuntime library for protocol buffers support.pub package
protoc_pluginA protobuf protoc compiler plugin used to generate Dart code.pub package
benchmarksBenchmarks for various protobuf functions.

Publishing automation

For information about our publishing automation and release process, see https://github.com/dart-lang/ecosystem/wiki/Publishing-automation.