Skip to content

Commit

Permalink
add comments to method
Browse files Browse the repository at this point in the history
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
  • Loading branch information
daixtrose and coderabbitai[bot] authored Oct 23, 2024
1 parent cd5ebf7 commit f85e5b5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions polymorphism/test/include/test_polymorphism/mocking.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ struct Mock {
std::list<std::string> collectedSetArguments;
mutable std::atomic<std::size_t> numberOfCallsToCoolFeature { 0 };

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

0 comments on commit f85e5b5

Please sign in to comment.