Last active
November 14, 2023 09:01
-
-
Save tarao/43d2c4263478c91ae3d5e21f314a7e13 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
object A { | |
def hello(): Unit = | |
println("hello") | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// addSbtPlugin("org.scoverage" % "sbt-scoverage" % "2.0.9") | |
val Scala_3 = "3.3.1" | |
val Scala_2_13 = "2.13.12" | |
ThisBuild / scalaVersion := Scala_3 | |
ThisBuild / crossScalaVersions := Seq(Scala_2_13, Scala_3) | |
lazy val root = (project in file(".")) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
set -x | |
sbt 'reload plugins' 'set addSbtPlugin("org.scoverage" % "sbt-scoverage" % "2.0.9")' \ | |
'session save' 'reload return' \ | |
"++ $1" coverage test | |
rm project/build.sbt |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Coverage data, format version: 3.0 | |
# Statement data: | |
# - id | |
# - source path | |
# - package name | |
# - class name | |
# - class type (Class, Object or Trait) | |
# - full class name | |
# - method name | |
# - start offset | |
# - end offset | |
# - line number | |
# - symbol name | |
# - tree name | |
# - is branch | |
# - invocations count | |
# - is ignored | |
# - description (can be multi-line) | |
# '' sign | |
# ------------------------------------------ | |
1 | |
A.scala | |
<empty> | |
A | |
Object | |
A | |
hello | |
37 | |
53 | |
3 | |
scala.Predef.println | |
Apply | |
false | |
0 | |
false | |
scala.Predef.println("hello") | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Coverage data, format version: 3.0 | |
# Statement data: | |
# - id | |
# - source path | |
# - package name | |
# - class name | |
# - class type (Class, Object or Trait) | |
# - full class name | |
# - method name | |
# - start offset | |
# - end offset | |
# - line number | |
# - symbol name | |
# - tree name | |
# - is branch | |
# - invocations count | |
# - is ignored | |
# - description (can be multi-line) | |
# '' sign | |
# ------------------------------------------ | |
0 | |
A.scala | |
<empty> | |
A$ | |
Object | |
<empty>.A$ | |
hello | |
37 | |
53 | |
2 | |
println | |
Apply | |
false | |
0 | |
false | |
println("hello") | |
1 | |
A.scala | |
<empty> | |
A$ | |
Object | |
<empty>.A$ | |
hello | |
13 | |
22 | |
1 | |
hello | |
DefDef | |
false | |
0 | |
false | |
def hello | |
Author
tarao
commented
Nov 14, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment