steinfletcher / apitest

A simple and extensible behavioural testing library for Go. You can use api test to simplify REST API, HTTP handler and e2e tests.
https://apitest.dev
MIT License
795 stars 55 forks source link

Fix vet errors copying mutex #156

Closed steinfletcher closed 2 months ago

steinfletcher commented 2 months ago

It's not necessary to perform a deep copy of the mock since it's not mutated. Refer to the original mock instance instead.