Publish inspection through one frozen history model
This commit is contained in:
@@ -127,7 +127,10 @@ type expectedDiffRegion struct {
|
||||
}
|
||||
|
||||
func diffTestInspection(root *document.Node) *Inspection {
|
||||
return &Inspection{final: root, immutableLookup: buildDocumentLookup(root)}
|
||||
builder := newHistoryBuilder()
|
||||
builder.model.final = root
|
||||
model := builder.freeze()
|
||||
return &Inspection{final: root, history: model, metadata: Metadata{historyModel: model}}
|
||||
}
|
||||
|
||||
func assertDiffRegionNode(t *testing.T, side string, node *document.Node, wantPresent bool, wantKind document.Kind) {
|
||||
|
||||
Reference in New Issue
Block a user