userver: utest::StressLoop Class Reference
Loading...
Searching...
No Matches
utest::StressLoop Class Reference

#include <userver/utest/stress.hpp>

Detailed Description

Helper for stress tests for watching for "OK, we have been running for enough time, let's stop" event.

Example:

for (auto _: utest::StressLoop()) {
...
}

Definition at line 23 of file stress.hpp.

Classes

struct  Iterator
 

Public Member Functions

Iterator begin ()
 
Iterator end ()
 
bool ShouldStop () const
 

Member Function Documentation

◆ begin()

Iterator utest::StressLoop::begin ( )
inline

Definition at line 40 of file stress.hpp.

◆ end()

Iterator utest::StressLoop::end ( )
inline

Definition at line 42 of file stress.hpp.

◆ ShouldStop()

bool utest::StressLoop::ShouldStop ( ) const
inline

Definition at line 44 of file stress.hpp.


The documentation for this class was generated from the following file: