|
SVCS - Русская документация
|
Google Тесты для класса RemoteProtocol. Подробнее...
#include <gtest/gtest.h>#include <iostream>#include <sstream>#include <filesystem>#include <fstream>#include <algorithm>#include <memory>#include "../../server/include/RemoteProtocol.hxx"#include "../../services/ISubject.hxx"#include "../../services/IObserver.hxx"#include "../../services/Event.hxx"#include "../../core/include/RepositoryManager.hxx"Классы | |
| class | svcs::test::server::MockEventBus |
| class | svcs::test::server::MockRepositoryManager |
| class | svcs::test::server::RemoteProtocolTest |
| class | svcs::test::server::RemoteProtocolIntegrationTest |
Пространства имен | |
| namespace | svcs::test |
| Comprehensive testing framework for SVCS version control system. | |
| namespace | svcs::test::server |
| Server component testing. | |
Функции | |
| svcs::test::server::TEST_F (RemoteProtocolTest, Construction) | |
| svcs::test::server::TEST_F (RemoteProtocolTest, ValidationMethods) | |
| svcs::test::server::TEST_F (RemoteProtocolTest, ObjectManagement) | |
| svcs::test::server::TEST_F (RemoteProtocolTest, EventNotifications) | |
| svcs::test::server::TEST_F (RemoteProtocolIntegrationTest, SimpleProtocolCommunication) | |
| svcs::test::server::TEST_F (RemoteProtocolIntegrationTest, StreamErrorConditions) | |
| svcs::test::server::TEST_F (RemoteProtocolTest, ErrorHandling) | |
| svcs::test::server::TEST_F (RemoteProtocolTest, RepositoryValidation) | |
| svcs::test::server::TEST_F (RemoteProtocolTest, ValidationPerformance) | |
| int | main (int argc, char **argv) |
Google Тесты для класса RemoteProtocol.
Этот файл содержит комплексные модульные тесты для класса RemoteProtocol, проверяющие сетевое взаимодействие, сериализацию/десериализацию протокольных сообщений, обработку ошибок и управление соединениями с удаленными репозиториями.
Тесты охватывают:
Используются mock-компоненты сети для моделирования различных сетевых условий и граничных случаев без необходимости реального сетевого подключения.