ebpf-blocker 1.0.0
XDP-based packet blocker using eBPF
Loading...
Searching...
No Matches
DBTest Class Reference

Тестовое окружение: создаёт свежую временную БД для каждого теста. More...

Inheritance diagram for DBTest:

Protected Member Functions

void SetUp () override
 
void TearDown () override
 

Protected Attributes

std::string path_
 Путь к временной тестовой БД.
 
std::unique_ptr< BlockerDBdb_
 Тестируемый экземпляр БД.
 

Detailed Description

Тестовое окружение: создаёт свежую временную БД для каждого теста.

Definition at line 12 of file test_db.cpp.

Member Function Documentation

◆ SetUp()

void DBTest::SetUp ( )
inlineoverrideprotected

Definition at line 14 of file test_db.cpp.

References db_, and path_.

◆ TearDown()

void DBTest::TearDown ( )
inlineoverrideprotected

Definition at line 21 of file test_db.cpp.

References db_, and path_.

Field Documentation

◆ db_

std::unique_ptr<BlockerDB> DBTest::db_
protected

Тестируемый экземпляр БД.

Definition at line 27 of file test_db.cpp.

Referenced by SetUp(), and TearDown().

◆ path_

std::string DBTest::path_
protected

Путь к временной тестовой БД.

Definition at line 26 of file test_db.cpp.

Referenced by SetUp(), and TearDown().


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