SVCS - English Documentation
Loading...
Searching...
No Matches
RepositoryTest.cxx File Reference

Unit tests for the Repository class, covering initialization, filesystem structure creation, and Subject/Observer pattern implementation. More...

#include "../../core/include/Repository.hxx"
#include "../../services/IObserver.hxx"
#include "../../services/Event.hxx"
#include <gtest/gtest.h>
#include <filesystem>
#include <vector>
#include <iostream>

Classes

class  svcs::test::core::ManualMockObserver
 Manual mock implementation of the IObserver interface. More...
class  svcs::test::core::RepositoryTest
 Test fixture for Repository class unit tests. More...

Namespaces

namespace  svcs::test::core
 Unit tests for core components and data structures.
namespace  svcs::test
 Comprehensive testing framework for SVCS version control system.

Functions

 svcs::test::core::TEST_F (RepositoryTest, InitCreatesNecessaryDirectories)
 svcs::test::core::TEST_F (RepositoryTest, InitReturnsTrueIfDirectoriesAlreadyExist)
 svcs::test::core::TEST_F (RepositoryTest, AttachAndInitNotifyObserverCorrectly)
 svcs::test::core::TEST_F (RepositoryTest, DetachRemovesObserver)
 svcs::test::core::TEST_F (RepositoryTest, NotifySendsEventToAllObservers)

Detailed Description

Unit tests for the Repository class, covering initialization, filesystem structure creation, and Subject/Observer pattern implementation.