|
Database System 0.1.0
Advanced C++20 Database System with Multi-Backend Support
|
#include <gtest/gtest.h>#include <memory>#include <string>#include <vector>#include <thread>#include <future>#include <atomic>#include <chrono>#include "database/backends/sqlite_backend.h"#include "database/core/database_backend.h"#include "database/query_builder.h"
Go to the source code of this file.
Classes | |
| class | AsyncStressTest |
| Test fixture for async operation stress tests. More... | |
Functions | |
| TEST_F (AsyncStressTest, HighConcurrencyInserts) | |
| Tests database behavior under high concurrent insert load. | |
| TEST_F (AsyncStressTest, MixedReadWriteWorkload) | |
| Tests database under mixed read/write workload. | |
| TEST_F (AsyncStressTest, ConcurrentQueryBuilderUsage) | |
| Tests that query builders work correctly under concurrent use. | |
| TEST_F (AsyncStressTest, RapidQueryExecution) | |
| Tests rapid sequential query execution. | |
| TEST_F (AsyncStressTest, SystemRemainResponsiveAfterLoad) | |
| Tests that database remains responsive after heavy load. | |
| TEST_F (AsyncStressTest, NoDataCorruptionUnderConcurrency) | |
| Verifies data integrity after concurrent operations. | |
| TEST_F (AsyncStressTest, GracefulHandlingOfErrors) | |
| Tests that errors are handled gracefully under concurrent load. | |
| TEST_F | ( | AsyncStressTest | , |
| ConcurrentQueryBuilderUsage | ) |
Tests that query builders work correctly under concurrent use.
Definition at line 223 of file async_stress_test.cpp.
References database::query_builder::build(), database::query_builder::limit(), database::query_builder::select(), and database::query_builder::where().

| TEST_F | ( | AsyncStressTest | , |
| GracefulHandlingOfErrors | ) |
Tests that errors are handled gracefully under concurrent load.
Definition at line 409 of file async_stress_test.cpp.
| TEST_F | ( | AsyncStressTest | , |
| HighConcurrencyInserts | ) |
Tests database behavior under high concurrent insert load.
Spawns multiple threads performing concurrent inserts. Measures success rate and performance.
Definition at line 75 of file async_stress_test.cpp.
| TEST_F | ( | AsyncStressTest | , |
| MixedReadWriteWorkload | ) |
Tests database under mixed read/write workload.
Multiple reader and writer threads operating simultaneously.
Definition at line 139 of file async_stress_test.cpp.
| TEST_F | ( | AsyncStressTest | , |
| NoDataCorruptionUnderConcurrency | ) |
Verifies data integrity after concurrent operations.
Definition at line 351 of file async_stress_test.cpp.
References ASSERT_TRUE.
| TEST_F | ( | AsyncStressTest | , |
| RapidQueryExecution | ) |
Tests rapid sequential query execution.
Definition at line 274 of file async_stress_test.cpp.
References database::success.
| TEST_F | ( | AsyncStressTest | , |
| SystemRemainResponsiveAfterLoad | ) |
Tests that database remains responsive after heavy load.
Definition at line 324 of file async_stress_test.cpp.