commit | 63af163147d54efd1bc9d0fba345338c11b90e66 | [log] [tgz] |
---|---|---|
author | Wayne Duran <asartalo@gmail.com> | Mon May 17 17:01:36 2021 +0800 |
committer | GitHub <noreply@github.com> | Mon May 17 11:01:36 2021 +0200 |
tree | 2b49132aec0f33d9be5b06dcee2e60cc16e0b338 | |
parent | 11b323598a3237e2ba9a945340be95905eb24986 [diff] |
yaml_edit null safety minor refactorings (#128) * Adding key assertion in removeInMap * Change to late declaration and non-nullable in remove()
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
.