Warning: This is an old version. The latest stable version is Version 7.1.1.

struct stub::not_nullptr

In header: #include <stub/not_nullptr.hpp>

Description

An object used to check if a value is not a null pointer, when comparing two function calls.

Example:

function<void(uint32_t, uint8_t*)> foo;

std::vector<uint8_t> buffer(10);
foo(3U, buffer.data());

assert(fool.expect_calls().with(3U, stub::not_nullptr()));
Versions
7.1.1
7.1.0
7.0.0
Development
latest