Comments (10)
Sorry for late reply. I would opt for alternative approach. A lazy loading of a real function. As long as a given function is not mocked no error will be thrown even if it's not available.
from c-mock.
This is actually what we do in my company.
But can it be the default behavior, or should the user choose between this and eager loading?
from c-mock.
A situation in which you call a function which you neither linked with or mocked I see as a bug. I would make a lazy loading the default behaviour.
from c-mock.
from c-mock.
👍
from c-mock.
from c-mock.
Can you create an issue on that so we can address it as a distinct problem?
from c-mock.
from c-mock.
I have in mind C-Mock now fails to compile with latest Google Mock.
from c-mock.
from c-mock.
Related Issues (12)
- Compilation errors when using latest Google Test (post 1.8.0) HOT 1
- Compilation Errors when using Google test version 1.10 HOT 1
- error: ‘std::tr1’ has not been declared HOT 1
- How to call real function with CMOCK_MOCK_FUNCTIONn macros HOT 5
- C-Mock is not working with googlemock 1.7 HOT 3
- Add release for current code HOT 2
- Code and tests does not comile HOT 3
- Can't find the real function HOT 1
- [BUG] An error occurred when the constructor of a global instance called the mock method HOT 1
- Cygwin build environment Compatability HOT 3
- Suggested alternative usage, more similar to Google Mock HOT 10
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 c-mock.