aerospike / aerospike-client-go

Aerospike Client Go
Apache License 2.0
430 stars 199 forks source link

Is there any way to mock client for UT? #406

Closed malphi closed 2 months ago

malphi commented 1 year ago

I don't want to write an interface as a wrapper to support mock as.Client for UT, is there any other way can do?

khaf commented 1 year ago

At the moment we don't have a mock client. You could implement it for yourself, interfaces being implicit in Golang.

ajeetdsouza commented 11 months ago

@malphi I wrote an Aerospike integration for Testcontainers, hope it helps. Requests / contributions welcome.

khaf commented 2 months ago

We have since added the ClientIfc interface to the Go client. As we don't have a mock client, I'll close this issue. Feel free to file new issues or reopen this same ticket if you need more assistance.