Initial Release
This commit is contained in:
commit
5a00e06cb9
81 changed files with 12670 additions and 0 deletions
30
test/tests.hpp
Normal file
30
test/tests.hpp
Normal file
|
@ -0,0 +1,30 @@
|
|||
#pragma once
|
||||
|
||||
#include <thespian/context.hpp>
|
||||
#include <thespian/env.hpp>
|
||||
|
||||
#include <cstdlib>
|
||||
#include <string_view>
|
||||
|
||||
constexpr auto check(bool expression) -> void {
|
||||
if (!expression)
|
||||
std::abort();
|
||||
}
|
||||
|
||||
using testcase = auto(thespian::context &ctx, bool &result, thespian::env_t env)
|
||||
-> thespian::result;
|
||||
|
||||
testcase cbor_match;
|
||||
testcase debug;
|
||||
testcase endpoint_tcp;
|
||||
testcase endpoint_unx;
|
||||
testcase hub_filter;
|
||||
testcase ip_tcp_client_server;
|
||||
testcase ip_udp_echo;
|
||||
testcase metronome_test;
|
||||
testcase perf_cbor;
|
||||
testcase perf_hub;
|
||||
testcase perf_ring;
|
||||
testcase perf_spawn;
|
||||
testcase spawn_exit;
|
||||
testcase timeout_test;
|
Loading…
Add table
Add a link
Reference in a new issue