commit | 6d4435c2501943164180c5b0d97f98c2ac54c57e | [log] [tgz] |
---|---|---|
author | Garett Tok Ern Liang <36098015+walnutdust@users.noreply.github.com> | Mon Aug 10 22:52:10 2020 +0800 |
committer | GitHub <noreply@github.com> | Mon Aug 10 16:52:10 2020 +0200 |
tree | 6cfaf6c74e8d2f5da5793d3111fbd6efb9f756e0 | |
parent | 1303a284dc0cabfa205efcbfd2d6f2bfb6cfe16e [diff] |
Using runZoned to remove test pollution (#54) * Using runZoned to remove test pollution * Added comments for runZoned
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
.