#include <mp/test/foo.capnp.h>
#include <mp/test/foo.capnp.proxy.h>
#include <atomic>
#include <capnp/capability.h>
#include <capnp/rpc.h>
#include <cassert>
#include <chrono>
#include <condition_variable>
#include <cstdint>
#include <cstring>
#include <functional>
#include <future>
#include <kj/async.h>
#include <kj/async-io.h>
#include <kj/common.h>
#include <kj/exception.h>
#include <kj/debug.h>
#include <kj/memory.h>
#include <kj/string.h>
#include <kj/test.h>
#include <memory>
#include <mp/proxy.h>
#include <mp/proxy.capnp.h>
#include <mp/proxy-io.h>
#include <mp/util.h>
#include <mp/version.h>
#include <optional>
#include <set>
#include <stdexcept>
#include <string>
#include <string_view>
#include <thread>
#include <type_traits>
#include <unordered_set>
#include <utility>
#include <vector>
Go to the source code of this file.
|
| class | mp::test::TestSetup |
| | Test setup class creating a two way connection between a ProxyServer<FooInterface> object and a ProxyClient<FooInterface>. More...
|
| |
|
| namespace | mp |
| | Functions to serialize / deserialize common bitcoin types.
|
| |
| namespace | mp::test |
| |
|
| #define | EXPECT_EXCEPTION(call, message) |
| | Assert that a call throws std::runtime_error with the given message. More...
|
| |
◆ EXPECT_EXCEPTION
| #define EXPECT_EXCEPTION |
( |
|
call, |
|
|
|
message |
|
) |
| |
Value: try { \
call; \
KJ_EXPECT(false); \
} catch (const std::runtime_error& e) { \
KJ_EXPECT(std::string_view{e.what()} == message); \
}
Assert that a call throws std::runtime_error with the given message.
Definition at line 44 of file test.cpp.