Use main for the main provenance layer
This commit is contained in:
@@ -14,9 +14,9 @@ func TestInheritanceEvidenceUsesOrderedPayloadAndConcreteTransferShapes(t *testi
|
||||
effective := parseDocumentForDecode(t, "id: child\nbranch: replaced\n")
|
||||
root := parseDocumentForDecode(t, "parent: {unused: true}\nchild: {id: child, extends: parent, branch: {local: stale}}\n")
|
||||
parentOrigins := map[string]Origin{
|
||||
Keys("parent", "branch").String(): {Layer: LayerBase, Locations: []Location{{SourceID: "parent"}}},
|
||||
Keys("parent", "branch", "deep").String(): {Layer: LayerBase, Locations: []Location{{SourceID: "parent"}}},
|
||||
Keys("parent", "branch", "deep", "leaf").String(): {Layer: LayerBase, Locations: []Location{{SourceID: "parent"}}},
|
||||
Keys("parent", "branch").String(): {Layer: LayerMain, Locations: []Location{{SourceID: "parent"}}},
|
||||
Keys("parent", "branch", "deep").String(): {Layer: LayerMain, Locations: []Location{{SourceID: "parent"}}},
|
||||
Keys("parent", "branch", "deep", "leaf").String(): {Layer: LayerMain, Locations: []Location{{SourceID: "parent"}}},
|
||||
}
|
||||
effectiveOrigins := map[string]Origin{
|
||||
Keys("child", "branch").String(): {Layer: LayerOverlay, Locations: []Location{{SourceID: "child"}}},
|
||||
@@ -76,7 +76,7 @@ func TestInheritanceModelSharesProjectionAttribution(t *testing.T) {
|
||||
|
||||
from, to, reference := Keys("parents", "base"), Keys("children", "item"), Keys("parents", "base")
|
||||
path := to.Key("nested").Key("value")
|
||||
parent := Origin{Layer: LayerBase, Locations: []Location{{SourceID: "base"}}}
|
||||
parent := Origin{Layer: LayerMain, Locations: []Location{{SourceID: "base"}}}
|
||||
child := Origin{Layer: LayerOverlay, Locations: []Location{{SourceID: "child"}}}
|
||||
parentDocument := parseDocumentForDecode(t, "nested: {value: parent}\n")
|
||||
effectiveDocument := parseDocumentForDecode(t, "nested: {value: child}\n")
|
||||
@@ -121,7 +121,7 @@ func TestInheritanceEvidenceSeparatesCollidingKeyAndIndexShapes(t *testing.T) {
|
||||
childPath := to.Key("items").Key("0").Key("value")
|
||||
operation := inheritanceOperation{
|
||||
transfer: &transfer, parent: parent, effective: effective,
|
||||
parentOrigins: map[string]Origin{parentPath.String(): {Layer: LayerBase, Locations: []Location{{SourceID: "parent"}}}},
|
||||
parentOrigins: map[string]Origin{parentPath.String(): {Layer: LayerMain, Locations: []Location{{SourceID: "parent"}}}},
|
||||
effectiveOrigins: map[string]Origin{childPath.String(): {Layer: LayerOverlay, Locations: []Location{{SourceID: "child"}}}},
|
||||
childOrigins: map[string]Origin{childPath.String(): {Layer: LayerOverlay, Locations: []Location{{SourceID: "child"}}}},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user