Skip to content

Tests for grafting of file data sources #4334

Open
@leoyvens

Description

@leoyvens

The entity copy query used by grafting has special cases for each combination of source and target has_causality_region value:

match (self.src.has_causality_region, self.dst.has_causality_region) {
(false, false) => (),
(true, true) => {
out.push_sql(", ");
out.push_sql(CAUSALITY_REGION_COLUMN);
}
(false, true) => {
out.push_sql(", 0");
}
(true, false) => {
return Err(constraint_violation!(
"can not copy entity type {} to {} because the src has a causality region but the dst does not",
self.src.object.as_str(),
self.dst.object.as_str()
));
}
}

Except for the noop (false, false), these are not currently covered by our tests.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions