commit | 11b323598a3237e2ba9a945340be95905eb24986 | [log] [tgz] |
---|---|---|
author | Jonas Finnemann Jensen <jonasfj@google.com> | Wed Apr 28 12:43:33 2021 +0200 |
committer | GitHub <noreply@github.com> | Wed Apr 28 12:43:33 2021 +0200 |
tree | ca5931f1a20eb66c50c197f2d1f90585621f2343 | |
parent | 0fea78062837a095f1240dba047d97bae19ed422 [diff] |
Prepare yaml_edit version 2.0.0 (#126)
A library for YAML manipulation while preserving comments.
Disclaimer: This is not an officially supported Google product.
A simple usage example:
import 'package:yaml_edit/yaml_edit.dart'; void main() { final yamlEditor = YamlEditor('{YAML: YAML}'); yamlEditor.assign(['YAML'], "YAML Ain't Markup Language"); print(yamlEditor); // Expected output: // {YAML: YAML Ain't Markup Language} }
Testing is done in two strategies: Unit testing (/test/editor_test.dart
) and Golden testing (/test/golden_test.dart
). More information on Golden testing and the input/output format can be found at /test/testdata/README.md
.
These tests are automatically run with pub run test
.