Skip to content

renamed some files in the test folder #4705

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jan 27, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .codacy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,5 @@ exclude_paths:
- htmlreport/example.cc
- samples/**/bad.c
- samples/**/bad.cpp
- test/test.cxx
- test/cfg/*.c
- test/cfg/*.cpp
144 changes: 72 additions & 72 deletions Makefile

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion cppcheck.cppcheck
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,5 @@
</paths>
<exclude>
<path name="gui/temp/"/>
<path name="test/test.cxx"/>
</exclude>
</project>
2 changes: 1 addition & 1 deletion test/testsuite.cpp → test/fixture.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

#include "testsuite.h"
#include "fixture.h"

#include "color.h"
#include "options.h"
Expand Down
6 changes: 3 additions & 3 deletions test/testsuite.h → test/fixture.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
*/


#ifndef testsuiteH
#define testsuiteH
#ifndef fixtureH
#define fixtureH

#include "color.h"
#include "config.h"
Expand Down Expand Up @@ -143,4 +143,4 @@ extern std::ostringstream output;
} \
} while (false)

#endif
#endif // fixtureH
6 changes: 3 additions & 3 deletions test/testutils.h → test/helpers.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

#ifndef TestUtilsH
#define TestUtilsH
#ifndef helpersH
#define helpersH

#include "color.h"
#include "errorlogger.h"
Expand Down Expand Up @@ -86,4 +86,4 @@ class ScopedFile {
std::string mName;
};

#endif // TestUtilsH
#endif // helpersH
2 changes: 1 addition & 1 deletion test/testrunner.cpp → test/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

#include "options.h"
#include "preprocessor.h"
#include "testsuite.h"
#include "fixture.h"

#include <cstdlib>

Expand Down
2 changes: 1 addition & 1 deletion test/precompiled.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
*/

#pragma once
#include "testsuite.h"
#include "fixture.h"
#include "settings.h"
#include "tokenize.h"
#include "library.h"
Expand Down
34 changes: 0 additions & 34 deletions test/test.cxx

This file was deleted.

2 changes: 1 addition & 1 deletion test/test64bit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
#include "check64bit.h"
#include "errortypes.h"
#include "settings.h"
#include "testsuite.h"
#include "fixture.h"
#include "tokenize.h"

#include <sstream> // IWYU pragma: keep
Expand Down
2 changes: 1 addition & 1 deletion test/testanalyzerinformation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@


#include "analyzerinfo.h"
#include "testsuite.h"
#include "fixture.h"

#include <sstream>

Expand Down
2 changes: 1 addition & 1 deletion test/testassert.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
#include "checkassert.h"
#include "errortypes.h"
#include "settings.h"
#include "testsuite.h"
#include "fixture.h"
#include "tokenize.h"

#include <sstream> // IWYU pragma: keep
Expand Down
2 changes: 1 addition & 1 deletion test/testastutils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
#include "astutils.h"
#include "library.h"
#include "settings.h"
#include "testsuite.h"
#include "fixture.h"
#include "token.h"
#include "tokenize.h"
#include "tokenlist.h"
Expand Down
2 changes: 1 addition & 1 deletion test/testautovariables.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
#include "checkautovariables.h"
#include "errortypes.h"
#include "settings.h"
#include "testsuite.h"
#include "fixture.h"
#include "tokenize.h"

#include <sstream> // IWYU pragma: keep
Expand Down
2 changes: 1 addition & 1 deletion test/testbool.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
#include "checkbool.h"
#include "errortypes.h"
#include "settings.h"
#include "testsuite.h"
#include "fixture.h"
#include "tokenize.h"

#include <sstream> // IWYU pragma: keep
Expand Down
2 changes: 1 addition & 1 deletion test/testboost.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
#include "checkboost.h"
#include "errortypes.h"
#include "settings.h"
#include "testsuite.h"
#include "fixture.h"
#include "tokenize.h"

#include <sstream> // IWYU pragma: keep
Expand Down
2 changes: 1 addition & 1 deletion test/testbufferoverrun.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
#include "library.h"
#include "preprocessor.h"
#include "settings.h"
#include "testsuite.h"
#include "fixture.h"
#include "tokenize.h"

#include <map>
Expand Down
2 changes: 1 addition & 1 deletion test/testcharvar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
#include "errortypes.h"
#include "platform.h"
#include "settings.h"
#include "testsuite.h"
#include "fixture.h"
#include "tokenize.h"

#include <sstream> // IWYU pragma: keep
Expand Down
2 changes: 1 addition & 1 deletion test/testclangimport.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
#include "symboldatabase.h"
#include "token.h"
#include "tokenize.h"
#include "testsuite.h"
#include "fixture.h"

#include <cstdint>
#include <list>
Expand Down
2 changes: 1 addition & 1 deletion test/testclass.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
#include "errortypes.h"
#include "library.h"
#include "settings.h"
#include "testsuite.h"
#include "fixture.h"
#include "tokenize.h"

#include <list>
Expand Down
2 changes: 1 addition & 1 deletion test/testcmdlineparser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
#include "settings.h"
#include "standards.h"
#include "suppressions.h"
#include "testsuite.h"
#include "fixture.h"
#include "timer.h"

