commit | 0fea78062837a095f1240dba047d97bae19ed422 | [log] [tgz] |
---|---|---|
author | Wayne Duran <asartalo@gmail.com> | Wed Apr 28 18:33:53 2021 +0800 |
committer | GitHub <noreply@github.com> | Wed Apr 28 12:33:53 2021 +0200 |
tree | cdf185fee9422fccd4518c4b85504a4ef3d4baef | |
parent | f34f260764078eb7384329229c8d558cb5eb46db [diff] |
yaml_edit nullsafety (#107) * Null safey implimentation * Adding test for nested parseAt with null value * Change `parseAt()` signature only YamlNode * Removing unnecessary ArgumentError.checkNotNull() * Updating remove() signature and doc * Change parseAt() orElse documentation Co-authored-by: Jonas Finnemann Jensen <jopsen@gmail.com>
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
.