File tree Expand file tree Collapse file tree 4 files changed +4
-11
lines changed Expand file tree Collapse file tree 4 files changed +4
-11
lines changed Original file line number Diff line number Diff line change @@ -381,12 +381,6 @@ namespace Paths {
381
381
// endregion
382
382
383
383
// region transformations
384
- extern const std::string MAKEFILE_EXTENSION;
385
- extern const std::string TEST_SUFFIX;
386
- extern const std::string STUB_SUFFIX;
387
- extern const std::string DOT_SEP;
388
- extern const std::string MAKE_WRAPPER_SUFFIX;
389
- extern const char dot;
390
384
391
385
fs::path sourcePathToTestPath (const utbot::ProjectContext &projectContext, const fs::path &sourceFilePath);
392
386
Original file line number Diff line number Diff line change @@ -108,7 +108,7 @@ std::vector<UnitTest> TestRunner::getTestsToLaunch() {
108
108
}
109
109
} else {
110
110
if (!StringUtils::endsWith (testFilePath.c_str (), " _test.h" ) &&
111
- !StringUtils::endsWith (testFilePath.stem ().c_str (), " _stub " ) &&
111
+ !StringUtils::endsWith (testFilePath.stem ().c_str (), Paths::STUB_SUFFIX ) &&
112
112
!StringUtils::endsWith (testFilePath.c_str (), " _wrapper.c" ) &&
113
113
!StringUtils::endsWith (testFilePath.c_str (), " .mk" )) {
114
114
LOG_S (WARNING) << " Found extra file in test directory: " << testFilePath;
Original file line number Diff line number Diff line change 5
5
#include " exceptions/UnImplementedException.h"
6
6
7
7
namespace LinkerUtils {
8
- static inline const std::string STUB_SUFFIX = " _stub" ;
9
8
10
9
fs::path applySuffix (const fs::path &output,
11
10
BuildResult::Type unitType,
12
11
const std::string &suffixForParentOfStubs) {
13
12
switch (unitType) {
14
13
case BuildResult::Type::ALL_STUBS:
15
- return Paths::addSuffix (output, STUB_SUFFIX);
14
+ return Paths::addSuffix (output, Paths:: STUB_SUFFIX);
16
15
case BuildResult::Type::ANY_STUBS:
17
16
return Paths::addSuffix (output, suffixForParentOfStubs);
18
17
case BuildResult::Type::NO_STUBS:
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ namespace StubsUtils {
8
8
bool omitSuffix) {
9
9
std::string stubName = " *" + scopeName.value_or (" " ) + " _" + methodName;
10
10
if (!omitSuffix) {
11
- stubName += " _" + paramName + " _stub " ;
11
+ stubName += " _" + paramName + Paths::STUB_SUFFIX ;
12
12
} else {
13
13
stubName = stubName.substr (1 );
14
14
}
@@ -24,7 +24,7 @@ namespace StubsUtils {
24
24
bool omitSuffix) {
25
25
std::string stubName = " *" + structName;
26
26
if (!omitSuffix) {
27
- stubName += " _" + fieldName + " _stub " ;
27
+ stubName += " _" + fieldName + Paths::STUB_SUFFIX ;
28
28
} else {
29
29
stubName = stubName.substr (1 );
30
30
}
You can’t perform that action at this time.
0 commit comments