Mocking DriverWithContext

Hi,

I am trying to use GoMock to mock the DriverWithContext functionality. How ever when I generate the mock it includes the following import :
auth "github.com/neo4j/neo4j-go-driver/v5/neo4j/internal/auth"
This obviously doesn't work because of the internal package.

Is there a way around this?

Hello, this is similar to the issue described here: (v5) WithContext types are troublesome to mock · Issue #378 · neo4j/neo4j-go-driver · GitHub. You'll find some possible ways to deal with the issue in there.

I would have hoped mocking tools in the Go ecosystem were able to evolve in the last 2 years to support private methods on interfaces but apparently not...