MCPcopy Create free account
hub / github.com/AdaCompNUS/summit / TEST

Function TEST

LibCarla/source/test/client/test_rpc.cpp:21–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19using namespace std::chrono_literals;
20
21TEST(rpc, compilation_tests) {
22 Server server(TESTING_PORT);
23 server.BindSync("bind00", []() { return 2.0f; });
24 server.BindSync("bind01", [](int x) { return x; });
25 server.BindSync("bind02", [](int, float) { return 0.0; });
26 server.BindSync("bind03", [](int, float, double, char) {});
27}
28
29TEST(rpc, server_bind_sync_run_on_game_thread) {
30 const auto main_thread_id = std::this_thread::get_id();

Callers

nothing calls this directly

Calls 5

BindSyncMethod · 0.80
CreateThreadMethod · 0.80
callMethod · 0.80
SyncRunForMethod · 0.80
AsyncRunMethod · 0.45

Tested by

no test coverage detected