|
SVCS - English Documentation
|
Unit tests for core components and data structures. More...
Namespaces | |
| namespace | mocks |
| Mock objects and test doubles for core component testing. | |
Classes | |
| class | BranchManagerTest |
| class | IndexTest |
| class | ManualMockObserver |
| Manual mock implementation of the IObserver interface. More... | |
| class | MockObjectStorage |
| Mock implementation of ObjectStorage. More... | |
| class | MockObserver |
| Mock observer for testing event notifications. More... | |
| class | MockSubject |
| Mock implementation of ISubject (Event Bus). More... | |
| class | NullObserver |
| Null implementation of IObserver. More... | |
| class | ObjectStorageTest |
| Test fixture for the ObjectStorage class. More... | |
| class | RepositoryManagerTest |
| Test fixture for RepositoryManager tests. More... | |
| class | RepositoryTest |
| Test fixture for Repository class unit tests. More... | |
Functions | |
| TEST (BlobTest, HashIsCalculatedOnCreation) | |
| TEST (BlobTest, HashIsConsistent) | |
| TEST (BlobTest, HashChangesWithContentModification) | |
| TEST (BlobTest, HandlingEmptyContent) | |
| TEST_F (BranchManagerTest, CreateDuplicateBranch) | |
| TEST_F (BranchManagerTest, CreateBranchWithInvalidName) | |
| TEST_F (BranchManagerTest, DeleteNonExistentBranch) | |
| TEST_F (BranchManagerTest, RenameBranch) | |
| TEST_F (BranchManagerTest, RenameToExistingBranch) | |
| TEST_F (BranchManagerTest, SwitchToNonExistentBranch) | |
| TEST_F (BranchManagerTest, BranchNameValidation) | |
| TEST_F (BranchManagerTest, GetBranchHeadForNonExistentBranch) | |
| Commit | createTestCommit (const std::string &tree_hash, const std::vector< std::string > &parents, const std::string &message, std::time_t timestamp=1600000000) |
| TEST (CommitTest, BasicInitialCommit) | |
| TEST (CommitTest, HashIsStableRegardlessOfParentOrder) | |
| TEST (CommitTest, HashChangesWithDifferentMessage) | |
| TEST (CommitTest, SerializationDeserializationRoundTrip) | |
| void | create_test_file (const fs::path &path, const std::string &content) |
| TEST_F (IndexTest, BasicFileOperations) | |
| TEST_F (IndexTest, StageNewFile_AddsCorrectEntry) | |
| TEST_F (IndexTest, StageFile_ThrowsOnNonExistentFile) | |
| TEST_F (IndexTest, IsFileModified_False_WhenNoChange) | |
| TEST_F (IndexTest, IsFileModified_True_WhenSizeChanges) | |
| TEST_F (IndexTest, IsFileModified_True_WhenFileDeleted) | |
| TEST_F (IndexTest, IsFileModified_True_WhenUntrackedExists) | |
| TEST_F (IndexTest, Persistence_SaveAndLoad) | |
| TEST (VscObjectHashTest, CreatingHash) | |
| TEST (VscObjectHashTest, HashIsUniqueByType) | |
| TEST (VcsObjectHashTest, HashIsConsistent) | |
| TEST_F (RepositoryManagerTest, InitializeRepositoryCreatesStructure) | |
| TEST_F (RepositoryManagerTest, AddFileToStagingAddsToIndex) | |
| TEST_F (RepositoryManagerTest, StageMultipleFiles) | |
| TEST_F (RepositoryManagerTest, RepositoryStatePersistsBetweenInstances) | |
| TEST_F (RepositoryManagerTest, AddFileWithRelativePath) | |
| TEST_F (RepositoryManagerTest, AddDuplicateFile) | |
| TEST_F (RepositoryManagerTest, BasicRepositoryOperations) | |
| TEST_F (RepositoryTest, InitCreatesNecessaryDirectories) | |
| TEST_F (RepositoryTest, InitReturnsTrueIfDirectoriesAlreadyExist) | |
| TEST_F (RepositoryTest, AttachAndInitNotifyObserverCorrectly) | |
| TEST_F (RepositoryTest, DetachRemovesObserver) | |
| TEST_F (RepositoryTest, NotifySendsEventToAllObservers) | |
| Blob | create_blob (const std::string &content) |
| TEST_F (ObjectStorageTest, SavesObjectToCorrectPath) | |
| TEST_F (ObjectStorageTest, LoadRestoresOriginalBlob) | |
| TEST_F (ObjectStorageTest, LoadThrowsExceptionIfNotFound) | |
| TEST_F (ObjectStorageTest, LoadRestoresOriginalTree) | |
| TEST_F (ObjectStorageTest, LoadRestoresOriginalCommit) | |
| int | main (int argc, char *argv[]) |
| TEST (TreeTest, HashIsCalculatedAndTypeIsCorrect) | |
| TEST (TreeTest, HashIsConsistentRegardlessOfInitialOrder) | |
| TEST (TreeTest, HashChangesWhenChildHashChanges) | |
| TEST (TreeTest, AddAndUpdateEntry) | |
| TEST (TreeTest, RemoveEntry) | |
| TEST (TreeTest, FindEntry) | |
| TEST (TreeTest, SerializationAndDeserializationRoundTrip) | |
Unit tests for core components and data structures.
Contains test cases for core VCS objects, repository management, and fundamental data structures. Tests in this namespace validate the basic functionality and integrity of the system core.