ContentMatchers

org.specs2.matcher.ContentMatchers
See theContentMatchers companion object

The ContentMatchers trait provides matchers to make comparisons between files, sequences,...

Attributes

Companion
object
Graph
Supertypes
trait TraversableMatchers
trait NumberOfTimes
trait ValueChecksLowImplicits
trait TraversableBaseMatchers
trait FileMatchers
trait PathMatchers
trait Expectations
trait ExpectationsDescription
trait TypedEqual
trait ExpectationsCreation
trait ResultChecks
trait MatchResultStackTrace
trait DifferenceFilters
class Object
trait Matchable
class Any
Show all
Known subtypes
object ContentMatchers.type

Members list

Type members

Inherited classlikes

case class LinesComparisonMatcher[L1, L2](ls2: L2, all: Boolean, ordered: Boolean, colors: Boolean, filter: DifferenceFilter)(using evidence$7: LinesContent[L1], evidence$8: LinesContent[L2]) extends Matcher[L1]

Matcher to compare the contents of line contents

Matcher to compare the contents of line contents

Attributes

Inherited from:
LinesContentBaseMatchers (hidden)
Supertypes
trait Serializable
trait Product
trait Equals
trait Matcher[L1]
class Object
trait Matchable
class Any
Show all
case class LinesPairComparisonMatcher[L1, L2](all: Boolean, ordered: Boolean, colors: Boolean, filter: DifferenceFilter)(using evidence$9: LinesContent[L1], evidence$10: LinesContent[L2]) extends Matcher[(L1, L2)]

Attributes

Inherited from:
LinesContentBaseMatchers (hidden)
Supertypes
trait Serializable
trait Product
trait Equals
trait Matcher[(L1, L2)]
class Object
trait Matchable
class Any
Show all
case class LocalFilesContentMatcher(expectedDir: File, filter: File => Boolean, filesMatcher: Matcher[(File, File)]) extends Matcher[File]

Attributes

Inherited from:
FilesContentMatchers
Supertypes
trait Serializable
trait Product
trait Equals
trait Matcher[File]
class Object
trait Matchable
class Any
Show all
case class LocalPathsAndFilesContentMatcher(expectedDir: File, filter: File => Boolean, filesMatcher: Matcher[(File, File)]) extends Matcher[File]

Attributes

Inherited from:
FilesContentMatchers
Supertypes
trait Serializable
trait Product
trait Equals
trait Matcher[File]
class Object
trait Matchable
class Any
Show all
case class LocalPathsMatcher(expectedDir: File, filter: File => Boolean) extends Matcher[File]

Attributes

Inherited from:
FilesContentMatchers
Supertypes
trait Serializable
trait Product
trait Equals
trait Matcher[File]
class Object
trait Matchable
class Any
Show all

Value members

Inherited methods

def allOf[T](checks: ValueCheck[T]*): ContainWithResultSeq[T]

Attributes

Inherited from:
TraversableBaseMatchers
def atLeast[T](checks: ValueCheck[T]*): ContainWithResultSeq[T]

Attributes

Inherited from:
TraversableBaseMatchers
def atMost[T](checks: ValueCheck[T]*): ContainWithResultSeq[T]

Attributes

Inherited from:
TraversableBaseMatchers
def beADirectory: Matcher[HasPath]

matches if file.isDirectory

matches if file.isDirectory

Attributes

Inherited from:
FileMatchers
def beADirectoryPath: PathMatcher

matches if new File(path).isDirectory

matches if new File(path).isDirectory

Attributes

Inherited from:
PathMatchers
def beAFile: Matcher[HasPath]

matches if file.isFile

matches if file.isFile

Attributes

Inherited from:
FileMatchers
def beAFilePath: PathMatcher

matches if new File(path).isFile

matches if new File(path).isFile

Attributes

Inherited from:
PathMatchers
def beAHiddenPath: PathMatcher

matches if new File(path).isHidden

matches if new File(path).isHidden

Attributes

Inherited from:
PathMatchers
def beAReadablePath: PathMatcher

matches if new File(path).canRead

matches if new File(path).canRead

Attributes

Inherited from:
PathMatchers
def beAWritablePath: PathMatcher

