(put “x” in the box to select)
I am currently figuring out a way to mock the dgraph client so that I can write my unit test case in Golang. The Dgraph client is being written without interfaces which make it impossible to mock for custom behaviour.
I know i can spin up the container and connect to it and test it out, but thats not what unit tests are. it should be run independently without any dependecies. I want to know if I am missing something or its how the Dgraph client has been written? Can someone please help me out here to understand.