File indexing completed on 2024-05-12 04:37:34

0001 {% load kdev_filters %}
0002 {% include "license_header_cpp.txt" %}
0003 
0004 #include "{{ output_file_header }}"
0005 
0006 
0007 #include <QTest>
0008 
0009 
0010 {{ qtest_main }}({{ name }});
0011 
0012 
0013 {% if testCase_initAndCleanup %}
0014 void {{name}}::initTestCase()
0015 {
0016     // Called before the first testfunction is executed
0017 }
0018 
0019 
0020 void {{name}}::cleanupTestCase()
0021 {
0022     // Called after the last testfunction was executed
0023 }
0024 
0025 
0026 {% endif %}
0027 {% if test_initAndCleanup %}
0028 void {{name}}::init()
0029 {
0030     // Called before each testfunction is executed
0031 }
0032 
0033 
0034 void {{name}}::cleanup()
0035 {
0036     // Called after every testfunction
0037 }
0038 
0039 
0040 {% endif %}
0041 {% for case in testCases %}
0042 
0043 void {{ name }}::{% if test_prefixMethods %}test{{ case|upper_first }}{% else %}{{ case }}{% endif %}()
0044 {
0045 
0046 
0047 }
0048 
0049 {% endfor %}