Skip to content

Commit 06642f0

Browse files
committed
delete extra
1 parent 6b65250 commit 06642f0

File tree

4 files changed

+4
-11
lines changed

4 files changed

+4
-11
lines changed

server/src/Paths.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -381,12 +381,6 @@ namespace Paths {
381381
//endregion
382382

383383
//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;
390384

391385
fs::path sourcePathToTestPath(const utbot::ProjectContext &projectContext, const fs::path &sourceFilePath);
392386

server/src/coverage/TestRunner.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ std::vector<UnitTest> TestRunner::getTestsToLaunch() {
108108
}
109109
} else {
110110
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) &&
112112
!StringUtils::endsWith(testFilePath.c_str(), "_wrapper.c") &&
113113
!StringUtils::endsWith(testFilePath.c_str(), ".mk")) {
114114
LOG_S(WARNING) << "Found extra file in test directory: " << testFilePath;

server/src/utils/LinkerUtils.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,13 @@
55
#include "exceptions/UnImplementedException.h"
66

77
namespace LinkerUtils {
8-
static inline const std::string STUB_SUFFIX = "_stub";
98

109
fs::path applySuffix(const fs::path &output,
1110
BuildResult::Type unitType,
1211
const std::string &suffixForParentOfStubs) {
1312
switch (unitType) {
1413
case BuildResult::Type::ALL_STUBS:
15-
return Paths::addSuffix(output, STUB_SUFFIX);
14+
return Paths::addSuffix(output, Paths::STUB_SUFFIX);
1615
case BuildResult::Type::ANY_STUBS:
1716
return Paths::addSuffix(output, suffixForParentOfStubs);
1817
case BuildResult::Type::NO_STUBS:

server/src/utils/StubsUtils.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ namespace StubsUtils {
88
bool omitSuffix) {
99
std::string stubName = "*" + scopeName.value_or("") + "_" + methodName;
1010
if (!omitSuffix) {
11-
stubName += "_" + paramName + "_stub";
11+
stubName += "_" + paramName + Paths::STUB_SUFFIX;
1212
} else {
1313
stubName = stubName.substr(1);
1414
}
@@ -24,7 +24,7 @@ namespace StubsUtils {
2424
bool omitSuffix) {
2525
std::string stubName = "*" + structName;
2626
if (!omitSuffix) {
27-
stubName += "_" + fieldName + "_stub";
27+
stubName += "_" + fieldName + Paths::STUB_SUFFIX;
2828
} else {
2929
stubName = stubName.substr(1);
3030
}

0 commit comments

Comments
 (0)