Classes | |
struct | anonymous_namespace{coro.cpp}::job_awaitable |
struct | anonymous_namespace{coro.cpp}::simple_awaitable |
struct | anonymous_namespace{coro.cpp}::test_exception< N > |
Namespaces | |
anonymous_namespace{coro.cpp} | |
Functions | |
void | anonymous_namespace{coro.cpp}::async_awaitable_wait5 (std::function< void(int)> callback) |
dpp::job | anonymous_namespace{coro.cpp}::async_test () |
void | coro_offline_tests () |
void | coro_online_tests (dpp::cluster *bot) |
dpp::coroutine< void > | anonymous_namespace{coro.cpp}::coroutine_offline_test () |
void | event_handler_test (dpp::cluster *bot) |
dpp::job | anonymous_namespace{coro.cpp}::job_offline_test () |
void | anonymous_namespace{coro.cpp}::sync_awaitable_fun (std::function< void(int)> callback) |
void | anonymous_namespace{coro.cpp}::sync_awaitable_throw (std::function< void(int)> callback) |
dpp::task< void > | anonymous_namespace{coro.cpp}::task_offline_test () |
Variables | |
std::atomic< int > | anonymous_namespace{coro.cpp}::exceptions_caught = 0 |
std::array< std::atomic< int >, 10 > | anonymous_namespace{coro.cpp}::job_data |
std::array< std::atomic< int >, 10 > | anonymous_namespace{coro.cpp}::task_data |
void coro_offline_tests | ( | ) |
References anonymous_namespace{coro.cpp}::async_test(), CORO_ASYNC_OFFLINE, CORO_COROUTINE_OFFLINE, CORO_JOB_OFFLINE, CORO_TASK_OFFLINE, anonymous_namespace{coro.cpp}::coroutine_offline_test(), anonymous_namespace{coro.cpp}::job_data, anonymous_namespace{coro.cpp}::job_offline_test(), set_status(), start_test(), anonymous_namespace{coro.cpp}::task_data, anonymous_namespace{coro.cpp}::task_offline_test(), ts_failed, and ts_success.
void coro_online_tests | ( | dpp::cluster * | bot | ) |
References CORO_EVENT_HANDLER, event_handler_test(), and start_test().
void event_handler_test | ( | dpp::cluster * | bot | ) |
References dpp::message::channel_id, dpp::cluster::co_guild_get_member(), dpp::cluster::co_message_add_reaction(), dpp::cluster::co_message_create(), dpp::cluster::co_message_edit(), dpp::cluster::co_user_get_cached(), dpp::message::content, CORO_API_CALLS, CORO_MUMBO_JUMBO, extended, dpp::find_guild_member(), dpp::confirmation_callback_t::is_error(), dpp::cluster::message_delete(), dpp::message_create_t::msg, dpp::cluster::on_message_create, dpp::message::set_content(), set_status(), start_test(), TEST_GUILD_ID, TEST_USER_ID, ts_failed, ts_success, and dpp::confirmation_callback_t::value.
Referenced by coro_online_tests().