matches if new File(path).canWrite

matches if new File(path).canWrite

Attributes

Inherited from:
PathMatchers
def beAbsolute: Matcher[HasPath]

matches if file.isAbsolute

matches if file.isAbsolute

Attributes

Inherited from:
FileMatchers
def beAnAbsolutePath: PathMatcher

matches if new File(path).isAbsolute

matches if new File(path).isAbsolute

Attributes

Inherited from:
PathMatchers
def beAnExistingPath: PathMatcher

matches if new File(path).exists

matches if new File(path).exists

Attributes

Inherited from:
PathMatchers
def beEqualToIgnoringSep(other: String): PathMatcher

matches if 2 paths are the same regardless of their separators

matches if 2 paths are the same regardless of their separators

Attributes

Inherited from:
PathMatchers
def beHidden: Matcher[HasPath]

matches if file.isHidden

matches if file.isHidden

Attributes

Inherited from:
FileMatchers
def beReadable: Matcher[HasPath]

matches if file.canRead

matches if file.canRead

Attributes

Inherited from:
FileMatchers
def beSorted[T](using evidence$14: Ordering[T]): OrderingMatcher[T]

Attributes

Returns

a matcher checking if the elements are ordered

Inherited from:
TraversableBaseMatchers
def beWritable: Matcher[HasPath]

matches if file.canWrite

matches if file.canWrite

Attributes

Inherited from:
FileMatchers
protected def checkResultFailure(r: => Result): Result

this method can be overridden to throw exceptions when checking a result

this method can be overridden to throw exceptions when checking a result

Attributes

Inherited from:
ResultChecks
def contain[T](t1: ValueCheck[T], t2: ValueCheck[T], t3: ValueCheck[T], t4: ValueCheck[T], t5: ValueCheck[T], t6: ValueCheck[T], t7: ValueCheck[T], t8: ValueCheck[T], t9: ValueCheck[T], t10: ValueCheck[T], t11: ValueCheck[T], t12: ValueCheck[T], t13: ValueCheck[T], t14: ValueCheck[T], t15: ValueCheck[T], t16: ValueCheck[T], t17: ValueCheck[T], t18: ValueCheck[T], t19: ValueCheck[T], t20: ValueCheck[T], t21: ValueCheck[T], t22: ValueCheck[T]): ContainWithResultSeq[T]

Attributes

Inherited from:
TraversableBaseMatchers
def contain[T](t1: ValueCheck[T], t2: ValueCheck[T], t3: ValueCheck[T], t4: ValueCheck[T], t5: ValueCheck[T], t6: ValueCheck[T], t7: ValueCheck[T], t8: ValueCheck[T], t9: ValueCheck[T], t10: ValueCheck[T], t11: ValueCheck[T], t12: ValueCheck[T], t13: ValueCheck[T], t14: ValueCheck[T], t15: ValueCheck[T], t16: ValueCheck[T], t17: ValueCheck[T], t18: ValueCheck[T], t19: ValueCheck[T], t20: ValueCheck[T], t21: ValueCheck[T]): ContainWithResultSeq[T]

Attributes

Inherited from:
TraversableBaseMatchers
def contain[T](t1: ValueCheck[T], t2: ValueCheck[T], t3: ValueCheck[T], t4: ValueCheck[T], t5: ValueCheck[T], t6: ValueCheck[T], t7: ValueCheck[T], t8: ValueCheck[T], t9: ValueCheck[T], t10: ValueCheck[T], t11: ValueCheck[T], t12: ValueCheck[T], t13: ValueCheck[T], t14: ValueCheck[T], t15: ValueCheck[T], t16: ValueCheck[T], t17: ValueCheck[T], t18: ValueCheck[T], t19: ValueCheck[T], t20: ValueCheck[T]): ContainWithResultSeq[T]

Attributes

Inherited from:
TraversableBaseMatchers
def contain[T](t1: ValueCheck[T], t2: ValueCheck[T], t3: ValueCheck[T], t4: ValueCheck[T], t5: ValueCheck[T], t6: ValueCheck[T], t7: ValueCheck[T], t8: ValueCheck[T], t9: ValueCheck[T], t10: ValueCheck[T], t11: ValueCheck[T], t12: ValueCheck[T], t13: ValueCheck[T], t14: ValueCheck[T], t15: ValueCheck[T], t16: ValueCheck[T], t17: ValueCheck[T], t18: ValueCheck[T], t19: ValueCheck[T]): ContainWithResultSeq[T]

