File tree 3 files changed +8
-9
lines changed
sbt-test/scoverage/scala3-coverage-excluded-files
3 files changed +8
-9
lines changed Original file line number Diff line number Diff line change @@ -89,14 +89,13 @@ object ScoverageSbtPlugin extends AutoPlugin {
89
89
}
90
90
91
91
private def isScala3SupportingFilePackageExclusion (scalaVersion : String ) = {
92
- def patch = scalaVersion.split('.' ).drop(2 ).headOption
92
+ def patch = scalaVersion.split('.' ).map(_.toInt). drop(2 ).headOption
93
93
CrossVersion
94
94
.partialVersion(scalaVersion)
95
95
.exists {
96
- case (3 , minor)
97
- if minor > 4 || (minor == 4 && patch.exists(_ >= " 2" )) =>
98
- true
99
- case _ => false
96
+ case (3 , minor) if minor > 4 => true
97
+ case (3 , minor) if (minor == 4 && patch.exists(_ >= 2 )) => true
98
+ case _ => false
100
99
}
101
100
}
102
101
Original file line number Diff line number Diff line change 1
1
version := " 0.1"
2
2
3
- scalaVersion := " 3.4.2 "
3
+ scalaVersion := " 3.5.0 "
4
4
5
5
libraryDependencies += " org.scalameta" %% " munit" % " 0.7.29" % Test
6
6
Original file line number Diff line number Diff line change 4
4
> test
5
5
> coverageReport
6
6
# There should be no directory for the excluded files
7
- $ exists target/scala-3.4.2 /scoverage-report/GoodCoverage.scala.html
8
- -$ exists target/scala-3.4.2 /scoverage-report/two
9
- -$ exists target/scala-3.4.2 /scoverage-report/three
7
+ $ exists target/scala-3.5.0 /scoverage-report/GoodCoverage.scala.html
8
+ -$ exists target/scala-3.5.0 /scoverage-report/two
9
+ -$ exists target/scala-3.5.0 /scoverage-report/three
You can’t perform that action at this time.
0 commit comments