Database System 0.1.0
Advanced C++20 Database System with Multi-Backend Support
Loading...
Searching...
No Matches
AsyncDatabaseTest Class Reference
Inheritance diagram for AsyncDatabaseTest:
Inheritance graph
Collaboration diagram for AsyncDatabaseTest:
Collaboration graph

Protected Member Functions

void SetUp () override
 
void TearDown () override
 

Protected Attributes

std::shared_ptr< async_stub_backend > backend_
 
std::shared_ptr< async_executorexecutor_
 
std::unique_ptr< async_databasedb_
 

Detailed Description

Definition at line 497 of file test_async_operations.cpp.

Member Function Documentation

◆ SetUp()

void AsyncDatabaseTest::SetUp ( )
inlineoverrideprotected

Definition at line 499 of file test_async_operations.cpp.

499 {
500 backend_ = std::make_shared<async_stub_backend>();
501 executor_ = std::make_shared<async_executor>(2);
502 db_ = std::make_unique<async_database>(backend_, executor_);
503 }
std::unique_ptr< async_database > db_
std::shared_ptr< async_executor > executor_
std::shared_ptr< async_stub_backend > backend_

References backend_, db_, and executor_.

◆ TearDown()

void AsyncDatabaseTest::TearDown ( )
inlineoverrideprotected

Definition at line 505 of file test_async_operations.cpp.

505 {
506 db_.reset();
507 if (executor_) {
508 executor_->shutdown();
509 }
510 }

References db_, and executor_.

Member Data Documentation

◆ backend_

std::shared_ptr<async_stub_backend> AsyncDatabaseTest::backend_
protected

Definition at line 512 of file test_async_operations.cpp.

Referenced by SetUp().

◆ db_

std::unique_ptr<async_database> AsyncDatabaseTest::db_
protected

Definition at line 514 of file test_async_operations.cpp.

Referenced by SetUp(), and TearDown().

◆ executor_

std::shared_ptr<async_executor> AsyncDatabaseTest::executor_
protected

Definition at line 513 of file test_async_operations.cpp.

Referenced by SetUp(), and TearDown().


The documentation for this class was generated from the following file: