File tree 26 files changed +87
-36
lines changed
partA/src/main/scala/org/scoverage/issue53/part/a
partB/src/main/scala/org/scoverage/issue53/part/b
partA/src/main/scala/org/scoverage/issue53/part/a
partB/src/main/scala/org/scoverage/issue53/part/b
bad-coverage-package-branch
bad-coverage-package-stmt
bad-coverage-total-branch
scalac-plugin-version/project
sjstest/shared/src/main/scala
26 files changed +87
-36
lines changed Original file line number Diff line number Diff line change 1
1
package org .scoverage .issue53 .part .a
2
2
3
- /**
4
- * Created by Mikhail Kokho on 7/10/2015.
5
- */
3
+ /** Created by Mikhail Kokho on 7/10/2015.
4
+ */
6
5
object AdderScala {
7
6
8
7
def add (x : Int , y : Int ) = x + y
Original file line number Diff line number Diff line change 1
-
2
1
package org .scoverage .issue53 .part .b
3
2
4
- /**
5
- * Created by Mikhail Kokho on 7/10/2015.
6
- */
3
+ /** Created by Mikhail Kokho on 7/10/2015.
4
+ */
7
5
object SubtractorScala {
8
6
9
7
def minus (x : Int , y : Int ) = x - y
Original file line number Diff line number Diff line change @@ -2,7 +2,9 @@ val pluginVersion = sys.props.getOrElse(
2
2
" plugin.version" ,
3
3
throw new RuntimeException (
4
4
""" |The system property 'plugin.version' is not defined.
5
- |Specify this property using the scriptedLaunchOpts -D.""" .stripMargin))
5
+ |Specify this property using the scriptedLaunchOpts -D.""" .stripMargin
6
+ )
7
+ )
6
8
7
9
addSbtPlugin(" org.scoverage" % " sbt-scoverage" % pluginVersion)
8
10
Original file line number Diff line number Diff line change 1
1
package org .scoverage .issue53 .part .a
2
2
3
- /**
4
- * Created by Mikhail Kokho on 7/10/2015.
5
- */
3
+ /** Created by Mikhail Kokho on 7/10/2015.
4
+ */
6
5
object AdderScala {
7
6
8
7
def add (x : Int , y : Int ) = x + y
Original file line number Diff line number Diff line change 1
-
2
1
package org .scoverage .issue53 .part .b
3
2
4
- /**
5
- * Created by Mikhail Kokho on 7/10/2015.
6
- */
3
+ /** Created by Mikhail Kokho on 7/10/2015.
4
+ */
7
5
object SubtractorScala {
8
6
9
7
def minus (x : Int , y : Int ) = x - y
Original file line number Diff line number Diff line change @@ -2,7 +2,9 @@ val pluginVersion = sys.props.getOrElse(
2
2
" plugin.version" ,
3
3
throw new RuntimeException (
4
4
""" |The system property 'plugin.version' is not defined.
5
- |Specify this property using the scriptedLaunchOpts -D.""" .stripMargin))
5
+ |Specify this property using the scriptedLaunchOpts -D.""" .stripMargin
6
+ )
7
+ )
6
8
7
9
addSbtPlugin(" org.scoverage" % " sbt-scoverage" % pluginVersion)
8
10
Original file line number Diff line number Diff line change @@ -9,6 +9,11 @@ coverageMinimumBranchPerFile := 80
9
9
coverageFailOnMinimum := true
10
10
11
11
resolvers ++= {
12
- if (sys.props.get(" plugin.version" ).map(_.endsWith(" -SNAPSHOT" )).getOrElse(false )) Seq (Resolver .sonatypeRepo(" snapshots" ))
12
+ if (
13
+ sys.props
14
+ .get(" plugin.version" )
15
+ .map(_.endsWith(" -SNAPSHOT" ))
16
+ .getOrElse(false )
17
+ ) Seq (Resolver .sonatypeRepo(" snapshots" ))
13
18
else Seq .empty
14
19
}
Original file line number Diff line number Diff line change @@ -2,7 +2,9 @@ val pluginVersion = sys.props.getOrElse(
2
2
" plugin.version" ,
3
3
throw new RuntimeException (
4
4
""" |The system property 'plugin.version' is not defined.
5
- |Specify this property using the scriptedLaunchOpts -D.""" .stripMargin))
5
+ |Specify this property using the scriptedLaunchOpts -D.""" .stripMargin
6
+ )
7
+ )
6
8
7
9
addSbtPlugin(" org.scoverage" % " sbt-scoverage" % pluginVersion)
8
10
Original file line number Diff line number Diff line change @@ -9,6 +9,11 @@ coverageMinimumStmtPerFile := 90
9
9
coverageFailOnMinimum := true
10
10
11
11
resolvers ++= {
12
- if (sys.props.get(" plugin.version" ).map(_.endsWith(" -SNAPSHOT" )).getOrElse(false )) Seq (Resolver .sonatypeRepo(" snapshots" ))
12
+ if (
13
+ sys.props
14
+ .get(" plugin.version" )
15
+ .map(_.endsWith(" -SNAPSHOT" ))
16
+ .getOrElse(false )
17
+ ) Seq (Resolver .sonatypeRepo(" snapshots" ))
13
18
else Seq .empty
14
19
}
Original file line number Diff line number Diff line change @@ -2,7 +2,9 @@ val pluginVersion = sys.props.getOrElse(
2
2
" plugin.version" ,
3
3
throw new RuntimeException (
4
4
""" |The system property 'plugin.version' is not defined.
5
- |Specify this property using the scriptedLaunchOpts -D.""" .stripMargin))
5
+ |Specify this property using the scriptedLaunchOpts -D.""" .stripMargin
6
+ )
7
+ )
6
8
7
9
addSbtPlugin(" org.scoverage" % " sbt-scoverage" % pluginVersion)
8
10
Original file line number Diff line number Diff line change @@ -9,6 +9,11 @@ coverageMinimumBranchPerPackage := 80
9
9
coverageFailOnMinimum := true
10
10
11
11
resolvers ++= {
12
- if (sys.props.get(" plugin.version" ).map(_.endsWith(" -SNAPSHOT" )).getOrElse(false )) Seq (Resolver .sonatypeRepo(" snapshots" ))
12
+ if (
13
+ sys.props
14
+ .get(" plugin.version" )
15
+ .map(_.endsWith(" -SNAPSHOT" ))
16
+ .getOrElse(false )
17
+ ) Seq (Resolver .sonatypeRepo(" snapshots" ))
13
18
else Seq .empty
14
19
}
Original file line number Diff line number Diff line change @@ -2,7 +2,9 @@ val pluginVersion = sys.props.getOrElse(
2
2
" plugin.version" ,
3
3
throw new RuntimeException (
4
4
""" |The system property 'plugin.version' is not defined.
5
- |Specify this property using the scriptedLaunchOpts -D.""" .stripMargin))
5
+ |Specify this property using the scriptedLaunchOpts -D.""" .stripMargin
6
+ )
7
+ )
6
8
7
9
addSbtPlugin(" org.scoverage" % " sbt-scoverage" % pluginVersion)
8
10
Original file line number Diff line number Diff line change @@ -9,6 +9,11 @@ coverageMinimumStmtPerPackage := 80
9
9
coverageFailOnMinimum := true
10
10
11
11
resolvers ++= {
12
- if (sys.props.get(" plugin.version" ).map(_.endsWith(" -SNAPSHOT" )).getOrElse(false )) Seq (Resolver .sonatypeRepo(" snapshots" ))
12
+ if (
13
+ sys.props
14
+ .get(" plugin.version" )
15
+ .map(_.endsWith(" -SNAPSHOT" ))
16
+ .getOrElse(false )
17
+ ) Seq (Resolver .sonatypeRepo(" snapshots" ))
13
18
else Seq .empty
14
19
}
Original file line number Diff line number Diff line change @@ -2,7 +2,9 @@ val pluginVersion = sys.props.getOrElse(
2
2
" plugin.version" ,
3
3
throw new RuntimeException (
4
4
""" |The system property 'plugin.version' is not defined.
5
- |Specify this property using the scriptedLaunchOpts -D.""" .stripMargin))
5
+ |Specify this property using the scriptedLaunchOpts -D.""" .stripMargin
6
+ )
7
+ )
6
8
7
9
addSbtPlugin(" org.scoverage" % " sbt-scoverage" % pluginVersion)
8
10
Original file line number Diff line number Diff line change @@ -9,6 +9,11 @@ coverageMinimumBranchTotal := 80
9
9
coverageFailOnMinimum := true
10
10
11
11
resolvers ++= {
12
- if (sys.props.get(" plugin.version" ).map(_.endsWith(" -SNAPSHOT" )).getOrElse(false )) Seq (Resolver .sonatypeRepo(" snapshots" ))
12
+ if (
13
+ sys.props
14
+ .get(" plugin.version" )
15
+ .map(_.endsWith(" -SNAPSHOT" ))
16
+ .getOrElse(false )
17
+ ) Seq (Resolver .sonatypeRepo(" snapshots" ))
13
18
else Seq .empty
14
19
}
Original file line number Diff line number Diff line change @@ -2,7 +2,9 @@ val pluginVersion = sys.props.getOrElse(
2
2
" plugin.version" ,
3
3
throw new RuntimeException (
4
4
""" |The system property 'plugin.version' is not defined.
5
- |Specify this property using the scriptedLaunchOpts -D.""" .stripMargin))
5
+ |Specify this property using the scriptedLaunchOpts -D.""" .stripMargin
6
+ )
7
+ )
6
8
7
9
addSbtPlugin(" org.scoverage" % " sbt-scoverage" % pluginVersion)
8
10
Original file line number Diff line number Diff line change @@ -9,6 +9,11 @@ coverageMinimumStmtTotal := 80
9
9
coverageFailOnMinimum := true
10
10
11
11
resolvers ++= {
12
- if (sys.props.get(" plugin.version" ).map(_.endsWith(" -SNAPSHOT" )).getOrElse(false )) Seq (Resolver .sonatypeRepo(" snapshots" ))
12
+ if (
13
+ sys.props
14
+ .get(" plugin.version" )
15
+ .map(_.endsWith(" -SNAPSHOT" ))
16
+ .getOrElse(false )
17
+ ) Seq (Resolver .sonatypeRepo(" snapshots" ))
13
18
else Seq .empty
14
19
}
Original file line number Diff line number Diff line change @@ -2,7 +2,9 @@ val pluginVersion = sys.props.getOrElse(
2
2
" plugin.version" ,
3
3
throw new RuntimeException (
4
4
""" |The system property 'plugin.version' is not defined.
5
- |Specify this property using the scriptedLaunchOpts -D.""" .stripMargin))
5
+ |Specify this property using the scriptedLaunchOpts -D.""" .stripMargin
6
+ )
7
+ )
6
8
7
9
addSbtPlugin(" org.scoverage" % " sbt-scoverage" % pluginVersion)
8
10
Original file line number Diff line number Diff line change @@ -2,7 +2,9 @@ val pluginVersion = sys.props.getOrElse(
2
2
" plugin.version" ,
3
3
throw new RuntimeException (
4
4
""" |The system property 'plugin.version' is not defined.
5
- |Specify this property using the scriptedLaunchOpts -D.""" .stripMargin))
5
+ |Specify this property using the scriptedLaunchOpts -D.""" .stripMargin
6
+ )
7
+ )
6
8
7
9
addSbtPlugin(" org.scoverage" % " sbt-scoverage" % pluginVersion)
8
10
Original file line number Diff line number Diff line change @@ -7,4 +7,4 @@ object BadCoverage {
7
7
def mult (num1 : Int , num2 : Int ) = {
8
8
num1 * num2
9
9
}
10
- }
10
+ }
Original file line number Diff line number Diff line change @@ -2,7 +2,9 @@ val pluginVersion = sys.props.getOrElse(
2
2
" plugin.version" ,
3
3
throw new RuntimeException (
4
4
""" |The system property 'plugin.version' is not defined.
5
- |Specify this property using the scriptedLaunchOpts -D.""" .stripMargin))
5
+ |Specify this property using the scriptedLaunchOpts -D.""" .stripMargin
6
+ )
7
+ )
6
8
7
9
addSbtPlugin(" org.scoverage" % " sbt-scoverage" % pluginVersion)
8
10
Original file line number Diff line number Diff line change @@ -2,7 +2,9 @@ val pluginVersion = sys.props.getOrElse(
2
2
" plugin.version" ,
3
3
throw new RuntimeException (
4
4
""" |The system property 'plugin.version' is not defined.
5
- |Specify this property using the scriptedLaunchOpts -D.""" .stripMargin))
5
+ |Specify this property using the scriptedLaunchOpts -D.""" .stripMargin
6
+ )
7
+ )
6
8
7
9
addSbtPlugin(" org.scoverage" % " sbt-scoverage" % pluginVersion)
8
10
Original file line number Diff line number Diff line change @@ -2,7 +2,9 @@ val pluginVersion = sys.props.getOrElse(
2
2
" plugin.version" ,
3
3
throw new RuntimeException (
4
4
""" |The system property 'plugin.version' is not defined.
5
- |Specify this property using the scriptedLaunchOpts -D.""" .stripMargin))
5
+ |Specify this property using the scriptedLaunchOpts -D.""" .stripMargin
6
+ )
7
+ )
6
8
7
9
addSbtPlugin(" org.scoverage" % " sbt-scoverage" % pluginVersion)
8
10
Original file line number Diff line number Diff line change @@ -2,7 +2,9 @@ val pluginVersion = sys.props.getOrElse(
2
2
" plugin.version" ,
3
3
throw new RuntimeException (
4
4
""" |The system property 'plugin.version' is not defined.
5
- |Specify this property using the scriptedLaunchOpts -D.""" .stripMargin))
5
+ |Specify this property using the scriptedLaunchOpts -D.""" .stripMargin
6
+ )
7
+ )
6
8
7
9
addSbtPlugin(" org.scoverage" % " sbt-scoverage" % pluginVersion)
8
10
Original file line number Diff line number Diff line change @@ -2,7 +2,9 @@ val pluginVersion = sys.props.getOrElse(
2
2
" plugin.version" ,
3
3
throw new RuntimeException (
4
4
""" |The system property 'plugin.version' is not defined.
5
- |Specify this property using the scriptedLaunchOpts -D.""" .stripMargin))
5
+ |Specify this property using the scriptedLaunchOpts -D.""" .stripMargin
6
+ )
7
+ )
6
8
7
9
addSbtPlugin(" org.scoverage" % " sbt-scoverage" % pluginVersion)
8
10
Original file line number Diff line number Diff line change 1
-
2
1
object UnderTest {
3
2
def onJsAndJvm : String = " js and jvm"
4
3
You can’t perform that action at this time.
0 commit comments