in agent/src/main/kotlin/com/jetbrains/teamcity/plugins/unrealengine/agent/reporting/TeamCityTestNameFormatter.kt [12:25]
fun format(
name: String,
fullName: String,
): String {
if (fullName.endsWith(name)) {
val packageClassName = fullName.removeSuffix(name)
return sanitizePackageClassName(packageClassName) + sanitizeTestName(name)
}
logger.debug(
"Could not format test name: test path '$fullName' doesn't end with test name '$name', will replace all special characters",
)
return sanitizeAll(fullName)
}