commit | df1452bfe1653286277a1a8f34dddf3e4fbedd9e | [log] [tgz] |
---|---|---|
author | Sarah Zakarias <zarah@google.com> | Fri Sep 24 12:57:52 2021 +0200 |
committer | GitHub <noreply@github.com> | Fri Sep 24 12:57:52 2021 +0200 |
tree | 71a1b2ffa0187c651f000af0dd15bee667bc1cc6 | |
parent | ffcbbc22884f590663ec451f48fd8388ba7c49f4 [diff] |
Use package:lints instead of pedantic (#4)
A library for YAML manipulation while preserving comments.
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
.