scylladb / scylla-cdc-go

Apache License 2.0
43 stars 11 forks source link

Make the ChangeRow type an interface to help write unit tests #14

Open nayakravi opened 1 year ago

nayakravi commented 1 year ago

Currently it's not possible to mock the ChangeRow type to use in unit tests because it is hard wired to private types contained within it - unless we use a mock library - which is suboptimal. It does not look like a lot of effort to convert it into an interface to make this possible - other than possibly figuring out the type names :) Will really appreciate this change.