File tree 2 files changed +6
-2
lines changed
2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ abstract class AnnotationBasedTestSuite extends ResourceBasedTestSuite {
29
29
*/
30
30
def systemsUnderTest : Seq [SystemUnderTest ]
31
31
32
- def buildTestInput (file : Path , prefix : String ): DefaultAnnotatedTestInput =
32
+ def buildTestInput (file : Path , prefix : String ): AnnotatedTestInput =
33
33
DefaultAnnotatedTestInput (file, prefix)
34
34
35
35
/** Registers a given test input for a given system under test. */
@@ -221,6 +221,8 @@ trait AnnotatedTestInput extends TestInput {
221
221
222
222
/** Create a test input that is specific to the given project. */
223
223
def makeForProject (projectInfo : ProjectInfo ): AnnotatedTestInput
224
+
225
+ def copyWithFiles (files : Seq [Path ]): AnnotatedTestInput
224
226
}
225
227
226
228
/** Test input that also includes test annotations. */
@@ -244,6 +246,8 @@ case class DefaultAnnotatedTestInput(
244
246
tags = projectInfo.projectNames.map(Tag (_)) ++ tags.toList,
245
247
annotations = annotations.filterByProject(projectInfo))
246
248
}
249
+
250
+ def copyWithFiles (files : Seq [Path ]): DefaultAnnotatedTestInput = copy(files = files)
247
251
}
248
252
249
253
object DefaultAnnotatedTestInput extends TestAnnotationParser {
Original file line number Diff line number Diff line change @@ -24,5 +24,5 @@ trait SingleFileSilSuite extends SilSuite {
24
24
def frontend (verifier : Verifier , input : String ): Frontend
25
25
26
26
override def buildTestInput (file : Path , prefix : String ) =
27
- super .buildTestInput(file, prefix).copy (files = Seq (file))
27
+ super .buildTestInput(file, prefix).copyWithFiles (files = Seq (file))
28
28
}
You can’t perform that action at this time.
0 commit comments