|
ATLAS Offline Software
|
Go to the documentation of this file.
5 #ifndef TestTools_ParallelCallTest_h
6 #define TestTools_ParallelCallTest_h
9 #include <initializer_list>
38 bool run(
size_t nrepeats );
59 static bool launchTests(
size_t nrepeats,
const std::vector<ParallelCallTest*>&
tests );
Provides interface and helper functions to perform stress testing of the thread-safe code.
virtual void firstCall()=0
a method that will be called to obtain first results from the service It should set the reference qua...
virtual bool callAndCompare() const =0
a function that performs request, and compares the results obtained with the result of the first exec...
virtual ~ParallelCallTest()
static bool launchTests(size_t nrepeats, const std::vector< ParallelCallTest * > &tests)
Method to run launch number of tests in parallel (increasing the stress of the calle) It has a potent...
bool run(size_t nrepeats)
runs the stress test by invoking it the firstCall and then repetitively the callAndCompare