Skip to content

Commit 1d3955b

Browse files
authored
renamed some files in the test folder (danmar#4705)
1 parent 3ccc0ad commit 1d3955b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

74 files changed

+164
-200
lines changed

.codacy.yml

-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,5 @@ exclude_paths:
44
- htmlreport/example.cc
55
- samples/**/bad.c
66
- samples/**/bad.cpp
7-
- test/test.cxx
87
- test/cfg/*.c
98
- test/cfg/*.cpp

Makefile

+72-72
Large diffs are not rendered by default.

cppcheck.cppcheck

-1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,5 @@
1818
</paths>
1919
<exclude>
2020
<path name="gui/temp/"/>
21-
<path name="test/test.cxx"/>
2221
</exclude>
2322
</project>

test/testsuite.cpp renamed to test/fixture.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
* along with this program. If not, see <http://www.gnu.org/licenses/>.
1717
*/
1818

19-
#include "testsuite.h"
19+
#include "fixture.h"
2020

2121
#include "color.h"
2222
#include "options.h"

test/testsuite.h renamed to test/fixture.h

+3-3
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
*/
1818

1919

20-
#ifndef testsuiteH
21-
#define testsuiteH
20+
#ifndef fixtureH
21+
#define fixtureH
2222

2323
#include "color.h"
2424
#include "config.h"
@@ -143,4 +143,4 @@ extern std::ostringstream output;
143143
} \
144144
} while (false)
145145

146-
#endif
146+
#endif // fixtureH

test/testutils.h renamed to test/helpers.h

+3-3
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
* along with this program. If not, see <http://www.gnu.org/licenses/>.
1717
*/
1818

19-
#ifndef TestUtilsH
20-
#define TestUtilsH
19+
#ifndef helpersH
20+
#define helpersH
2121

2222
#include "color.h"
2323
#include "errorlogger.h"
@@ -86,4 +86,4 @@ class ScopedFile {
8686
std::string mName;
8787
};
8888

89-
#endif // TestUtilsH
89+
#endif // helpersH

test/testrunner.cpp renamed to test/main.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
#include "options.h"
2020
#include "preprocessor.h"
21-
#include "testsuite.h"
21+
#include "fixture.h"
2222

2323
#include <cstdlib>
2424

test/precompiled.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
*/
1818

1919
#pragma once
20-
#include "testsuite.h"
20+
#include "fixture.h"
2121
#include "settings.h"
2222
#include "tokenize.h"
2323
#include "library.h"

test/test.cxx

-34
This file was deleted.

test/test64bit.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
#include "check64bit.h"
2121
#include "errortypes.h"
2222
#include "settings.h"
23-
#include "testsuite.h"
23+
#include "fixture.h"
2424
#include "tokenize.h"
2525

2626
#include <sstream> // IWYU pragma: keep

test/testanalyzerinformation.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919

2020
#include "analyzerinfo.h"
21-
#include "testsuite.h"
21+
#include "fixture.h"
2222

2323
#include <sstream>
2424

test/testassert.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
#include "checkassert.h"
2121
#include "errortypes.h"
2222
#include "settings.h"
23-
#include "testsuite.h"
23+
#include "fixture.h"
2424
#include "tokenize.h"
2525

2626
#include <sstream> // IWYU pragma: keep

test/testastutils.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
#include "astutils.h"
2121
#include "library.h"
2222
#include "settings.h"
23-
#include "testsuite.h"
23+
#include "fixture.h"
2424
#include "token.h"
2525
#include "tokenize.h"
2626
#include "tokenlist.h"

test/testautovariables.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
#include "checkautovariables.h"
2121
#include "errortypes.h"
2222
#include "settings.h"
23-
#include "testsuite.h"
23+
#include "fixture.h"
2424
#include "tokenize.h"
2525

2626
#include <sstream> // IWYU pragma: keep

test/testbool.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
#include "checkbool.h"
2121
#include "errortypes.h"
2222
#include "settings.h"
23-
#include "testsuite.h"
23+
#include "fixture.h"
2424
#include "tokenize.h"
2525

2626
#include <sstream> // IWYU pragma: keep

test/testboost.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
#include "checkboost.h"
2121
#include "errortypes.h"
2222
#include "settings.h"
23-
#include "testsuite.h"
23+
#include "fixture.h"
2424
#include "tokenize.h"
2525

2626
#include <sstream> // IWYU pragma: keep

test/testbufferoverrun.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
#include "library.h"
2626
#include "preprocessor.h"
2727
#include "settings.h"
28-
#include "testsuite.h"
28+
#include "fixture.h"
2929
#include "tokenize.h"
3030

3131
#include <map>

test/testcharvar.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
#include "errortypes.h"
2222
#include "platform.h"
2323
#include "settings.h"
24-
#include "testsuite.h"
24+
#include "fixture.h"
2525
#include "tokenize.h"
2626

2727
#include <sstream> // IWYU pragma: keep

test/testclangimport.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
#include "symboldatabase.h"
2121
#include "token.h"
2222
#include "tokenize.h"
23-
#include "testsuite.h"
23+
#include "fixture.h"
2424

2525
#include <cstdint>
2626
#include <list>

test/testclass.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
#include "errortypes.h"
2222
#include "library.h"
2323
#include "settings.h"
24-
#include "testsuite.h"
24+
#include "fixture.h"
2525
#include "tokenize.h"
2626

