libcopp
2.2.0
|
#include <libcopp/stack/stack_pool.h>
#include <libcotask/task.h>
#include <cstdio>
#include <cstring>
#include <iostream>
#include <vector>
#include "frame/test_macros.h"
Go to the source code of this file.
Data Structures | |
struct | stack_pool_test_macro_coroutine |
Typedefs | |
typedef copp::stack_pool< copp::allocator::stack_allocator_malloc > | stack_pool_t |
typedef cotask::task< stack_pool_test_macro_coroutine > | stack_pool_test_task_t |
Functions | |
static int | stack_pool_test_task_action (void *) |
CASE_TEST (stack_pool_test, stack_context) | |
CASE_TEST (stack_pool_test, basic) | |
CASE_TEST (stack_pool_test, full_number) | |
CASE_TEST (stack_pool_test, custom_gc) | |
CASE_TEST (stack_pool_test, gc_once) | |
CASE_TEST (stack_pool_test, full_size) | |
Variables | |
static stack_pool_t::ptr_t | global_stack_pool |
typedef copp::stack_pool<copp::allocator::stack_allocator_malloc> stack_pool_t |
Definition at line 13 of file stack_pool_test.cpp.
typedef cotask::task<stack_pool_test_macro_coroutine> stack_pool_test_task_t |
Definition at line 21 of file stack_pool_test.cpp.
CASE_TEST | ( | stack_pool_test | , |
basic | |||
) |
Definition at line 39 of file stack_pool_test.cpp.
References CASE_EXPECT_EQ, global_stack_pool, and stack_pool_test_task_action().
CASE_TEST | ( | stack_pool_test | , |
custom_gc | |||
) |
Definition at line 102 of file stack_pool_test.cpp.
References CASE_EXPECT_EQ, global_stack_pool, and stack_pool_test_task_action().
CASE_TEST | ( | stack_pool_test | , |
full_number | |||
) |
Definition at line 78 of file stack_pool_test.cpp.
References CASE_EXPECT_TRUE, global_stack_pool, and stack_pool_test_task_action().
CASE_TEST | ( | stack_pool_test | , |
full_size | |||
) |
Definition at line 182 of file stack_pool_test.cpp.
References CASE_EXPECT_TRUE, global_stack_pool, and stack_pool_test_task_action().
CASE_TEST | ( | stack_pool_test | , |
gc_once | |||
) |
Definition at line 138 of file stack_pool_test.cpp.
References CASE_EXPECT_EQ, global_stack_pool, and stack_pool_test_task_action().
CASE_TEST | ( | stack_pool_test | , |
stack_context | |||
) |
Definition at line 25 of file stack_pool_test.cpp.
References CASE_EXPECT_EQ.
|
static |
Definition at line 23 of file stack_pool_test.cpp.
Referenced by CASE_TEST().
|
static |
Definition at line 19 of file stack_pool_test.cpp.
Referenced by CASE_TEST().