mirror of https://github.com/sbt/sbt.git
Fix some tests and open up some analysis-related classes
This commit is contained in:
parent
d57e6a8f1a
commit
e5b3b577d8
|
|
@ -34,7 +34,7 @@ import BasicAnalysis._
|
|||
import impl.MapUtilities.{add, all, read, mark, readOnlyIterable, write}
|
||||
import scala.collection.mutable.{HashMap, HashSet, ListBuffer, Map, Set}
|
||||
|
||||
sealed class BasicAnalysis(analysisPath: Path, projectPath: Path, log: Logger) extends TaskAnalysis[Path, Path, File]
|
||||
class BasicAnalysis(analysisPath: Path, projectPath: Path, log: Logger) extends TaskAnalysis[Path, Path, File]
|
||||
{
|
||||
private val sourceDependencyMap: Map[Path, Set[Path]] = new HashMap
|
||||
private val productMap: Map[Path, Set[Path]] = new HashMap
|
||||
|
|
@ -161,7 +161,7 @@ object CompileAnalysis
|
|||
}
|
||||
import CompileAnalysis._
|
||||
import Format._ // get implicits for data types
|
||||
sealed class BasicCompileAnalysis protected (analysisPath: Path, projectPath: Path, log: Logger) extends BasicAnalysis(analysisPath, projectPath, log)
|
||||
class BasicCompileAnalysis protected (analysisPath: Path, projectPath: Path, log: Logger) extends BasicAnalysis(analysisPath, projectPath, log)
|
||||
{
|
||||
/*private */val hashesMap = new HashMap[Path, Array[Byte]]
|
||||
|
||||
|
|
@ -196,7 +196,7 @@ private[sbt] final class BuilderCompileAnalysis(analysisPath: Path, projectPath:
|
|||
Backed(projectDefinitionMap, ProjectDefinitionsLabel, ProjectDefinitionsName) ::
|
||||
super.backedMaps
|
||||
}
|
||||
final class CompileAnalysis(analysisPath: Path, projectPath: Path, log: Logger) extends BasicCompileAnalysis(analysisPath, projectPath, log)
|
||||
class CompileAnalysis(analysisPath: Path, projectPath: Path, log: Logger) extends BasicCompileAnalysis(analysisPath, projectPath, log)
|
||||
{
|
||||
private val testMap = new HashMap[Path, Set[TestDefinition]]
|
||||
private val applicationsMap = new HashMap[Path, Set[String]]
|
||||
|
|
|
|||
|
|
@ -9,6 +9,6 @@ class Test(info: ProjectInfo) extends DefaultProject(info)
|
|||
def scalaSnapshots = Resolver.url("Scala Tools Snapshots") artifacts(snapshotPattern) ivys(snapshotPattern) mavenStyle()
|
||||
val scOnly = ModuleConfiguration("org.scala-lang", "*", "2.8.0-.*", scalaSnapshots)
|
||||
|
||||
val uniqueScala = "org.scala-lang" % "scala-compiler" % "2.8.0-20090910.003346-219"
|
||||
val uniqueScala = "org.scala-lang" % "scala-compiler" % "2.8.0-20091017.011744-240"
|
||||
val otherDep = "org.scala-tools.sxr" % "sxr_2.7.5" % "0.2.3"
|
||||
}
|
||||
|
|
@ -27,10 +27,9 @@ abstract class AbstractNotATest extends Specification
|
|||
}
|
||||
}
|
||||
|
||||
class ClassNotATest extends Specification
|
||||
class ClassCanBeATest extends Specification
|
||||
{
|
||||
// would fail if called
|
||||
"'hello world' has 11 characters" in {
|
||||
"hello world".size mustEqual 12
|
||||
"hello world".size mustEqual 11
|
||||
}
|
||||
}
|
||||
|
|
@ -27,10 +27,10 @@ object FailTest extends Specification
|
|||
}
|
||||
}
|
||||
|
||||
class ClassNotATest extends Specification
|
||||
class ClassCanBeATest extends Specification
|
||||
{
|
||||
// would fail if called
|
||||
"'hello world' has 11 characters" in {
|
||||
"hello world".size mustEqual 12
|
||||
"hello world".size mustEqual 11
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue