This PR adds a unit test for the ./zk/stage/stage_data_stream_catch_up.go
Since the data stream is a feature exclusively for cdk-erigon, I refactored the code to make these components testable. It adds a factory to help test components instantiating StreamServer and DataStreamServer and also provides interfaces for these implementations, allowing them to be mocked during tests.
This PR adds a unit test for the ./zk/stage/stage_data_stream_catch_up.go
Since the data stream is a feature exclusively for cdk-erigon, I refactored the code to make these components testable. It adds a factory to help test components instantiating
StreamServer
andDataStreamServer
and also provides interfaces for these implementations, allowing them to be mocked during tests.