You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Clients may want to write unit tests with nebula-go client. They will mock the Execute interface and return a mock ResultSet. But there is no public function to generate a mock result set. The members inside result set is also private.
We should (1) either create a mock ResultSet and mock Record. (Users are using mockery, //go:generate mockery --name=Client --outpkg=mocknebula --output=./mocknebula)
(2) or expose a public method to construct ResultSet and Record.
The text was updated successfully, but these errors were encountered:
Clients may want to write unit tests with nebula-go client. They will mock the
Execute
interface and return a mockResultSet
. But there is no public function to generate a mock result set. The members inside result set is also private.We should (1) either create a mock
ResultSet
and mockRecord
. (Users are usingmockery
, //go:generate mockery --name=Client --outpkg=mocknebula --output=./mocknebula)(2) or expose a public method to construct
ResultSet
andRecord
.The text was updated successfully, but these errors were encountered: