133
}
134
136
>
filter := newChasmNodeMapsAllFilter()
137
>
138
>
var initialRows []sqlplugin.ChasmNodeMapsRow
139
>
for range 10 {
140
>
initialRows = append(initialRows, newChasmRowFromFilter(filter))
141
>
}
142
143
// Update first half of inserted rows.
145
>
updatedRows := make([]sqlplugin.ChasmNodeMapsRow, pivot)
146
>
for i, row := range initialRows[:pivot] {
147
>
path := row.ChasmPath
148
>
updatedRows[i] = newChasmRowFromFilter(filter)
149
>
updatedRows[i].ChasmPath = path
150
>
}
151
>
unchangedRows := initialRows[pivot:]
152
>
expectedRows := append(updatedRows, unchangedRows...)
153
>
s.NotElementsMatch(initialRows, expectedRows)
154
>
155
>
tc := &testCase{
156
>
InsertRows: initialRows,
157
>
ReplaceRows: updatedRows,
158
>
ExpectedRowsFilter: filter,
159
>
ExpectedRows: expectedRows,
160
>
}
161
>
s.runTestCase(tc)
162
}
163