Attributes

Inherited from:
TraversableBaseMatchers
def contain[T](t1: ValueCheck[T], t2: ValueCheck[T], t3: ValueCheck[T], t4: ValueCheck[T], t5: ValueCheck[T], t6: ValueCheck[T], t7: ValueCheck[T], t8: ValueCheck[T], t9: ValueCheck[T], t10: ValueCheck[T], t11: ValueCheck[T], t12: ValueCheck[T], t13: ValueCheck[T], t14: ValueCheck[T], t15: ValueCheck[T], t16: ValueCheck[T], t17: ValueCheck[T], t18: ValueCheck[T]): ContainWithResultSeq[T]

Attributes

Inherited from:
TraversableBaseMatchers
def contain[T](t1: ValueCheck[T], t2: ValueCheck[T], t3: ValueCheck[T], t4: ValueCheck[T], t5: ValueCheck[T], t6: ValueCheck[T], t7: ValueCheck[T], t8: ValueCheck[T], t9: ValueCheck[T], t10: ValueCheck[T], t11: ValueCheck[T], t12: ValueCheck[T], t13: ValueCheck[T], t14: ValueCheck[T], t15: ValueCheck[T], t16: ValueCheck[T], t17: ValueCheck[T]): ContainWithResultSeq[T]

Attributes

Inherited from:
TraversableBaseMatchers
def contain[T](t1: ValueCheck[T], t2: ValueCheck[T], t3: ValueCheck[T], t4: ValueCheck[T], t5: ValueCheck[T], t6: ValueCheck[T], t7: ValueCheck[T], t8: ValueCheck[T], t9: ValueCheck[T], t10: ValueCheck[T], t11: ValueCheck[T], t12: ValueCheck[T], t13: ValueCheck[T], t14: ValueCheck[T], t15: ValueCheck[T], t16: ValueCheck[T]): ContainWithResultSeq[T]

Attributes

Inherited from:
TraversableBaseMatchers
def contain[T](t1: ValueCheck[T], t2: ValueCheck[T], t3: ValueCheck[T], t4: ValueCheck[T], t5: ValueCheck[T], t6: ValueCheck[T], t7: ValueCheck[T], t8: ValueCheck[T], t9: ValueCheck[T], t10: ValueCheck[T], t11: ValueCheck[T], t12: ValueCheck[T], t13: ValueCheck[T], t14: ValueCheck[T], t15: ValueCheck[T]): ContainWithResultSeq[T]

Attributes

Inherited from:
TraversableBaseMatchers
def contain[T](t1: ValueCheck[T], t2: ValueCheck[T], t3: ValueCheck[T], t4: ValueCheck[T], t5: ValueCheck[T], t6: ValueCheck[T], t7: ValueCheck[T], t8: ValueCheck[T], t9: ValueCheck[T], t10: ValueCheck[T], t11: ValueCheck[T], t12: ValueCheck[T], t13: ValueCheck[T], t14: ValueCheck[T]): ContainWithResultSeq[T]

Attributes

Inherited from:
TraversableBaseMatchers
def contain[T](t1: ValueCheck[T], t2: ValueCheck[T], t3: ValueCheck[T], t4: ValueCheck[T], t5: ValueCheck[T], t6: ValueCheck[T], t7: ValueCheck[T], t8: ValueCheck[T], t9: ValueCheck[T], t10: ValueCheck[T], t11: ValueCheck[T], t12: ValueCheck[T], t13: ValueCheck[T]): ContainWithResultSeq[T]

Attributes

Inherited from:
TraversableBaseMatchers
def contain[T](t1: ValueCheck[T], t2: ValueCheck[T], t3: ValueCheck[T], t4: ValueCheck[T], t5: ValueCheck[T], t6: ValueCheck[T], t7: ValueCheck[T], t8: ValueCheck[T], t9: ValueCheck[T], t10: ValueCheck[T], t11: ValueCheck[T], t12: ValueCheck[T]): ContainWithResultSeq[T]

