From 1b2ea073b2ee3eecf762f01ebd6511cb68541181 Mon Sep 17 00:00:00 2001 From: Robert Mitwicki Date: Thu, 11 Jan 2024 17:40:19 +0100 Subject: [PATCH] feat(oca-dag): Support flagged attributes --- oca-dag/src/lib.rs | 2 ++ oca-dag/src/versioning/ocafile.rs | 2 ++ oca-dag/tests/test.rs | 2 ++ 3 files changed, 6 insertions(+) diff --git a/oca-dag/src/lib.rs b/oca-dag/src/lib.rs index 3d3694c..052f7a0 100644 --- a/oca-dag/src/lib.rs +++ b/oca-dag/src/lib.rs @@ -183,6 +183,7 @@ mod tests { "abc".to_string() => ast::NestedAttrType::Value(ast::AttributeType::Text) }), properties: None, + flagged_attributes: None, }), }); @@ -210,6 +211,7 @@ mod tests { "def".to_string() => ast::NestedAttrType::Value(ast::AttributeType::Text) }), properties: None, + flagged_attributes: None, }), }); diff --git a/oca-dag/src/versioning/ocafile.rs b/oca-dag/src/versioning/ocafile.rs index 3e5a012..c50a44c 100644 --- a/oca-dag/src/versioning/ocafile.rs +++ b/oca-dag/src/versioning/ocafile.rs @@ -101,6 +101,7 @@ mod tests { object_kind: ast::ObjectKind::CaptureBase(CaptureContent { attributes: Some(attributes), properties: None, + flagged_attributes: None, }), }); @@ -265,6 +266,7 @@ mod tests { object_kind: ast::ObjectKind::CaptureBase(CaptureContent { attributes: Some(attributes), properties: None, + flagged_attributes: None, }), }); diff --git a/oca-dag/tests/test.rs b/oca-dag/tests/test.rs index 115f43b..d5757bc 100644 --- a/oca-dag/tests/test.rs +++ b/oca-dag/tests/test.rs @@ -11,6 +11,7 @@ fn generate_commands() -> Vec { object_kind: ast::ObjectKind::CaptureBase(ast::CaptureContent { attributes: None, properties: None, + flagged_attributes: None, }), }); @@ -35,6 +36,7 @@ fn generate_commands() -> Vec { object_kind: ast::ObjectKind::CaptureBase(ast::CaptureContent { attributes: Some(attributes), properties: Some(properties), + flagged_attributes: None, }), });