We use moq to build mocks for testing beyond the current package. We'd like those mocks to be available only to tests, not live code, so we've been doing this by catting build tags into the generated mocks. This adds a flag to make that process easier.
We use moq to build mocks for testing beyond the current package. We'd like those mocks to be available only to tests, not live code, so we've been doing this by catting build tags into the generated mocks. This adds a flag to make that process easier.