Test Composite Source
Functions
-
TEST(CompositePatternTest, SingleLeafOperation)
Tests the operation of a single leaf.
-
TEST(CompositePatternTest, CompositeWithLeaves)
Tests the operation of a composite with multiple leaves.
-
TEST(CompositePatternTest, NestedComposites)
Tests the nested composites.
-
class OutputCapturer
Captures console output for validation.
Public Functions
-
inline void start()
-
inline std::string stop()
Private Members
-
std::ostringstream buffer
-
std::streambuf *original
-
inline void start()