ATLAS Offline Software
Loading...
Searching...
No Matches
ParallelCallTest.h
Go to the documentation of this file.
1/*
2Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef TestTools_ParallelCallTest_h
6#define TestTools_ParallelCallTest_h
7
8#include <cstddef>
9#include <initializer_list>
10#include <vector>
28
29
31public:
32 virtual ~ParallelCallTest() {}
38 bool run( size_t nrepeats );
43 virtual void firstCall() = 0;
44
50 virtual bool callAndCompare() const = 0;
51
57
58 // static bool launchTests( size_t nrepeats, std::initializer_list<ParallelCallTest*> tests );
59 static bool launchTests( size_t nrepeats, const std::vector<ParallelCallTest*>& tests );
60};
61#endif
Provides interface and helper functions to perform stress testing of the thread-safe code.
virtual bool callAndCompare() const =0
a function that performs request, and compares the results obtained with the result of the first exec...
virtual ~ParallelCallTest()
virtual void firstCall()=0
a method that will be called to obtain first results from the service It should set the reference qua...
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...
Definition run.py:1