Diego Alvarez 88b0e98974 removes unused fields/methods | hace 4 años | |
---|---|---|
.. | ||
README.md | hace 9 años | |
async_producer.go | hace 4 años | |
async_producer_test.go | hace 8 años | |
consumer.go | hace 5 años | |
consumer_test.go | hace 5 años | |
mocks.go | hace 4 años | |
sync_producer.go | hace 6 años | |
sync_producer_test.go | hace 6 años |
The mocks
subpackage includes mock implementations that implement the interfaces of the major sarama types.
You can use them to test your sarama applications using dependency injection.
The following mock objects are available:
The mocks allow you to set expectations on them. When you close the mocks, the expectations will be verified,
and the results will be reported to the *testing.T
object you provided when creating the mock.