Attributes

Inherited from:
TraversableBaseMatchers
def contain[T](t1: ValueCheck[T], t2: ValueCheck[T], t3: ValueCheck[T], t4: ValueCheck[T], t5: ValueCheck[T], t6: ValueCheck[T], t7: ValueCheck[T], t8: ValueCheck[T], t9: ValueCheck[T], t10: ValueCheck[T], t11: ValueCheck[T]): ContainWithResultSeq[T]

Attributes

Inherited from:
TraversableBaseMatchers
def contain[T](t1: ValueCheck[T], t2: ValueCheck[T], t3: ValueCheck[T], t4: ValueCheck[T], t5: ValueCheck[T], t6: ValueCheck[T], t7: ValueCheck[T], t8: ValueCheck[T], t9: ValueCheck[T], t10: ValueCheck[T]): ContainWithResultSeq[T]

Attributes

Inherited from:
TraversableBaseMatchers
def contain[T](t1: ValueCheck[T], t2: ValueCheck[T], t3: ValueCheck[T], t4: ValueCheck[T], t5: ValueCheck[T], t6: ValueCheck[T], t7: ValueCheck[T], t8: ValueCheck[T], t9: ValueCheck[T]): ContainWithResultSeq[T]

Attributes

Inherited from:
TraversableBaseMatchers
def contain[T](t1: ValueCheck[T], t2: ValueCheck[T], t3: ValueCheck[T], t4: ValueCheck[T], t5: ValueCheck[T], t6: ValueCheck[T], t7: ValueCheck[T], t8: ValueCheck[T]): ContainWithResultSeq[T]

Attributes

Inherited from:
TraversableBaseMatchers
def contain[T](t1: ValueCheck[T], t2: ValueCheck[T], t3: ValueCheck[T], t4: ValueCheck[T], t5: ValueCheck[T], t6: ValueCheck[T], t7: ValueCheck[T]): ContainWithResultSeq[T]

Attributes

Inherited from:
TraversableBaseMatchers
def contain[T](t1: ValueCheck[T], t2: ValueCheck[T], t3: ValueCheck[T], t4: ValueCheck[T], t5: ValueCheck[T], t6: ValueCheck[T]): ContainWithResultSeq[T]

Attributes

Inherited from:
TraversableBaseMatchers
def contain[T](t1: ValueCheck[T], t2: ValueCheck[T], t3: ValueCheck[T], t4: ValueCheck[T], t5: ValueCheck[T]): ContainWithResultSeq[T]

Attributes

Inherited from:
TraversableBaseMatchers
def contain[T](t1: ValueCheck[T], t2: ValueCheck[T], t3: ValueCheck[T], t4: ValueCheck[T]): ContainWithResultSeq[T]

Attributes

Inherited from:
TraversableBaseMatchers
def contain[T](t1: ValueCheck[T], t2: ValueCheck[T], t3: ValueCheck[T]): ContainWithResultSeq[T]

Attributes

Inherited from:
TraversableBaseMatchers
def contain[T](t1: ValueCheck[T], t2: ValueCheck[T]): ContainWithResultSeq[T]

Additional contain methods using to avoid automatic tuple conversions

Additional contain methods using to avoid automatic tuple conversions

Attributes

Inherited from:
TraversableBaseMatchers
def contain[T](cm: ContainWithResultSeq[T]): ContainWithResultSeq[T]

COLLECTION MATCHERS

COLLECTION MATCHERS

Attributes

Inherited from:
TraversableBaseMatchers
def contain[T](check: ValueCheck[T]): ContainWithResult[T]

ELEMENTS MATCHERS

ELEMENTS MATCHERS

Attributes

Inherited from:
TraversableBaseMatchers
def containAllOf[T](seq: Seq[T])(using evidence$4: Diffable[T]): ContainWithResultSeq[T]

match if a traversable contains all the elements of seq (and maybe more)

match if a traversable contains all the elements of seq (and maybe more)

Attributes

Inherited from:
TraversableBaseMatchers
def containAnyOf[T](seq: Seq[T]): ContainWithResult[T]

