All Downloads are FREE. Search and download functionalities are using the official Maven repository.

scala.tools.nsc.interactive.tests.core.TestResources.scala Maven / Gradle / Ivy

package scala.tools.nsc.interactive.tests.core

import scala.tools.nsc.io.Path
import scala.reflect.internal.util.SourceFile

/** Resources used by the test. */
private[tests] trait TestResources extends TestSettings {
  /** collected source files that are to be used by the test runner */
  protected lazy val sourceFiles: Array[SourceFile] = SourcesCollector(baseDir / sourceDir, isScalaOrJavaSource)

  private def isScalaOrJavaSource(file: Path): Boolean = file.extension == "scala" | file.extension == "java"
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy