libcopp
2.2.0
|
#include <libcopp/coroutine/coroutine_context_container.h>
#include <cstdio>
#include <cstring>
#include <iostream>
#include "frame/test_macros.h"
Go to the source code of this file.
Data Structures | |
class | test_context_base_foo_runner |
Typedefs | |
typedef copp::coroutine_context_container< copp::allocator::stack_allocator_memory > | test_context_base_coroutine_context_test_type |
Functions | |
CASE_TEST (coroutine, context_base) | |
CASE_TEST (coroutine, shared_runner) | |
CASE_TEST (coroutine, coroutine_context_container_create_failed) | |
CASE_TEST (coroutine, coroutine_context_create_failed) | |
Variables | |
static int | g_test_coroutine_base_status = 0 |
typedef copp::coroutine_context_container<copp::allocator::stack_allocator_memory> test_context_base_coroutine_context_test_type |
Definition at line 12 of file coroutine_context_base_test.cpp.
CASE_TEST | ( | coroutine | , |
context_base | |||
) |
Definition at line 30 of file coroutine_context_base_test.cpp.
References test_context_base_foo_runner::call_times, CASE_EXPECT_EQ, CASE_EXPECT_TRUE, COPP_EC_ALREADY_EXIST, COPP_EC_NOT_READY, COPP_EC_NOT_RUNNING, and g_test_coroutine_base_status.
CASE_TEST | ( | coroutine | , |
coroutine_context_container_create_failed | |||
) |
Definition at line 135 of file coroutine_context_base_test.cpp.
References CASE_EXPECT_EQ, and CASE_EXPECT_TRUE.
CASE_TEST | ( | coroutine | , |
coroutine_context_create_failed | |||
) |
Definition at line 156 of file coroutine_context_base_test.cpp.
References CASE_EXPECT_EQ, and COPP_EC_ARGS_ERROR.
CASE_TEST | ( | coroutine | , |
shared_runner | |||
) |
Definition at line 103 of file coroutine_context_base_test.cpp.
References test_context_base_foo_runner::call_times, CASE_EXPECT_EQ, and g_test_coroutine_base_status.
|
static |
Definition at line 14 of file coroutine_context_base_test.cpp.
Referenced by CASE_TEST(), and test_context_base_foo_runner::operator()().