|
Database System 0.1.0
Advanced C++20 Database System with Multi-Backend Support
|
#include <algorithm>#include <atomic>#include <gtest/gtest.h>#include <memory>#include <string>#include <thread>#include <vector>#include "database/core/backend_base.h"#include "database/core/backend_registry.h"#include "database/core/database_backend.h"
Go to the source code of this file.
Classes | |
| class | BackendRegistryTest |
Functions | |
| TEST_F (BackendRegistryTest, RegisterBackendSucceeds) | |
| TEST_F (BackendRegistryTest, RegisterMultipleBackends) | |
| TEST_F (BackendRegistryTest, DuplicateRegistrationFails) | |
| TEST_F (BackendRegistryTest, UnregisterExistingBackend) | |
| TEST_F (BackendRegistryTest, UnregisterNonExistentBackendFails) | |
| TEST_F (BackendRegistryTest, CreateRegisteredBackend) | |
| TEST_F (BackendRegistryTest, CreateUnregisteredBackendReturnsNull) | |
| TEST_F (BackendRegistryTest, CreateReturnsDistinctInstances) | |
| TEST_F (BackendRegistryTest, CreatedBackendIsNotInitialized) | |
| TEST_F (BackendRegistryTest, HasBackendReturnsTrueForRegistered) | |
| TEST_F (BackendRegistryTest, HasBackendReturnsFalseForUnregistered) | |
| TEST_F (BackendRegistryTest, AvailableBackendsListsAll) | |
| TEST_F (BackendRegistryTest, BackendCountMatchesRegistrations) | |
| TEST_F (BackendRegistryTest, EmptyRegistryHasZeroCount) | |
| TEST_F (BackendRegistryTest, ClearRemovesAllBackends) | |
| TEST_F (BackendRegistryTest, ReRegisterAfterClear) | |
| TEST_F (BackendRegistryTest, ConvenienceCreateBackend) | |
| TEST_F (BackendRegistryTest, ConvenienceHasBackend) | |
| TEST_F (BackendRegistryTest, ConvenienceAvailableBackends) | |
| TEST_F (BackendRegistryTest, ConcurrentRegistration) | |
| TEST_F (BackendRegistryTest, ConcurrentCreation) | |
| TEST_F (BackendRegistryTest, ConcurrentRegistrationAndQuery) | |
| TEST_F (BackendRegistryTest, EmptyNameRegistration) | |
| TEST_F (BackendRegistryTest, RegisterUnregisterRegister) | |
| TEST_F (BackendRegistryTest, SingletonConsistency) | |
| int | main (int argc, char **argv) |
| int main | ( | int | argc, |
| char ** | argv ) |
Definition at line 461 of file backend_registry_test.cpp.
| TEST_F | ( | BackendRegistryTest | , |
| AvailableBackendsListsAll | ) |
Definition at line 261 of file backend_registry_test.cpp.
References database::core::backend_registry::available_backends(), database::core::backend_registry::instance(), and database::core::backend_registry::register_backend().

| TEST_F | ( | BackendRegistryTest | , |
| BackendCountMatchesRegistrations | ) |
Definition at line 272 of file backend_registry_test.cpp.
References database::core::backend_registry::instance(), and database::core::backend_registry::register_backend().

| TEST_F | ( | BackendRegistryTest | , |
| ClearRemovesAllBackends | ) |
Definition at line 291 of file backend_registry_test.cpp.
References database::core::backend_registry::clear(), database::core::has_backend(), database::core::backend_registry::instance(), and database::core::backend_registry::register_backend().

| TEST_F | ( | BackendRegistryTest | , |
| ConcurrentCreation | ) |
Definition at line 370 of file backend_registry_test.cpp.
References database::core::backend_registry::create(), database::core::backend_registry::instance(), and database::core::backend_registry::register_backend().

| TEST_F | ( | BackendRegistryTest | , |
| ConcurrentRegistration | ) |
Definition at line 345 of file backend_registry_test.cpp.
References database::core::backend_registry::instance(), and database::core::backend_registry::register_backend().

| TEST_F | ( | BackendRegistryTest | , |
| ConcurrentRegistrationAndQuery | ) |
Definition at line 394 of file backend_registry_test.cpp.
References database::core::backend_registry::available_backends(), database::core::backend_registry::backend_count(), database::core::backend_registry::instance(), and database::core::backend_registry::register_backend().

| TEST_F | ( | BackendRegistryTest | , |
| ConvenienceAvailableBackends | ) |
Definition at line 333 of file backend_registry_test.cpp.
References database::core::available_backends(), database::core::backend_registry::instance(), and database::core::backend_registry::register_backend().

