|
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 <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 | MemoryStressTest |
| Test fixture for memory stress tests. More... | |
Functions | |
| TEST_F (MemoryStressTest, LargeResultSetMemory) | |
| Tests memory handling with large result sets. | |
| TEST_F (MemoryStressTest, RepeatedQueryMemoryStability) | |
| Tests that memory remains stable after repeated queries. | |
| TEST_F (MemoryStressTest, QueryBuilderMemoryUsage) | |
| Tests query builder memory usage with many operations. | |
| TEST_F (MemoryStressTest, ResultSetProperCleanup) | |
| Tests that result sets are properly cleaned up. | |
| TEST_F (MemoryStressTest, PartialResultConsumption) | |
| Tests memory behavior when only part of result is consumed. | |
| TEST_F (MemoryStressTest, MixedOperationsMemoryStability) | |
| Tests memory stability under mixed CRUD operations. | |
| TEST_F (MemoryStressTest, VeryLongStringHandling) | |
| Tests memory handling with very long strings. | |
| TEST_F (MemoryStressTest, ManySmallStrings) | |
| Tests memory handling with many small strings. | |
| TEST_F | ( | MemoryStressTest | , |
| LargeResultSetMemory | ) |
Tests memory handling with large result sets.
Creates a table with many rows and queries all data. Monitors memory usage during and after the operation.
Definition at line 99 of file memory_stress_test.cpp.
References ASSERT_TRUE.
| TEST_F | ( | MemoryStressTest | , |
| ManySmallStrings | ) |
Tests memory handling with many small strings.
Definition at line 418 of file memory_stress_test.cpp.
References ASSERT_TRUE.
| TEST_F | ( | MemoryStressTest | , |
| MixedOperationsMemoryStability | ) |
Tests memory stability under mixed CRUD operations.
Definition at line 333 of file memory_stress_test.cpp.
References ASSERT_TRUE.
| TEST_F | ( | MemoryStressTest | , |
| PartialResultConsumption | ) |
Tests memory behavior when only part of result is consumed.
Definition at line 290 of file memory_stress_test.cpp.
References ASSERT_TRUE.
| TEST_F | ( | MemoryStressTest | , |
| QueryBuilderMemoryUsage | ) |
Tests query builder memory usage with many operations.
Definition at line 207 of file memory_stress_test.cpp.
References database::query_builder::build(), database::query_builder::limit(), database::query_builder::order_by(), database::query_builder::select(), and database::query_builder::where().

| TEST_F | ( | MemoryStressTest | , |
| RepeatedQueryMemoryStability | ) |
Tests that memory remains stable after repeated queries.
Definition at line 157 of file memory_stress_test.cpp.
References ASSERT_TRUE.
| TEST_F | ( | MemoryStressTest | , |
| ResultSetProperCleanup | ) |
Tests that result sets are properly cleaned up.
Definition at line 258 of file memory_stress_test.cpp.
References ASSERT_TRUE.
| TEST_F | ( | MemoryStressTest | , |
| VeryLongStringHandling | ) |
Tests memory handling with very long strings.
Definition at line 387 of file memory_stress_test.cpp.
References ASSERT_TRUE.