SVCS - English Documentation
Loading...
Searching...
No Matches
svcs::test::cli Namespace Reference

Unit tests for command-line interface components. More...

Namespaces

namespace  mocks
 Mock objects and test doubles for CLI command testing.
namespace  utils
 Utility classes and test fixtures for CLI command testing.

Classes

struct  Event
 Structure describing an event published by the VCS core. More...
class  HelpCommand
 Command for displaying help information about other commands. More...
class  RemoveCommandTest
 Google Test fixture for running integration tests against the RemoveCommand. More...
class  SaveCommandTest
 Google Test fixture for running integration tests against the SaveCommand (commit). More...
class  StatusCommandTest
 Google Test fixture for running integration tests against the StatusCommand. More...
class  UndoCommandTest
 Google Test fixture for running integration tests against the UndoCommand. More...
class  VersionCommandTest
 Google Test fixture for running unit/integration tests against the VersionCommand. More...

Functions

 TEST_F (AddCommandTest, Failure_NoRepository)
 TEST_F (AddCommandTest, Success_AddSingleFile)
 TEST_F (AddCommandTest, Success_AddMultipleFiles)
 TEST_F (AddCommandTest, Success_AddAllFilesWithDot)
 TEST_F (AddCommandTest, Success_AddDirectory)
 TEST_F (AddCommandTest, Debug_FileNotFoundButContinue)
 TEST_F (AddCommandTest, Warning_FileNotFoundButContinue)
 TEST_F (AddCommandTest, Success_NoValidFilesToAdd)
 TEST_F (AddCommandTest, Success_AllFilesNotFoundButNoError)
 TEST_F (AddCommandTest, Success_DryRunMode)
 TEST_F (AddCommandTest, Success_HelpFlag)
 TEST_F (AddCommandTest, Failure_NoFilesSpecified)
 TEST_F (AddCommandTest, Success_InteractiveModeBasic)
 TEST_F (AddCommandTest, Warning_UnknownOption)
 TEST_F (AddCommandTest, Success_ExcludePattern)
 TEST_F (AddCommandTest, Success_IgnoreSvcsDirectory)
 TEST_F (AddCommandTest, Success_UpdateAndForceFlags)
 TEST_F (ClearCommandTest, Failure_NoRepository)
 TEST_F (ClearCommandTest, Success_HelpFlag)
 TEST_F (ClearCommandTest, Success_ForceFlag)
 TEST_F (ClearCommandTest, Success_ForceShortFlag)
 TEST_F (ClearCommandTest, Success_UserConfirmationYes)
 TEST_F (ClearCommandTest, Success_UserConfirmationYesUppercase)
 TEST_F (ClearCommandTest, Success_UserConfirmationYesFull)
 TEST_F (ClearCommandTest, Failure_UserConfirmationNo)
 TEST_F (ClearCommandTest, Failure_UserConfirmationEmpty)
 TEST_F (ClearCommandTest, Success_WarningMessages)
 TEST_F (ClearCommandTest, Debug_RepositoryStructure)
 TEST_F (HelpCommandTest, ShowGeneralHelp)
 TEST_F (HelpCommandTest, ShowCommandHelp)
 TEST_F (HelpCommandTest, ShowCommandHelpMultipleArgs)
 TEST_F (HelpCommandTest, ShowHelpCommandHelp)
 TEST_F (HelpCommandTest, ErrorWhenHelpServiceNotAvailableGeneral)
 TEST_F (HelpCommandTest, ErrorWhenHelpServiceNotAvailableCommand)
 TEST_F (HelpCommandTest, CommandDescriptionAndUsage)
 TEST_F (HelpCommandTest, CorrectSource)
 TEST_F (HelpCommandTest, EmptyCommandList)
 TEST_F (HelpCommandTest, HelpForNonExistentCommand)
 TEST_F (HelpCommandTest, MultipleHelpCommands)
 TEST_F (HistoryCommandTest, DebugCommitHistory)
 TEST_F (HistoryCommandTest, HistoryNoCommits)
 TEST_F (HistoryCommandTest, HistoryWithCommits)
 TEST_F (HistoryCommandTest, HistoryOnelineFormat)
 TEST_F (HistoryCommandTest, DebugLastNCommitsDetailed)
 TEST_F (HistoryCommandTest, HistoryLastNWithOneline)
 TEST_F (HistoryCommandTest, ErrorWhenNoRepository)
 TEST_F (HistoryCommandTest, ShowHelp)
 TEST_F (HistoryCommandTest, ErrorMissingLimitValue)
 TEST_F (HistoryCommandTest, ErrorInvalidLimitValue)
 TEST_F (HistoryCommandTest, ErrorNegativeLimit)
 TEST_F (HistoryCommandTest, ErrorZeroLimit)
 TEST_F (HistoryCommandTest, ErrorUnknownOption)
 TEST_F (HistoryCommandTest, ErrorMutuallyExclusiveOptions)
 TEST_F (HistoryCommandTest, HistoryFullDetails)
 TEST_F (InitCommandIntegrationTest, Success_InitInEmptyDirectory)
 TEST_F (InitCommandIntegrationTest, Success_WithForceFlag)
 TEST_F (InitCommandIntegrationTest, Success_WithCustomPath)
 TEST_F (InitCommandIntegrationTest, HelpFlagShowsHelp)
 TEST_F (RemoveCommandTest, RemoveSingleFile)
 TEST_F (RemoveCommandTest, RemoveMultipleFiles)
 TEST_F (RemoveCommandTest, RemoveAllFilesWithConfirmation)
 TEST_F (RemoveCommandTest, RemoveAllFilesWithRejection)
 TEST_F (RemoveCommandTest, RemoveAllFilesWithDot)
 TEST_F (RemoveCommandTest, RemoveAllFilesWithForce)
 TEST_F (RemoveCommandTest, RemoveWhenNoFilesStaged)
 TEST_F (RemoveCommandTest, ShowHelp)
 TEST_F (RemoveCommandTest, ErrorWhenNoRepository)
 TEST_F (RemoveCommandTest, ErrorWhenNoArguments)
 TEST_F (RemoveCommandTest, RemoveFileFromSubdirectory)
 TEST_F (SaveCommandTest, SaveWithStagedChanges)
 TEST_F (SaveCommandTest, SaveWithMessageFlag)
 TEST_F (SaveCommandTest, ErrorWhenNoRepository)
 TEST_F (SaveCommandTest, ErrorWhenNoMessage)
 TEST_F (SaveCommandTest, ErrorWhenEmptyMessage)
 TEST_F (SaveCommandTest, ErrorWhenMessageTooShort)
 TEST_F (SaveCommandTest, ErrorWhenNoStagedChanges)
 TEST_F (SaveCommandTest, ShowHelp)
 TEST_F (SaveCommandTest, MessageParsingDifferentOrders)
 TEST_F (SaveCommandTest, SaveWithLongMessageFlag)
 TEST_F (SaveCommandTest, StagingAreaClearedAfterSave)
 TEST_F (SaveCommandTest, SaveWithSpecialCharactersInMessage)
 TEST_F (StatusCommandTest, FullStatusNoStagedFiles)
 TEST_F (StatusCommandTest, FullStatusWithStagedFiles)
 TEST_F (StatusCommandTest, FileStatusSpecificFiles)
 TEST_F (StatusCommandTest, FileStatusWithMissingFile)
 TEST_F (StatusCommandTest, FileStatusOnlyMissingFiles)
 TEST_F (StatusCommandTest, ErrorWhenNoRepository)
 TEST_F (StatusCommandTest, ShowHelp)
 TEST_F (StatusCommandTest, StatusWithSubdirectoryFiles)
 TEST_F (StatusCommandTest, EmptyFileStatus)
 TEST_F (StatusCommandTest, FileStatusEmptyList)
 TEST_F (StatusCommandTest, StatusShowsCorrectFileStates)
 TEST_F (UndoCommandTest, UndoLastCommitWithForce)
 TEST_F (UndoCommandTest, UndoLastCommitExplicitWithForce)
 TEST_F (UndoCommandTest, UndoSpecificCommitWithForce)
 TEST_F (UndoCommandTest, UndoWithCommitFlagAndForce)
 TEST_F (UndoCommandTest, ForceUndoInitialCommit)
 TEST_F (UndoCommandTest, UndoWithMultipleFlagsAndForce)
 TEST_F (UndoCommandTest, MultipleUndoCommandsWithForce)
 TEST_F (UndoCommandTest, UndoWithShortForceFlag)
 TEST_F (UndoCommandTest, UndoWithShortFlags)
 TEST_F (UndoCommandTest, UndoWithInvalidCommitHash)
 TEST_F (UndoCommandTest, UndoWithOnlyForceFlag)
 TEST_F (UndoCommandTest, UndoWithFullCommitHash)
 TEST_F (UndoCommandTest, UndoWithMixedFlagOrder)
 TEST_F (UndoCommandTest, VerifyRepositoryStateAfterForceUndo)
 TEST_F (UndoCommandTest, UndoCommitWithSpecialCharacters)
 TEST_F (UndoCommandTest, UndoWithLargeCommitHistory)
 TEST_F (VersionCommandTest, ShowVersion)
 TEST_F (VersionCommandTest, ShowVersionWithArguments)
 TEST_F (VersionCommandTest, ShowHelp)
 TEST_F (VersionCommandTest, VersionStringFormat)
 TEST_F (VersionCommandTest, CopyrightInformation)
 TEST_F (VersionCommandTest, BuildInformation)
 TEST_F (VersionCommandTest, MultipleExecutions)
 TEST_F (VersionCommandTest, CorrectSource)
 TEST_F (VersionCommandTest, EmptyArguments)
 TEST_F (VersionCommandTest, AlwaysReturnsTrue)

Detailed Description

Unit tests for command-line interface components.

Contains test cases for CLI commands, command parsing, and user interaction scenarios. Tests in this namespace validate the behavior and correctness of all user-facing commands.