Skip to content

Commit

Permalink
control method visibility
Browse files Browse the repository at this point in the history
  • Loading branch information
vreuter committed Dec 2, 2024
1 parent a6946bd commit 02a4250
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,6 @@ class TestImagingRoundsConfigurationExamplesParsability extends AnyFunSuite with
)
checkParseFailure(configFile, expectedMessage) // Test exact equality of message and expectation.
}


test("Any overlap of locus timepoint sets for regional timepoints to merge is an error. #384"):
val configFile = getResourcePath(
Expand All @@ -263,7 +262,7 @@ class TestImagingRoundsConfigurationExamplesParsability extends AnyFunSuite with
check = (msg: String, exp: String) => msg.startsWith(exp) // Here we just to prefix check.
)

def checkParseSuccess(configFile: os.Path, expectedMergeParseResult: (Boolean, NonEmptyList[TraceIdDefinitionAndFiltrationRule])) =
private def checkParseSuccess(configFile: os.Path, expectedMergeParseResult: (Boolean, NonEmptyList[TraceIdDefinitionAndFiltrationRule])) =
val (expFilter, expRules) = expectedMergeParseResult
ImagingRoundsConfiguration.fromJsonFile(configFile) match {
case Left(messages) =>
Expand All @@ -288,7 +287,7 @@ class TestImagingRoundsConfigurationExamplesParsability extends AnyFunSuite with
}
}

def checkParseFailure(configFile: os.Path, expectedMessage: String, check: (String, String) => Boolean = cats.Eq[String].eqv) =
private def checkParseFailure(configFile: os.Path, expectedMessage: String, check: (String, String) => Boolean = cats.Eq[String].eqv) =
ImagingRoundsConfiguration.fromJsonFile(configFile) match {
case Left(messages) =>
if messages.count(check(_, expectedMessage)) === 1
Expand Down

0 comments on commit 02a4250

Please sign in to comment.