#include <cstdio>
Expand Down
2 changes: 1 addition & 1 deletion test/testcondition.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
#include "platform.h"
#include "preprocessor.h"
#include "settings.h"
#include "testsuite.h"
#include "fixture.h"
#include "tokenize.h"

#include <map>
Expand Down
2 changes: 1 addition & 1 deletion test/testconstructors.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
#include "errortypes.h"
#include "standards.h"
#include "settings.h"
#include "testsuite.h"
#include "fixture.h"
#include "tokenize.h"

#include <list>
Expand Down
2 changes: 1 addition & 1 deletion test/testcppcheck.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
#include "color.h"
#include "cppcheck.h"
#include "errorlogger.h"
#include "testsuite.h"
#include "fixture.h"

#include <algorithm>
#include <functional>
Expand Down
2 changes: 1 addition & 1 deletion test/testerrorlogger.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
#include "errorlogger.h"
#include "errortypes.h"
#include "suppressions.h"
#include "testsuite.h"
#include "fixture.h"

#include <iosfwd>
#include <list>
Expand Down
2 changes: 1 addition & 1 deletion test/testexceptionsafety.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
#include "checkexceptionsafety.h"
#include "errortypes.h"
#include "settings.h"
#include "testsuite.h"
#include "fixture.h"
#include "tokenize.h"

#include <sstream> // IWYU pragma: keep
Expand Down
2 changes: 1 addition & 1 deletion test/testfilelister.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

#include "filelister.h"
#include "pathmatch.h"
#include "testsuite.h"
#include "fixture.h"

#include <cstddef>
#include <fstream>
Expand Down
2 changes: 1 addition & 1 deletion test/testfunctions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
#include "library.h"
#include "settings.h"
#include "standards.h"
#include "testsuite.h"
#include "fixture.h"
#include "tokenize.h"

#include <list>
Expand Down
2 changes: 1 addition & 1 deletion test/testgarbage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
#include "errortypes.h"
#include "mathlib.h"
#include "settings.h"
#include "testsuite.h"
#include "fixture.h"
#include "token.h"
#include "tokenize.h"

Expand Down
2 changes: 1 addition & 1 deletion test/testimportproject.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

#include "importproject.h"
#include "settings.h"
#include "testsuite.h"
#include "fixture.h"

#include <list>
#include <memory>
Expand Down
2 changes: 1 addition & 1 deletion test/testincompletestatement.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
#include "checkother.h"
#include "errortypes.h"
#include "settings.h"
#include "testsuite.h"
#include "fixture.h"
#include "tokenize.h"

#include <map>
Expand Down
2 changes: 1 addition & 1 deletion test/testinternal.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

#include "tokenize.h"
#include "checkinternal.h"
#include "testsuite.h"
#include "fixture.h"

#include <sstream>

Expand Down
2 changes: 1 addition & 1 deletion test/testio.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
#include "errortypes.h"
#include "platform.h"
#include "settings.h"
#include "testsuite.h"
#include "fixture.h"
#include "tokenize.h"

#include <sstream> // IWYU pragma: keep
Expand Down
2 changes: 1 addition & 1 deletion test/testleakautovar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
#include "errortypes.h"
#include "library.h"
#include "settings.h"
#include "testsuite.h"
#include "fixture.h"
#include "tokenize.h"

#include <map>
Expand Down
4 changes: 2 additions & 2 deletions test/testlibrary.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
#include "library.h"
#include "settings.h"
#include "standards.h"
#include "testsuite.h"
#include "testutils.h"
#include "fixture.h"
#include "helpers.h"
#include "token.h"
#include "tokenize.h"
#include "tokenlist.h"
Expand Down
2 changes: 1 addition & 1 deletion test/testmathlib.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@


#include "mathlib.h"
#include "testsuite.h"
#include "fixture.h"

#include <limits>
#include <string>
Expand Down
2 changes: 1 addition & 1 deletion test/testmemleak.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
#include "errortypes.h"
#include "settings.h"
#include "symboldatabase.h"
#include "testsuite.h"
#include "fixture.h"
#include "token.h"
#include "tokenize.h"

Expand Down
2 changes: 1 addition & 1 deletion test/testnullpointer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
#include "errortypes.h"
#include "library.h"
#include "settings.h"
#include "testsuite.h"
#include "fixture.h"
#include "token.h"
#include "tokenize.h"

Expand Down
2 changes: 1 addition & 1 deletion test/testoptions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
// along with this program. If not, see <http://www.gnu.org/licenses/>.

#include "options.h"
#include "testsuite.h"
#include "fixture.h"

#include <set>
#include <string>
Expand Down
2 changes: 1 addition & 1 deletion test/testother.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
#include "preprocessor.h"
#include "settings.h"
#include "standards.h"
#include "testsuite.h"
#include "fixture.h"
#include "tokenize.h"

#include <map>
Expand Down
2 changes: 1 addition & 1 deletion test/testpath.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
*/

#include "path.h"
#include "testsuite.h"
#include "fixture.h"

#include <string>
#include <vector>
Expand Down
Loading