Expand patch_apply tests

This commit is contained in:
Lucien Greathouse
2019-09-30 17:36:37 -07:00
parent b2fc6c165b
commit 282caf10a5
6 changed files with 153 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
---
source: src/snapshot/tests/apply.rs
expression: applied_patch_value
---
removed: []
added: []
updated:
- id: id-1
changed_name: ~
changed_class_name: ~
changed_properties:
Foo:
Type: String
Value: Value of Foo
changed_metadata: ~

View File

@@ -0,0 +1,16 @@
---
source: src/snapshot/tests/apply.rs
expression: tree_value
---
id: id-1
name: ROOT
class_name: ROOT
properties:
Foo:
Type: String
Value: Value of Foo
metadata:
ignore_unknown_instances: false
source_path: ~
project_node: ~
children: []

View File

@@ -0,0 +1,13 @@
---
source: src/snapshot/tests/apply.rs
expression: tree_value
---
id: id-1
name: ROOT
class_name: ROOT
properties: {}
metadata:
ignore_unknown_instances: false
source_path: ~
project_node: ~
children: []

View File

@@ -0,0 +1,13 @@
---
source: src/snapshot/tests/apply.rs
expression: applied_patch_value
---
removed: []
added: []
updated:
- id: id-1
changed_name: ~
changed_class_name: ~
changed_properties:
Foo: ~
changed_metadata: ~

View File

@@ -0,0 +1,16 @@
---
source: src/snapshot/tests/apply.rs
expression: tree_value
---
id: id-1
name: ROOT
class_name: ROOT
properties:
Foo:
Type: String
Value: Should be removed
metadata:
ignore_unknown_instances: false
source_path: ~
project_node: ~
children: []