match if a traversable contains one of (t1, t2)

match if a traversable contains one of (t1, t2)

Attributes

Inherited from:
TraversableBaseMatchers
def containLines[L1, L2](ls2: L2)(using evidence$5: LinesContent[L1], evidence$6: LinesContent[L2]): LinesComparisonMatcher[L1, L2]

matches if 1 lines content contains the lines of the other one

matches if 1 lines content contains the lines of the other one

Attributes

Inherited from:
LinesContentBaseMatchers (hidden)
def containMatch[T](s: => String): Matcher[Iterable[T]]

match if traversable contains (x matches .+t+.)

match if traversable contains (x matches .+t+.)

Attributes

Inherited from:
TraversableBaseMatchers
def containPattern[T, S](s: S)(using evidence$5: MatchingExpression[S]): Matcher[Iterable[T]]

match if traversable contains (x matches p)

match if traversable contains (x matches p)

Attributes

Inherited from:
TraversableBaseMatchers
def containTheSameElementsAs[T](seq: Seq[T], equality: (T, T) => Boolean): Matcher[Iterable[T]]

does a containAll comparison in both ways

does a containAll comparison in both ways

Attributes

Inherited from:
TraversableBaseMatchers
def createExpectable[T](t: => T, alias: String => String): Expectable[T]

Attributes

Returns

an Expectable with a description function

Inherited from:
ExpectationsCreation
def createExpectable[T](t: => T, alias: => String): Expectable[T]

Attributes

Returns

an Expectable with a description

Inherited from:
ExpectationsCreation
def createExpectable[T](t: => T): Expectable[T]

Attributes

Returns

an Expectable

Inherited from:
ExpectationsCreation
def createExpectable[T](t: => T, alias: Option[String => String]): Expectable[T]

Attributes

Returns

an Expectable with a description function

Inherited from:
ExpectationsCreation
def createExpectableWithShowAs[T](t: => T, showAs: => String): Expectable[T]

Attributes

Returns

an Expectable with a function to show the element T

Inherited from:
ExpectationsCreation
def eachOf[T](checks: ValueCheck[T]*): ContainWithResultSeq[T]

Attributes

Inherited from:
TraversableBaseMatchers
def exactly[T](checks: ValueCheck[T]*): ContainWithResultSeq[T]

Attributes

Inherited from:
TraversableBaseMatchers
def exist: Matcher[HasPath]

matches if file.exists

matches if file.exists

Attributes

Inherited from:
FileMatchers
def haveAbsolutePath(path: String): Matcher[HasPath]

matches if file.getAbsolutePath == path

matches if file.getAbsolutePath == path

Attributes

Inherited from:
FileMatchers
def haveAsAbsolutePath(path: String): PathMatcher

matches if new File(path).getAbsolutePath == absolutePath

matches if new File(path).getAbsolutePath == absolutePath

Attributes

Inherited from:
PathMatchers
def haveAsCanonicalPath(path: String): PathMatcher

matches if new File(path).getCanonicalPath == canonicalPath

matches if new File(path).getCanonicalPath == canonicalPath

Attributes

Inherited from:
PathMatchers
def haveCanonicalPath(path: String): Matcher[HasPath]

matches if file.getCanonicalPath == path

matches if file.getCanonicalPath == path

Attributes

Inherited from:
FileMatchers
def haveLength[T](check: ValueCheck[Int])(using evidence$12: Sized[T]): SizedCheckedMatcher[T]

alias for haveSize

alias for haveSize

Attributes

Inherited from:
TraversableBaseMatchers
def haveLength[T](n: Int)(using evidence$8: Sized[T]): SizedMatcher[T]

alias for haveSize

alias for haveSize

Attributes

Inherited from:
TraversableBaseMatchers
def haveList(list: String): Matcher[HasPath]

matches if file.list == list

matches if file.list == list

Attributes

Inherited from:
FileMatchers
def haveName(name: String): Matcher[HasPath]

matches if file.getName == name

matches if file.getName == name

Attributes

Inherited from:
FileMatchers
def haveParent(path: String): Matcher[HasPath]

matches if file.getParent == path

matches if file.getParent == path

Attributes

