HtmlUrls

org.specs2.reporter.HtmlUrls
See theHtmlUrls companion object
trait HtmlUrls

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object HtmlUrls.type

Members list

Value members

Concrete methods

def check(html: NodeSeq, others: Map[String, NodeSeq], rootDirectory: DirectoryPath, filePath: FilePath): Result

check all the urls referenced in nodes of a html document having a given filePath.

check all the urls referenced in nodes of a html document having a given filePath.

Attributes

Returns

a Result, Success or Failure summarizing all checks. In the case of a Failure, only the failure messages are kept

def isAlive(url: String, html: NodeSeq, others: Map[String, NodeSeq], rootDirectory: DirectoryPath): Boolean

Attributes

Returns

true if it is possible to connect to this url through http or locally

def isAliveAnchor(url: String, html: NodeSeq): Boolean

Attributes

Returns

true if the url is an anchor in the document

def isAliveAnchor(url: String, html: String): Boolean

This method is used when the html file can't be parsed

This method is used when the html file can't be parsed

Attributes

Returns

true if the url is an anchor in a String document

def isAliveAnchorInFile(url: String, others: Map[String, NodeSeq], rootDirectory: DirectoryPath): Boolean

look for the anchor in another file to be written to disk by specs2 or a static file already generated

look for the anchor in another file to be written to disk by specs2 or a static file already generated

Attributes

Returns

true if the url is found

def isAliveFile(url: String, others: Map[String, NodeSeq], rootDirectory: DirectoryPath): Boolean

Attributes

Returns

true if the url can be accessed on the file system

def isAliveResult(url: String, html: NodeSeq, others: Map[String, NodeSeq], rootDirectory: DirectoryPath): Result

Attributes

Returns

a Success if the url can be accessed, a Failure otherwise

def isDead(url: String, html: NodeSeq, others: Map[String, NodeSeq], rootDirectory: DirectoryPath): Boolean

Attributes

Returns

true if the url cannot be accessed through http or on the file system