gorethink v2.1.0 Release Notes
Release Date: 2016-06-26 // almost 8 years ago-
➕ Added
- Added ability to mock queries based on the library github.com/stretchr/testify
- Added the
QueryExecutor
interface and changed query runner methods (Run
/Exec
) to accept this type instead of*Session
,Session
will still be accepted as it implements theQueryExecutor
interface. - Added the
NewMock
function to create a mock query executor - Queries can be mocked using
On
andReturn
,Mock
also contains functions for asserting that the required mocked queries were executed. - For more information about how to mock queries see the readme and tests in
mock_test.go
.
- Added the
- Added ability to mock queries based on the library github.com/stretchr/testify