libcopp  2.2.0
Data Structures | Functions
coroutine_context_this_coroutine_test.cpp File Reference
#include "frame/test_macros.h"
#include <assert.h>
#include <algorithm>
#include <cstdio>
#include <cstring>
#include <iostream>
#include <atomic>
#include <chrono>
#include <functional>
#include <memory>
#include <thread>
#include <vector>
#include <libcopp/coroutine/coroutine_context_container.h>
#include <libcotask/task.h>
Include dependency graph for coroutine_context_this_coroutine_test.cpp:

Go to the source code of this file.

Data Structures

class  test_this_context_get_cotoutine_runner
 
class  test_this_context_yield_runner
 
struct  test_this_context_rec_runner
 
struct  test_this_context_start_failed_when_running
 

Functions

static void test_this_context_thread_func (copp::coroutine_context_default::ptr_t co, test_this_context_get_cotoutine_runner *runner)
 
 CASE_TEST (this_context, get_coroutine)
 
 CASE_TEST (this_context, yield_)
 
 CASE_TEST (this_context, start_in_co)
 
 CASE_TEST (this_context, start_failed_when_running)
 

Function Documentation

◆ CASE_TEST() [1/4]

CASE_TEST ( this_context  ,
get_coroutine   
)

◆ CASE_TEST() [2/4]

CASE_TEST ( this_context  ,
start_failed_when_running   
)

◆ CASE_TEST() [3/4]

CASE_TEST ( this_context  ,
start_in_co   
)

◆ CASE_TEST() [4/4]

CASE_TEST ( this_context  ,
yield_   
)

◆ test_this_context_thread_func()

static void test_this_context_thread_func ( copp::coroutine_context_default::ptr_t  co,
test_this_context_get_cotoutine_runner runner 
)
static