NewReader creates a new instance of Reader. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
(t mockConstructorTestingTNewReader)
| 34 | |
| 35 | // NewReader creates a new instance of Reader. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. |
| 36 | func NewReader(t mockConstructorTestingTNewReader) *Reader { |
| 37 | mock := &Reader{} |
| 38 | mock.Mock.Test(t) |
| 39 | |
| 40 | t.Cleanup(func() { mock.AssertExpectations(t) }) |
| 41 | |
| 42 | return mock |
| 43 | } |