2727
#include <list>

test/testcmdlineparser.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
#include "settings.h"
2525
#include "standards.h"
2626
#include "suppressions.h"
27-
#include "testsuite.h"
27+
#include "fixture.h"
2828
#include "timer.h"
2929

3030
#include <cstdio>

test/testcondition.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
#include "platform.h"
2323
#include "preprocessor.h"
2424
#include "settings.h"
25-
#include "testsuite.h"
25+
#include "fixture.h"
2626
#include "tokenize.h"
2727

2828
#include <map>

test/testconstructors.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
#include "errortypes.h"
2222
#include "standards.h"
2323
#include "settings.h"
24-
#include "testsuite.h"
24+
#include "fixture.h"
2525
#include "tokenize.h"
2626

2727
#include <list>

test/testcppcheck.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
#include "color.h"
2121
#include "cppcheck.h"
2222
#include "errorlogger.h"
23-
#include "testsuite.h"
23+
#include "fixture.h"
2424

2525
#include <algorithm>
2626
#include <functional>

test/testerrorlogger.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
#include "errorlogger.h"
2222
#include "errortypes.h"
2323
#include "suppressions.h"
24-
#include "testsuite.h"
24+
#include "fixture.h"
2525

2626
#include <iosfwd>
2727
#include <list>

test/testexceptionsafety.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
#include "checkexceptionsafety.h"
2121
#include "errortypes.h"
2222
#include "settings.h"
23-
#include "testsuite.h"
23+
#include "fixture.h"
2424
#include "tokenize.h"
2525

2626
#include <sstream> // IWYU pragma: keep

test/testfilelister.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
#include "filelister.h"
2020
#include "pathmatch.h"
21-
#include "testsuite.h"
21+
#include "fixture.h"
2222

2323
#include <cstddef>
2424
#include <fstream>

test/testfunctions.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
#include "library.h"
2222
#include "settings.h"
2323
#include "standards.h"
24-
#include "testsuite.h"
24+
#include "fixture.h"
2525
#include "tokenize.h"
2626

2727
#include <list>

test/testgarbage.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
#include "errortypes.h"
2121
#include "mathlib.h"
2222
#include "settings.h"
23-
#include "testsuite.h"
23+
#include "fixture.h"
2424
#include "token.h"
2525
#include "tokenize.h"
2626

test/testimportproject.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
#include "importproject.h"
2020
#include "settings.h"
21-
#include "testsuite.h"
21+
#include "fixture.h"
2222

2323
#include <list>
2424
#include <memory>

test/testincompletestatement.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
#include "checkother.h"
2020
#include "errortypes.h"
2121
#include "settings.h"
22-
#include "testsuite.h"
22+
#include "fixture.h"
2323
#include "tokenize.h"
2424

2525
#include <map>

test/testinternal.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
#include "tokenize.h"
2222
#include "checkinternal.h"
23-
#include "testsuite.h"
23+
#include "fixture.h"
2424

2525
#include <sstream>
2626

test/testio.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
#include "errortypes.h"
2323
#include "platform.h"
2424
#include "settings.h"
25-
#include "testsuite.h"
25+
#include "fixture.h"
2626
#include "tokenize.h"
2727

2828
#include <sstream> // IWYU pragma: keep

test/testleakautovar.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
#include "errortypes.h"
2222
#include "library.h"
2323
#include "settings.h"
24-
#include "testsuite.h"
24+
#include "fixture.h"
2525
#include "tokenize.h"
2626

2727
#include <map>

test/testlibrary.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020
#include "library.h"
2121
#include "settings.h"
2222
#include "standards.h"
23-
#include "testsuite.h"
24-
#include "testutils.h"
23+
#include "fixture.h"
24+
#include "helpers.h"
2525
#include "token.h"
2626
#include "tokenize.h"
2727
#include "tokenlist.h"

test/testmathlib.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919

2020
#include "mathlib.h"
21-
#include "testsuite.h"
21+
#include "fixture.h"
2222

2323
#include <limits>
2424
#include <string>

test/testmemleak.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
#include "errortypes.h"
2121
#include "settings.h"
2222
#include "symboldatabase.h"
23-
#include "testsuite.h"
23+
#include "fixture.h"
2424
#include "token.h"
2525
#include "tokenize.h"
2626

test/testnullpointer.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
#include "errortypes.h"
2323
#include "library.h"
2424
#include "settings.h"
25-
#include "testsuite.h"
25+
#include "fixture.h"
2626
#include "token.h"
2727
#include "tokenize.h"
2828

test/testoptions.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
// along with this program. If not, see <http://www.gnu.org/licenses/>.
1616

1717
#include "options.h"
18-
#include "testsuite.h"
18+
#include "fixture.h"
1919

2020
#include <set>
2121
#include <string>

test/testother.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
#include "preprocessor.h"
2424
#include "settings.h"
2525
#include "standards.h"
26-
#include "testsuite.h"
26+
#include "fixture.h"
2727
#include "tokenize.h"
2828

2929
#include <map>

test/testpath.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
*/
1818

1919
#include "path.h"
20-
#include "testsuite.h"
20+
#include "fixture.h"
2121

2222
#include <string>
2323
#include <vector>

0 commit comments

Comments
 (0)