CorpusFile

scala.meta.testkit.CorpusFile
case class CorpusFile(filename: String, projectUrl: String, commit: String)

A Scala source file taken from some Github repo

Value parameters

commit

The commit has at where this ScalaFile originates from.

filename

Path to the file relative to the "target/repos" root directory.

projectUrl

The url of the Github project containing this source file.

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def githubUrl: String

Github url to non-raw (i.e., syntax highlighted) version of this ScalaFile

Github url to non-raw (i.e., syntax highlighted) version of this ScalaFile

Attributes

def githubUrlAtLine(line: Int): String

Same as githubUrl but highlighted at a given line-number.

Same as githubUrl but highlighted at a given line-number.

Attributes

def jFile: File

File on local filesystem

File on local filesystem

Attributes

def rawUrl: String

Github "raw" url for this ScalaFile

Github "raw" url for this ScalaFile

Attributes

def read: String

Read string contents of this ScalaFile.

Read string contents of this ScalaFile.

Attributes

def repo: String

repo in username/repo

repo in username/repo

Attributes

override def toString: String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Definition Classes
Any
def user: String

username in username/repo

username in username/repo

Attributes

def userRepo: String

username/repo pair

username/repo pair

Attributes

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product