Inherited from:
FileMatchers
def haveParentPath(parent: String): PathMatcher

matches if new File(path).getParent == parent

matches if new File(path).getParent == parent

Attributes

Inherited from:
PathMatchers
def havePathName(name: String): PathMatcher

matches if new File(path).getName == name

matches if new File(path).getName == name

Attributes

Inherited from:
PathMatchers

check that all the paths in expectedDir are the same as the ones in actualDir then check that all the files in expectedDir have the same contents as the files in actualDir when they are present

check that all the paths in expectedDir are the same as the ones in actualDir then check that all the files in expectedDir have the same contents as the files in actualDir when they are present

Attributes

Inherited from:
FilesContentMatchers

check that all the files in expectedDir have the same contents as the files in actualDir when they are present The default matcher is assuming that files are text files which must be compared line by line

check that all the files in expectedDir have the same contents as the files in actualDir when they are present The default matcher is assuming that files are text files which must be compared line by line

Attributes

Inherited from:
FilesContentMatchers
def haveSameLines[L1, L2](using evidence$1: LinesContent[L1], evidence$2: LinesContent[L2]): LinesPairComparisonMatcher[L1, L2]

matches if 2 contents, as a pair, have the same lines

matches if 2 contents, as a pair, have the same lines

Attributes

Inherited from:
LinesContentBaseMatchers (hidden)
def haveSameLinesAs[L1, L2](ls2: L2)(using evidence$3: LinesContent[L1], evidence$4: LinesContent[L2]): LinesComparisonMatcher[L1, L2]

matches if 2 contents have the same lines

matches if 2 contents have the same lines

Attributes

Inherited from:
LinesContentBaseMatchers (hidden)
def haveSameMD5: Matcher[(File, File)]

match 2 files if they have the same MD5 digest

match 2 files if they have the same MD5 digest

Attributes

Inherited from:
FilesContentMatchers
def haveSameMD5As(expected: File): Matcher[File]

match 2 files if they have the same MD5 digest

match 2 files if they have the same MD5 digest

Attributes

Inherited from:
FilesContentMatchers
def haveSamePathsAs(expectedDir: File): LocalPathsMatcher

check that all the paths in expectedDir are the same as the ones in actualDir

check that all the paths in expectedDir are the same as the ones in actualDir

Attributes

Inherited from:
FilesContentMatchers
def haveSize[T](check: ValueCheck[Int])(using evidence$10: Sized[T]): SizedCheckedMatcher[T]

match if there is a way to size T

match if there is a way to size T

Attributes

Inherited from:
TraversableBaseMatchers
def haveSize[T](n: Int)(using evidence$6: Sized[T]): SizedMatcher[T]

match if there is a way to size T

match if there is a way to size T

Attributes

Inherited from:
TraversableBaseMatchers
def length[T](check: ValueCheck[Int])(using evidence$13: Sized[T]): SizedCheckedMatcher[T]

alias for haveSize

alias for haveSize

Attributes

Inherited from:
TraversableBaseMatchers
def length[T](n: Int)(using evidence$9: Sized[T]): SizedMatcher[T]

alias for haveSize

alias for haveSize

Attributes

Inherited from:
TraversableBaseMatchers
def listPaths(list: String*): PathMatcher

matches if new File(path).list == list(files)

matches if new File(path).list == list(files)

Attributes

Inherited from:
PathMatchers
protected def mapResult(r: Result): Result

this method can be overridden to intercept a Result and modify it. It is used for example to set a stacktrace providing the location of a failure

this method can be overridden to intercept a Result and modify it. It is used for example to set a stacktrace providing the location of a failure

Attributes

Inherited from:
ResultChecks
protected def sandboxResult(r: => Result): Result

Attributes

Returns

the result without any side-effects

Inherited from:
ResultChecks
protected def setStacktrace(m: Result): Result

this method can be overridden to avoid filling-in a stacktrace indicating the location of the result

this method can be overridden to avoid filling-in a stacktrace indicating the location of the result

Attributes

Inherited from:
MatchResultStackTrace
def size[T](check: ValueCheck[Int])(using evidence$11: Sized[T]): SizedCheckedMatcher[T]

alias for haveSize

