|
ebpf-blocker 1.0.0
XDP-based packet blocker using eBPF
|
Модульные тесты для BlockerDB (обёртка SQLite). More...
#include "db.h"#include <gtest/gtest.h>#include <cstdlib>#include <cstring>#include <filesystem>Go to the source code of this file.
Data Structures | |
| class | DBTest |
| Тестовое окружение: создаёт свежую временную БД для каждого теста. More... | |
Functions | |
| TEST_F (DBTest, EmptyDatabase) | |
| TEST_F (DBTest, InsertAndReadBlacklist) | |
| TEST_F (DBTest, InsertAndReadWhitelist) | |
| TEST_F (DBTest, WhitelistAndBlacklistAreSeparate) | |
| TEST_F (DBTest, MigrationCreatesTables) | |
Модульные тесты для BlockerDB (обёртка SQLite).
Definition in file test_db.cpp.
| TEST_F | ( | DBTest | , |
| EmptyDatabase | ) |
Definition at line 30 of file test_db.cpp.
| TEST_F | ( | DBTest | , |
| InsertAndReadBlacklist | ) |
Definition at line 37 of file test_db.cpp.
| TEST_F | ( | DBTest | , |
| InsertAndReadWhitelist | ) |
Definition at line 56 of file test_db.cpp.
| TEST_F | ( | DBTest | , |
| MigrationCreatesTables | ) |
Definition at line 94 of file test_db.cpp.
| TEST_F | ( | DBTest | , |
| WhitelistAndBlacklistAreSeparate | ) |
Definition at line 75 of file test_db.cpp.