All Downloads are FREE. Search and download functionalities are using the official Maven repository.

scalajssupport.Source.scala Maven / Gradle / Ivy

The newest version!
package scalajssupport

import scala.io.{Source => OrigSource}

/** This implementation of Source loads the whole file in memory, which is not really efficient, but
  * it is not a problem for scoverage operations.
  */
object Source {
  def fromFile(file: File) = {
    new OrigSource {

      val iter = file.readFile().toCharArray.iterator
    }
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy