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

Unit tests for the HelpCommand class. More...

#include "utils/IntHelpCommandTest.hxx"
#include "mocks/MockHelpServiceAdapter.hxx"

Classes

class  svcs::test::cli::HelpCommand
 Command for displaying help information about other commands. More...
struct  svcs::test::cli::Event
 Structure describing an event published by the VCS core. More...

Namespaces

namespace  svcs::test::cli
 Unit tests for command-line interface components.
namespace  svcs::test
 Comprehensive testing framework for SVCS version control system.

Functions

 svcs::test::cli::TEST_F (HelpCommandTest, ShowGeneralHelp)
 svcs::test::cli::TEST_F (HelpCommandTest, ShowCommandHelp)
 svcs::test::cli::TEST_F (HelpCommandTest, ShowCommandHelpMultipleArgs)
 svcs::test::cli::TEST_F (HelpCommandTest, ShowHelpCommandHelp)
 svcs::test::cli::TEST_F (HelpCommandTest, ErrorWhenHelpServiceNotAvailableGeneral)
 svcs::test::cli::TEST_F (HelpCommandTest, ErrorWhenHelpServiceNotAvailableCommand)
 svcs::test::cli::TEST_F (HelpCommandTest, CommandDescriptionAndUsage)
 svcs::test::cli::TEST_F (HelpCommandTest, CorrectSource)
 svcs::test::cli::TEST_F (HelpCommandTest, EmptyCommandList)
 svcs::test::cli::TEST_F (HelpCommandTest, HelpForNonExistentCommand)
 svcs::test::cli::TEST_F (HelpCommandTest, MultipleHelpCommands)

Detailed Description

Unit tests for the HelpCommand class.

This file implements test cases for the HelpCommandTest fixture, focusing on ensuring the command correctly interacts with the mock help service to provide general help, specific command help, and handles various edge cases like multiple arguments, missing help service dependency, and non-existent commands.