Comments (2)
I have a work around by replacing the package causing the issue in the configuration. However, I don't think that this really fits the use case defined by the replace-type
option.
from mockery.
Sorry, the collision handling logic is long in the tooth and doesn't comprehensively handle cases like this. Unless someone wants to tackle that project, using replace-type
is probably the correct approach.
from mockery.
Related Issues (20)
- Configuration option `inpackage` is not functioning as expected HOT 3
- Incorrect mocks generated when there are multiple interfaces in the same package HOT 6
- Indirect dependency from go-viper includes critical vulnerability CVE-2021-28235
- Using exclude on windows throws an error because of path separator being used, I have raised a PR HOT 1
- Initialize/setup mock via a constructor param HOT 3
- `disable-version-string` not respected in packages config HOT 7
- Unable to generate interface type from another interface HOT 16
- Feature request: pre-commit hooks HOT 8
- Support empty `.mockery.yaml` config HOT 1
- Allow for No Return Value on Generated Mocks
- mockname with problem HOT 1
- mock generation for non-relative-to-interface dirs HOT 2
- Go 1.23: Mock generation fails with alias types HOT 5
- Mocked Generated Classes using internal package HOT 4
- Same name imports with numbers in the directory structure generates invalid imports
- Current release of mockery v2.45 image is incompatible with Go v1.23 when running on docker HOT 1
- Generation fails when referencing module that uses the `replace` directive
- Mockery v2.45.1 release HOT 6
- When will V3 be released? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mockery.