Skip to content

Commit

Permalink
Turns off coverage checks on a bunch of compile time only methods.
Browse files Browse the repository at this point in the history
  • Loading branch information
tabdulradi committed Oct 13, 2016
1 parent 6fe0e5c commit ed6e0b5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion troy-macro/src/main/scala/troy/dsl/MacroDSL.scala
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package troy.dsl

import com.datastax.driver.core._

import scala.concurrent.{ ExecutionContext, Future }
import scala.concurrent.Future

object MacroDSL {
trait TroyCql {
Expand Down
3 changes: 2 additions & 1 deletion troy-macro/src/main/scala/troy/dsl/ParsingOps.scala
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import scala.annotation.compileTimeOnly

trait ParsingOps {
type ParseAs[R]

// $COVERAGE-OFF$
@compileTimeOnly("as can be called only inside troy.dsl.withSchema block")
def as[R](mapper: () => R): ParseAs[R] = ???
// (1 to 22).map(1 to _).map(_.map(i => s"T$i").mkString(", ")).map(tstr => s"def as[$tstr, R](mapper: ($tstr) => R): MacroDSL[M[R]]").foreach(println)
Expand Down Expand Up @@ -52,4 +52,5 @@ trait ParsingOps {
def as[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, R](mapper: (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21) => R): ParseAs[R] = ???
@compileTimeOnly("as can be called only inside troy.dsl.withSchema block")
def as[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22, R](mapper: (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22) => R): ParseAs[R] = ???
// $COVERAGE-ON$
}

0 comments on commit ed6e0b5

Please sign in to comment.