#include "test.h"
#include <dpp/dpp.h>
#include <dpp/unicode_emoji.h>
#include <dpp/restrequest.h>
#include <dpp/json.h>
Classes | |
struct | has_build_json< T, typename > |
Type trait to check if a certain type has a build_json method. More... | |
struct | has_build_json< T, std::void_t< decltype(std::declval< T & >().build_json())> > |
struct | has_fill_from_json< T, typename > |
Type trait to check if a certain type has a fill_from_json method. More... | |
struct | has_fill_from_json< T, std::void_t< decltype(std::declval< T & >().fill_from_json(std::declval< dpp::json * >()))> > |
Functions | |
int | main (int argc, char *argv[]) |
Variables | |
template<typename T > | |
constexpr bool | has_build_json_v = has_build_json<T>::value |
Type trait to check if a certain type has a build_json method. More... | |
template<typename T > | |
constexpr bool | has_fill_from_json_v = has_fill_from_json<T>::value |
Type trait to check if a certain type has a fill_from_json method. More... | |
int main | ( | int | argc, |
char * | argv[] | ||
) |
@Brief wrapper for set_event_tested, locking the mutex. Meant to be used from outside the class
References dpp::unicode_emoji::a, dpp::base64_encode(), BASE64ENC, dpp::multipart_content::body, dpp::http_request_completion_t::body, dpp::https_client::build_multipart(), COMPARISON, ERRORS, extended, dpp::confirmation_callback_t::get_error(), dpp::https_client::get_header(), dpp::https_client::get_host_info(), get_start_time(), get_token(), HOSTINFO, dpp::http_connect_info::hostname, dpp::confirmation_callback_t::http_info, HTTPS, dpp::error_info::human_readable, dpp::managed::id, dpp::http_connect_info::is_ssl, dpp::utility::markdown_escape(), MD_ESC_1, MD_ESC_2, offline, dpp::http_connect_info::port, dpp::http_connect_info::scheme, set_test(), dpp::http_request_completion_t::status, TEST_EVENT_ID, TEST_GUILD_ID, TEST_TEXT_CHANNEL_ID, TEST_USER_ID, TEST_VC_ID, dpp::utility::time_f(), dpp::utility::url_encode(), URLENC, and dpp::exception::what().
|
constexpr |
Type trait to check if a certain type has a build_json method.
T | type to check for |
|
constexpr |
Type trait to check if a certain type has a fill_from_json method.
T | type to check for |