struct not_nullptr

Scope: stub

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
Development
latest