MCPcopy Create free account
hub / github.com/3rdparty/libprocess / consume

Method consume

src/tests/process_tests.cpp:827–827  ·  view source on GitHub ↗

This is a workaround for mocking methods taking rvalue reference parameters. See https://github.com/google/googletest/issues/395

Source from the content-addressed store, hash-verified

825 // rvalue reference parameters.
826 // See https://github.com/google/googletest/issues/395
827 void consume(MessageEvent&& event) override { consume_(event.message); }
828 MOCK_METHOD1(consume_, void(const Message&));
829};
830

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected