Skip to main content

Module testing

Module testing 

Source
Expand description

Testing utilities (mock connectors, helpers). Testing utilities for connector implementations.

Provides mock connectors and helper functions for testing the connector SDK and concrete connector implementations.

Structs§

MockSinkConnector
Mock sink connector for testing.
MockSourceConnector
Mock source connector for testing.

Functions§

mock_batch
Creates a test RecordBatch with n rows.
mock_schema
Creates a test schema with id (Int64) and value (Utf8) columns.
register_mock_sink
Registers a mock sink connector with the registry.
register_mock_source
Registers a mock source connector with the registry.