Skip to content

Commit

Permalink
Revise comments
Browse files Browse the repository at this point in the history
  • Loading branch information
bocchino committed Dec 11, 2023
1 parent 9499716 commit dccb99c
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -105,14 +105,14 @@ object ComputeCppFiles {
/** Gets the C++ file name for generated component test harness helpers */
def getComponentTestHelper(baseName: String) = s"${baseName}TesterHelpers"

/* Checks whether the file name is a tester helpers file */
/** Checks whether the file name is a tester helpers file */
def isTesterHelpers(fileName: String): Boolean =
fileName.matches(".*TesterHelpers\\.cpp")

/** Gets the C++ file name for generated component main test harness classes */
def getComponentTestMain(baseName: String) = s"${baseName}TestMain"

/* Maps generated template patterns to handcoded file patterns */
/** Maps generated template patterns to handcoded file patterns */
val templateMap = Map(
"TestMain\\.cpp$" -> "TestMain.cpp",
"Tester\\.cpp$" -> "Tester.cpp",
Expand All @@ -121,7 +121,7 @@ object ComputeCppFiles {
"\\.template\\.hpp$" -> ".hpp",
)

/* Checks whether the file name matches a template pattern */
/** Checks whether the file name matches a template pattern */
def isTemplate(fileName: String): Boolean =
templateMap.keys.foldLeft (false) (
(s, pattern) => s || fileName.matches(s".*$pattern.*")
Expand Down

0 comments on commit dccb99c

Please sign in to comment.