mirror of
https://bitbucket.org/smil3y/kde-extraapps.git
synced 2025-02-27 04:13:05 +00:00
48 lines
625 B
C++
48 lines
625 B
C++
![]() |
{% load kdev_filters %}
|
||
|
{% include "license_header_cpp.txt" %}
|
||
|
|
||
|
#include "{{ output_file_header }}"
|
||
|
|
||
|
|
||
|
#include <QtTest>
|
||
|
|
||
|
|
||
|
QTEST_MAIN({{ name }});
|
||
|
|
||
|
|
||
|
void {{name}}::initTestCase()
|
||
|
{
|
||
|
// Called before the first testfunction is executed
|
||
|
}
|
||
|
|
||
|
|
||
|
void {{name}}::cleanupTestCase()
|
||
|
{
|
||
|
// Called after the last testfunction was executed
|
||
|
}
|
||
|
|
||
|
|
||
|
void {{name}}::init()
|
||
|
{
|
||
|
// Called before each testfunction is executed
|
||
|
}
|
||
|
|
||
|
|
||
|
void {{name}}::cleanup()
|
||
|
{
|
||
|
// Called after every testfunction
|
||
|
}
|
||
|
|
||
|
|
||
|
{% for case in testCases %}
|
||
|
|
||
|
void {{name}}::{{ case }}()
|
||
|
{
|
||
|
|
||
|
|
||
|
}
|
||
|
|
||
|
{% endfor %}
|
||
|
|
||
|
#include "moc_{{ output_file_header|cut:".h"|cut:".hpp" }}.cpp"
|