|
Database System 0.1.0
Advanced C++20 Database System with Multi-Backend Support
|
#include <chrono>#include <future>#include <gtest/gtest.h>#include <memory>#include <thread>#include "database/async/async_operations.h"#include "database/core/database_context.h"#include "database/database_manager.h"#include "database/database_types.h"#include "database/monitoring/performance_monitor.h"#include "database/orm/entity.h"#include "database/security/secure_connection.h"
Go to the source code of this file.
Classes | |
| class | DatabaseTest |
| class | TestUser |
| class | ORMTest |
| class | PerformanceMonitorTest |
| class | SecurityTest |
| class | AsyncOperationsTest |
| class | QueryBuilderTest |
Functions | |
| TEST_F (DatabaseTest, DatabaseManagerDependencyInjection) | |
| TEST_F (DatabaseTest, DatabaseTypeSettings) | |
| TEST_F (DatabaseTest, BasicQueryOperations) | |
| TEST_F (DatabaseTest, ConnectionHandling) | |
| TEST_F (ORMTest, EntityDefinition) | |
| TEST_F (ORMTest, EntityMetadata) | |
| TEST_F (ORMTest, EntityManager) | |
| TEST_F (PerformanceMonitorTest, BasicConfiguration) | |
| TEST_F (PerformanceMonitorTest, QueryMetricsRecording) | |
| TEST_F (PerformanceMonitorTest, ConnectionMetricsRecording) | |
| TEST_F (PerformanceMonitorTest, MetricsRetrieval) | |
| TEST_F (SecurityTest, SecureConnectionConfiguration) | |
| TEST_F (SecurityTest, SecurityConceptDemonstration) | |
| TEST_F (AsyncOperationsTest, AsyncExecutorCreation) | |
| TEST_F (AsyncOperationsTest, MultipleAsyncOperations) | |
| TEST_F (AsyncOperationsTest, AsyncConceptDemonstration) | |
| TEST_F (QueryBuilderTest, SQLQueryBuilder) | |
| TEST_F (QueryBuilderTest, MongoDBQueryBuilder) | |
| TEST_F (QueryBuilderTest, RedisQueryBuilder) | |
| TEST_F (DatabaseTest, PhaseA4DatabaseTypes) | |
| TEST_F (DatabaseTest, GeneralQueryExecution) | |
| int | main (int argc, char **argv) |
| int main | ( | int | argc, |
| char ** | argv ) |
Definition at line 447 of file unit_tests.cpp.
| TEST_F | ( | AsyncOperationsTest | , |
| AsyncConceptDemonstration | ) |
Definition at line 358 of file unit_tests.cpp.
| TEST_F | ( | AsyncOperationsTest | , |
| AsyncExecutorCreation | ) |
Definition at line 325 of file unit_tests.cpp.
| TEST_F | ( | AsyncOperationsTest | , |
| MultipleAsyncOperations | ) |
Definition at line 341 of file unit_tests.cpp.
| TEST_F | ( | DatabaseTest | , |
| BasicQueryOperations | ) |
Definition at line 80 of file unit_tests.cpp.
| TEST_F | ( | DatabaseTest | , |
| ConnectionHandling | ) |
Definition at line 94 of file unit_tests.cpp.
| TEST_F | ( | DatabaseTest | , |
| DatabaseManagerDependencyInjection | ) |
Definition at line 46 of file unit_tests.cpp.
| TEST_F | ( | DatabaseTest | , |
| DatabaseTypeSettings | ) |
Definition at line 59 of file unit_tests.cpp.
| TEST_F | ( | DatabaseTest | , |
| GeneralQueryExecution | ) |
Definition at line 437 of file unit_tests.cpp.
| TEST_F | ( | DatabaseTest | , |
| PhaseA4DatabaseTypes | ) |
Definition at line 425 of file unit_tests.cpp.
| TEST_F | ( | ORMTest | , |
| EntityDefinition | ) |
Definition at line 160 of file unit_tests.cpp.
References TestUser::email, TestUser::is_active, and TestUser::username.
| TEST_F | ( | ORMTest | , |
| EntityManager | ) |
Definition at line 178 of file unit_tests.cpp.
References TestUser::save(), and TestUser::table_name().

| TEST_F | ( | ORMTest | , |
| EntityMetadata | ) |
Definition at line 170 of file unit_tests.cpp.
References TestUser::get_metadata().

| TEST_F | ( | PerformanceMonitorTest | , |
| BasicConfiguration | ) |
Definition at line 209 of file unit_tests.cpp.
| TEST_F | ( | PerformanceMonitorTest | , |
| ConnectionMetricsRecording | ) |
Definition at line 245 of file unit_tests.cpp.
References database::monitoring::connection_metrics::active_connections, database::monitoring::connection_metrics::idle_connections, and database::monitoring::connection_metrics::total_connections.
| TEST_F | ( | PerformanceMonitorTest | , |
| MetricsRetrieval | ) |
Definition at line 260 of file unit_tests.cpp.
| TEST_F | ( | PerformanceMonitorTest | , |
| QueryMetricsRecording | ) |
Definition at line 219 of file unit_tests.cpp.
References database::monitoring::query_metrics::db_type, database::monitoring::query_metrics::end_time, database::monitoring::query_metrics::execution_time, database::monitoring::query_metrics::query_hash, database::monitoring::query_metrics::rows_affected, database::monitoring::query_metrics::start_time, and database::monitoring::query_metrics::success.
| TEST_F | ( | QueryBuilderTest | , |
| MongoDBQueryBuilder | ) |
Definition at line 404 of file unit_tests.cpp.
| TEST_F | ( | QueryBuilderTest | , |
| RedisQueryBuilder | ) |
Definition at line 414 of file unit_tests.cpp.
| TEST_F | ( | QueryBuilderTest | , |
| SQLQueryBuilder | ) |
Definition at line 393 of file unit_tests.cpp.
| TEST_F | ( | SecurityTest | , |
| SecureConnectionConfiguration | ) |
Definition at line 284 of file unit_tests.cpp.
| TEST_F | ( | SecurityTest | , |
| SecurityConceptDemonstration | ) |
Definition at line 301 of file unit_tests.cpp.