Enhancement: use schema test helper to new the events used in the unit test #10909
Open
4 tasks done
Labels
area/ticdc
Issues or PRs related to TiCDC.
component/test
Unit tests and integration tests component.
type/enhancement
The issue or PR belongs to an enhancement.
Backgroud
At the moment, we mock the event, both
model.RowChangedEvent
andmodel.DDLEvent
by filling fields arbitrarily, which are used in the unit tests, spread over the codebase, it has some drawbacks:The
entry.SchemaTestHelper
is a test framework based upon the mock TiDB, it supports we can generate DDL and Basic Insert Event by writing SQL, which has the following advantages:Tasks
The text was updated successfully, but these errors were encountered: