/
jiteman
/
jsd-foreign-libreoffice-cppunit
Обзор
Документация
Войти
/
jiteman
/
jsd-foreign-libreoffice-cppunit
Код
Запросы
0
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
src/cppunit/RepeatedTest.cpp
29 строк
496 B
jiteman
initial commit has been done
14 апр 2024, 15:49
14 апр 2024, 15:49
4c53812
Код
Авторство
О чём код?
#include <cppunit/extensions/RepeatedTest.h> #include <cppunit/TestResult.h> CPPUNIT_NS_BEGIN // Counts the number of test cases that will be run by this test. int RepeatedTest::countTestCases() const { return TestDecorator::countTestCases() * m_timesRepeat; } // Runs a repeated test void RepeatedTest::run( TestResult *result ) { for ( int n = 0; n < m_timesRepeat; n++ ) { if ( result->shouldStop() ) break; TestDecorator::run( result ); } } CPPUNIT_NS_END