libcopp  2.2.0
Data Structures | Typedefs | Functions | Variables
coroutine_context_base_test.cpp File Reference
#include <libcopp/coroutine/coroutine_context_container.h>
#include <cstdio>
#include <cstring>
#include <iostream>
#include "frame/test_macros.h"
Include dependency graph for coroutine_context_base_test.cpp:

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 Documentation

◆ test_context_base_coroutine_context_test_type

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.

Function Documentation

◆ CASE_TEST() [1/4]

CASE_TEST ( coroutine  ,
context_base   
)

◆ CASE_TEST() [2/4]

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() [3/4]

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() [4/4]

CASE_TEST ( coroutine  ,
shared_runner   
)

Variable Documentation

◆ g_test_coroutine_base_status

int g_test_coroutine_base_status = 0
static