summaryrefslogtreecommitdiff
path: root/test/vytree_test.ml
AgeCommit message (Collapse)Author
2019-02-14Add functions for copying and moving nodes.Daniil Baturin
2018-09-02Add support for node renaming.Daniil Baturin
2017-01-12T245: improve handling of nodes with duplicate names.Daniil Baturin
Two tag nodes with the same name ("ethernet eth0 {...} ethernet eth0 {...}") is an error. Two leaf nodes with the same name, however, are not an error. Values of the next nodes are merged into the first one, while all other data (comment and inactive and ephemeral properties are inherited from the first node. This mimics the old syntax of multi nodes, so a person who uses the old syntax out of habit in a handwritten config will get the result they expect.
2017-01-09T245: add Vytree.merge_children function for de-duplicating childrenDaniil Baturin
that share the same name by merging subsequent nodes into the first one. Bad thing: the comments of the outer nodes will be lost, but then again one should attach them to the inner node anyway, in non-pathological cases.
2015-06-03Add get_data function, a shortcut for getting a data of node at specified path.Daniil Baturin
Mainly for quickly getting data from a reference tree.
2015-06-03Make tree insert position-aware.Daniil Baturin
Make insertion at the beginning default behaviour. Implement insertion at the end.
2015-04-28Rename vyconf_tree_test to just vytree_test.Daniil Baturin