| TEST_F | ( | BackendRegistryTest | , |
| ConvenienceCreateBackend | ) |
Definition at line 318 of file backend_registry_test.cpp.
References database::core::create_backend(), database::core::backend_registry::instance(), and database::core::backend_registry::register_backend().

| TEST_F | ( | BackendRegistryTest | , |
| ConvenienceHasBackend | ) |
Definition at line 326 of file backend_registry_test.cpp.
References database::core::has_backend(), database::core::backend_registry::instance(), and database::core::backend_registry::register_backend().

| TEST_F | ( | BackendRegistryTest | , |
| CreatedBackendIsNotInitialized | ) |
Definition at line 238 of file backend_registry_test.cpp.
References database::core::backend_registry::create(), database::core::backend_registry::instance(), and database::core::backend_registry::register_backend().

| TEST_F | ( | BackendRegistryTest | , |
| CreateRegisteredBackend | ) |
Definition at line 214 of file backend_registry_test.cpp.
References database::core::backend_registry::create(), database::core::backend_registry::instance(), and database::core::backend_registry::register_backend().

| TEST_F | ( | BackendRegistryTest | , |
| CreateReturnsDistinctInstances | ) |
Definition at line 228 of file backend_registry_test.cpp.
References database::core::backend_registry::create(), database::core::backend_registry::instance(), and database::core::backend_registry::register_backend().

| TEST_F | ( | BackendRegistryTest | , |
| CreateUnregisteredBackendReturnsNull | ) |
Definition at line 222 of file backend_registry_test.cpp.
References database::core::backend_registry::create(), and database::core::backend_registry::instance().

| TEST_F | ( | BackendRegistryTest | , |
| DuplicateRegistrationFails | ) |
Definition at line 187 of file backend_registry_test.cpp.
References database::core::backend_registry::instance(), and database::core::backend_registry::register_backend().

| TEST_F | ( | BackendRegistryTest | , |
| EmptyNameRegistration | ) |
Definition at line 429 of file backend_registry_test.cpp.
References database::core::has_backend(), database::core::backend_registry::instance(), and database::core::backend_registry::register_backend().

| TEST_F | ( | BackendRegistryTest | , |
| EmptyRegistryHasZeroCount | ) |
Definition at line 281 of file backend_registry_test.cpp.
References database::core::available_backends(), and database::core::backend_registry::instance().

| TEST_F | ( | BackendRegistryTest | , |
| HasBackendReturnsFalseForUnregistered | ) |
Definition at line 256 of file backend_registry_test.cpp.
References database::core::has_backend(), and database::core::backend_registry::instance().

| TEST_F | ( | BackendRegistryTest | , |
| HasBackendReturnsTrueForRegistered | ) |
Definition at line 250 of file backend_registry_test.cpp.
References database::core::has_backend(), database::core::backend_registry::instance(), and database::core::backend_registry::register_backend().

| TEST_F | ( | BackendRegistryTest | , |
| RegisterBackendSucceeds | ) |
Definition at line 171 of file backend_registry_test.cpp.
References database::core::backend_registry::instance(), and database::core::backend_registry::register_backend().

| TEST_F | ( | BackendRegistryTest | , |
| RegisterMultipleBackends | ) |
Definition at line 178 of file backend_registry_test.cpp.
References database::core::backend_registry::instance().

| TEST_F | ( | BackendRegistryTest | , |
| RegisterUnregisterRegister | ) |
Definition at line 440 of file backend_registry_test.cpp.
References database::core::backend_registry::create(), database::core::backend_registry::instance(), database::core::backend_registry::register_backend(), and database::core::backend_registry::unregister_backend().

| TEST_F | ( | BackendRegistryTest | , |
| ReRegisterAfterClear | ) |
Definition at line 303 of file backend_registry_test.cpp.
References database::core::backend_registry::clear(), database::core::has_backend(), database::core::backend_registry::instance(), and database::core::backend_registry::register_backend().

| TEST_F | ( | BackendRegistryTest | , |
| SingletonConsistency | ) |
Definition at line 454 of file backend_registry_test.cpp.
References database::core::backend_registry::instance().

| TEST_F | ( | BackendRegistryTest | , |
| UnregisterExistingBackend | ) |
Definition at line 196 of file backend_registry_test.cpp.
References database::core::has_backend(), database::core::backend_registry::instance(), database::core::backend_registry::register_backend(), and database::core::backend_registry::unregister_backend().

| TEST_F | ( | BackendRegistryTest | , |
| UnregisterNonExistentBackendFails | ) |
Definition at line 204 of file backend_registry_test.cpp.
References database::core::backend_registry::instance(), and database::core::backend_registry::unregister_backend().
