Comments (1)
With difficulty, but I'll see what I can do. It's possible to use with clang/gcc with -fno-exceptions, provided that you use a reporter that does not throw. However, to rid the Trompeloeil
code itself of try
/catch
/throw
is not that easy, since it intercepts throwing by the mock RETURN
/SIDE_EFFECT
/WITH
, etc.
Generally I recommend building your unit tests with exceptions enabled, even if your production code is built without it, but I understand that this is not always feasible.
from trompeloeil.
Related Issues (20)
- catch2/trompeloeil.hpp header requires bigger Catch2 include than is actually needed HOT 2
- TROMPELOEIL_IMPLEMENT_MOCK with noexcept functions HOT 6
- How to match function call (doubt) HOT 2
- doctest: Trompeloeil error reporting via doctest/trompeloeil.hpp gives unhelpful output HOT 5
- Add libc++-15 to the CI matrix HOT 1
- Drop ubuntu-18.04 from the CI matrix HOT 3
- Question about expectations HOT 2
- Non-constexpr TIMES HOT 5
- CMakeLists.txt has lower minimum required version to features used HOT 3
- find_package should be used to find catch HOT 2
- Please add to README how to run tests HOT 6
- Singleton testing throwing compilation errors with Catch2 HOT 2
- Return any value HOT 3
- Conversion from wildcard to class with template constructor is ambiguous HOT 8
- Lambads inside SIDE_EFFECT HOT 1
- Trompeloeil should work with CMake FetchContent HOT 8
- Slightly confusing error message when using .TIMES() in combination with .IN_SEQUENCE() HOT 6
- Mis-spelled preprocessor symbol TROMPELOEIL_GCC_VERSION HOT 2
- Still ambigous match of wildcard _ for parameter type constructible from any T by value
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 trompeloeil.