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

Protected Member Functions

void SetUp () override
 

Protected Attributes

transaction_coordinator coord_
 
std::shared_ptr< txn_stub_backend > p1_
 
std::shared_ptr< txn_stub_backend > p2_
 
std::shared_ptr< txn_stub_backend > p3_
 
std::vector< std::shared_ptr<::database::core::database_backend > > participants_
 

Detailed Description

Definition at line 794 of file test_async_operations.cpp.

Member Function Documentation

◆ SetUp()

void TransactionCoordinatorTest::SetUp ( )
inlineoverrideprotected

Definition at line 796 of file test_async_operations.cpp.

796 {
797 p1_ = std::make_shared<txn_stub_backend>();
798 p2_ = std::make_shared<txn_stub_backend>();
799 p3_ = std::make_shared<txn_stub_backend>();
800 participants_ = {p1_, p2_, p3_};
801 }
std::shared_ptr< txn_stub_backend > p1_
std::shared_ptr< txn_stub_backend > p2_
std::shared_ptr< txn_stub_backend > p3_
std::vector< std::shared_ptr<::database::core::database_backend > > participants_

References p1_, p2_, p3_, and participants_.

Member Data Documentation

◆ coord_

transaction_coordinator TransactionCoordinatorTest::coord_
protected

Definition at line 803 of file test_async_operations.cpp.

◆ p1_

std::shared_ptr<txn_stub_backend> TransactionCoordinatorTest::p1_
protected

Definition at line 804 of file test_async_operations.cpp.

Referenced by SetUp().

◆ p2_

std::shared_ptr<txn_stub_backend> TransactionCoordinatorTest::p2_
protected

Definition at line 805 of file test_async_operations.cpp.

Referenced by SetUp().

◆ p3_

std::shared_ptr<txn_stub_backend> TransactionCoordinatorTest::p3_
protected

Definition at line 806 of file test_async_operations.cpp.

Referenced by SetUp().

◆ participants_

std::vector<std::shared_ptr<::database::core::database_backend> > TransactionCoordinatorTest::participants_
protected

Definition at line 807 of file test_async_operations.cpp.

Referenced by SetUp().


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