-
`MyInterface.h`
```
#pragma once
class MyInterface
{
public:
virtual ~MyInterface() = default;
virtual std::string MyStringMethod() const = 0;
virtual std::vector< int >…
-
Currently there is no easy way to mock for tests. I played around with [FakeIt](https://github.com/eranpeer/FakeIt) but it only supports virtual member functions. I would also need a way to mock stati…
-
#### Bug Report Checklist
- [x] Have you provided a full/minimal spec to reproduce the issue?
- [x] Have you validated the input using an OpenAPI validator ([example](https://apidevtools.org/swagg…
-
I added fakeit.hpp to my catch unit test and tried compiling. I am getting several errors that look like this:
../../fakeit.hpp:718:12: error: 'fakeit::EventHandler' has virtual functions but non-v…
-
Mocking a destructor and using the `-O2` compiler flag (or higher) with `gcc` leads to incorrect behaviour. It works perfectly fine when passing `-O1`.
Concretely, I've made an example which uses s…
-
### Motivation
Imagine a situation where you are refactoring code which are supposed to calls mocked methods in some "similar" order with similar parameters.
I checked the library and this equa…
-
When using Fakeit along Catch `Verify` successes are not reported.
```cpp
#define CATCH_CONFIG_MAIN
#include "catch.hpp"
#include "fakeit.hpp"
using namespace fakeit;
struct SomeInterface…
-
The following minimal example demonstrates the issue:
```cpp
#include
#include
#include "catch.hpp"
#include "fakeit.hpp"
using namespace std;
using namespace fakeit;
struct IExample…
-
When asserting longer invocation sequences the exception description becomes unhelpful, because there is a hardcoded cutoff after the first 5 invocations.
https://github.com/eranpeer/FakeIt/blob/m…
-
If I have 2 models `a.yaml` and `b,yaml`
and if I execute:
```
fakeit.generate('glob/to/models/**/*.yaml')
.then((data) => {
console.log(data)
})
```
data is an array like:
```
…