alias for haveSize

Attributes

Inherited from:
TraversableBaseMatchers
def size[T](n: Int)(using evidence$7: Sized[T]): SizedMatcher[T]

alias for haveSize

alias for haveSize

Attributes

Inherited from:
TraversableBaseMatchers
def sorted[T](using evidence$15: Ordering[T]): OrderingMatcher[T]

alias for beSorted

alias for beSorted

Attributes

Inherited from:
TraversableBaseMatchers
def theBlock(t: => Nothing): Expectable[Nothing]

Attributes

Inherited from:
ExpectationsCreation
def theValue[T](t: => T): Expectable[T]

Attributes

Inherited from:
ExpectationsCreation

Givens

Inherited givens

given functionIsValueCheck[T, R](using evidence$3: AsResult[R]): functionIsValueCheck[T, R]

a function returning an object having an AsResult instance can check a value

a function returning an object having an AsResult instance can check a value

Attributes

Inherited from:
ValueChecksLowImplicits
given matchersToValueChecks[T]: matchersToValueChecks[T]

Attributes

Inherited from:
TraversableBaseMatchersLowImplicits (hidden)
given seqToValueChecks[T](using to: T => ValueCheck[T]): seqToValueChecks[T]

Attributes

Inherited from:
TraversableBaseMatchersLowImplicits (hidden)

Extensions

Inherited extensions

extension [T](description: String)(using not: NotGiven[NoExpectationsDescription])(using evidence$2: AsResult[T])
def <==>(result: => T): Result

Attributes

Inherited from:
ExpectationsDescription
extension [T](description: String)(using not: NotGiven[NoExpectationsDescription])(using evidence$1: AsResult[T])
def ==>(result: => T): Result

Attributes

Inherited from:
ExpectationsDescription
extension (n: Int)(using not: NotGiven[NoNumberOfTimes])
def times: Times

This implicit definition allows to declare a number of times 3.times

This implicit definition allows to declare a number of times 3.times

Attributes

Inherited from:
NumberOfTimes
extension (n: Int)(using not: NotGiven[NoDifferenceFilters])
def difference: FirstDifferences

Attributes

Inherited from:
DifferenceFilters
def differences: FirstDifferences

Attributes

Inherited from:
DifferenceFilters
extension [T](t: => T)(using not: NotGiven[NoTypedEqual])(using evidence$1: Diffable[T])
def ===(other: => T): Result

equality matcher on Expectables

equality matcher on Expectables

Attributes

Inherited from:
TypedEqual
extension [T](t: => T)(using not: NotGiven[NoTypedEqual])(using evidence$2: Diffable[T])
def !==(other: => T): Result

! equality matcher on Expectables

! equality matcher on Expectables

Attributes

Inherited from:
TypedEqual
extension [T](value: => T)(using not: NotGiven[NoValueDescription])
infix def aka(alias: => String): Expectable[T]

Attributes

Returns

an expectable with an alias description

Inherited from:
ExpectationsDescription
infix def aka: Expectable[T]

Attributes

Returns

an expectable with its toString method as an alias description this is useful to preserve the original value when the matcher using it is adapting the value

Inherited from:
ExpectationsDescription
infix def as(alias: String => String): Expectable[T]

Attributes

Returns

an expectable with an alias description, after the value string

Inherited from:
ExpectationsDescription
infix def post(alias: => String): Expectable[T]

Attributes

Returns

an expectable with an alias description, after the value string

Inherited from:
ExpectationsDescription
infix def showAs(show: T => String): Expectable[T]

Attributes

Returns

an expectable with a function to show the element T

Inherited from:
ExpectationsDescription
extension [T](value: => T)(using not: NotGiven[NoValueDescription], show: T => String)
infix def showAs: Expectable[T]

Attributes

Returns

an expectable with a function to show the element T

Inherited from:
ExpectationsDescription

Implicits

Inherited implicits

implicit protected val fileContentForMatchers: LinesContent[File]

Attributes

Inherited from:
LinesContentBaseMatchers (hidden)
implicit protected def seqContentForMatchers[T, CC <: (Iterable)]: LinesContent[CC[T]]

Attributes

Inherited from:
SeqsContents (hidden)