Skip to content

Commit f85e5b5

Browse files
add comments to method
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
1 parent cd5ebf7 commit f85e5b5

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

polymorphism/test/include/test_polymorphism/mocking.hpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@ struct Mock {
1212
std::list<std::string> collectedSetArguments;
1313
mutable std::atomic<std::size_t> numberOfCallsToCoolFeature { 0 };
1414

15+
/**
16+
* @brief Returns the last set value or a default value if none exists.
17+
* @note Thread-safe. Multiple concurrent calls are safe.
18+
* @return The last set string or "<default value>" if no strings were set
19+
*/
1520
std::string coolFeature() const
1621
{
1722
++numberOfCallsToCoolFeature;

0 commit comments

Comments
 (0)