ContentMatchers

Companion
class
trait TraversableMatchers
trait NumberOfTimes
trait ImplicitParameters
trait TraversableBaseMatchersLowImplicits
trait ValueChecksLowImplicits
trait TraversableBaseMatchers
trait LinesContentBaseMatchers
trait SeqsContents
trait Expectations
trait ExpectationsDescription
trait TypedEqual
trait ExpectationsCreation
trait ResultChecks
trait MatchResultStackTrace
trait DifferenceFilters
class Object
trait Matchable
class Any

Type members

Inherited classlikes

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

Matcher to compare the contents of line contents

Matcher to compare the contents of line contents

Inherited from
LinesContentBaseMatchers
case class LinesPairComparisonMatcher[L1, L2](all: Boolean, ordered: Boolean, colors: Boolean, filter: DifferenceFilter)(using evidence$9: LinesContent[L1], evidence$10: LinesContent[L2])
case class LocalFilesContentMatcher(expectedDir: File, filter: File => Boolean, filesMatcher: Matcher[(File, File)])
Inherited from
FilesContentMatchers
case class LocalPathsAndFilesContentMatcher(expectedDir: File, filter: File => Boolean, filesMatcher: Matcher[(File, File)])
Inherited from
FilesContentMatchers
case class LocalPathsMatcher(expectedDir: File, filter: File => Boolean)
Inherited from
FilesContentMatchers

Value members

Inherited methods

def allOf[T](checks: ValueCheck[T]*): ContainWithResultSeq[T]
Inherited from
TraversableBaseMatchers
def atLeast[T](checks: ValueCheck[T]*): ContainWithResultSeq[T]
Inherited from
TraversableBaseMatchers
def atMost[T](checks: ValueCheck[T]*): ContainWithResultSeq[T]
Inherited from
TraversableBaseMatchers
def beADirectory: Matcher[HasPath]

matches if file.isDirectory

matches if file.isDirectory

Inherited from
FileMatchers
def beADirectoryPath: PathMatcher

matches if new File(path).isDirectory

matches if new File(path).isDirectory

Inherited from
PathMatchers
def beAFile: Matcher[HasPath]

matches if file.isFile

matches if file.isFile

Inherited from
FileMatchers
def beAFilePath: PathMatcher

matches if new File(path).isFile

matches if new File(path).isFile

Inherited from
PathMatchers
def beAHiddenPath: PathMatcher

matches if new File(path).isHidden

matches if new File(path).isHidden

Inherited from
PathMatchers
def beAReadablePath: PathMatcher

matches if new File(path).canRead

matches if new File(path).canRead

Inherited from
PathMatchers
def beAWritablePath: PathMatcher

matches if new File(path).canWrite

matches if new File(path).canWrite

Inherited from
PathMatchers
def beAbsolute: Matcher[HasPath]

matches if file.isAbsolute

matches if file.isAbsolute

Inherited from
FileMatchers
def beAnAbsolutePath: PathMatcher

matches if new File(path).isAbsolute

matches if new File(path).isAbsolute

Inherited from
PathMatchers
def beAnExistingPath: PathMatcher

matches if new File(path).exists

matches if new File(path).exists

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

Inherited from
PathMatchers
def beHidden: Matcher[HasPath]

matches if file.isHidden

matches if file.isHidden

Inherited from
FileMatchers
def beReadable: Matcher[HasPath]

matches if file.canRead

matches if file.canRead

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

a matcher checking if the elements are ordered

Inherited from
TraversableBaseMatchers
def beWritable: Matcher[HasPath]

matches if file.canWrite

matches if file.canWrite

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

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]
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]
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]
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]
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]
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]
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]
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]
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]
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]
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]
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]
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]
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]
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]
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]
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]
Inherited from
TraversableBaseMatchers
def contain[T](t1: ValueCheck[T], t2: ValueCheck[T], t3: ValueCheck[T], t4: ValueCheck[T], t5: ValueCheck[T]): ContainWithResultSeq[T]
Inherited from
TraversableBaseMatchers
def contain[T](t1: ValueCheck[T], t2: ValueCheck[T], t3: ValueCheck[T], t4: ValueCheck[T]): ContainWithResultSeq[T]
Inherited from
TraversableBaseMatchers
def contain[T](t1: ValueCheck[T], t2: ValueCheck[T], t3: ValueCheck[T]): ContainWithResultSeq[T]
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

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

COLLECTION MATCHERS

COLLECTION MATCHERS

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

ELEMENTS MATCHERS

ELEMENTS MATCHERS

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)

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)

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

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

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

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

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)

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

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

an Expectable with a description function

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

an Expectable with a description

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

an Expectable

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

an Expectable with a description function

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

an Expectable with a function to show the element T

Inherited from
ExpectationsCreation
def eachOf[T](checks: ValueCheck[T]*): ContainWithResultSeq[T]
Inherited from
TraversableBaseMatchers
def exactly[T](checks: ValueCheck[T]*): ContainWithResultSeq[T]
Inherited from
TraversableBaseMatchers
def exist: Matcher[HasPath]

matches if file.exists

matches if file.exists

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

matches if file.getAbsolutePath == path

matches if file.getAbsolutePath == path

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

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

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

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

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

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

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

matches if file.getCanonicalPath == path

matches if file.getCanonicalPath == path

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

alias for haveSize

alias for haveSize

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

alias for haveSize

alias for haveSize

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

matches if file.list == list

matches if file.list == list

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

matches if file.getName == name

matches if file.getName == name

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

matches if file.getParent == path

matches if file.getParent == path

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

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

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

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

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

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

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

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

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

Inherited from
LinesContentBaseMatchers
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

Inherited from
LinesContentBaseMatchers
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

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

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

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

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

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

alias for haveSize

alias for haveSize

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

alias for haveSize

alias for haveSize

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

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

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

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

Inherited from
ResultChecks
protected def sandboxResult(r: => Result): Result
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

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

alias for haveSize

alias for haveSize

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

alias for haveSize

alias for haveSize

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

alias for beSorted

alias for beSorted

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

Inherited fields

Inherited from
ImplicitParameters
Inherited from
ImplicitParameters
Inherited from
ImplicitParameters
Inherited from
ImplicitParameters
Inherited from
ImplicitParameters
Inherited from
ImplicitParameters
Inherited from
ImplicitParameters
Inherited from
ImplicitParameters
Inherited from
ImplicitParameters
Inherited from
ImplicitParameters
Inherited from
ImplicitParameters

Givens

Inherited givens

given functionIsValueCheck[T, R]: Conversion[T => R, ValueCheck[T]]

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

Inherited from
ValueChecksLowImplicits
given matchersToValueChecks[T]: Conversion[Seq[Matcher[T]], Seq[ValueCheck[T]]]
given seqToValueChecks[T](using val to: T => ValueCheck[T]): Conversion[Seq[T], Seq[ValueCheck[T]]]

Extensions

Inherited extensions

extension (description: String)
def <==>[T](using not: NotGiven[NoExpectationsDescription])(result: => T)(using evidence$2: AsResult[T]): Result
Inherited from
ExpectationsDescription
def ==>[T](using not: NotGiven[NoExpectationsDescription])(result: => T)(using evidence$1: AsResult[T]): Result
Inherited from
ExpectationsDescription
extension (n: Int)
def times(using not: NotGiven[NoNumberOfTimes]): 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

Inherited from
NumberOfTimes
extension (n: Int)
def difference(using not: NotGiven[NoDifferenceFilters]): FirstDifferences
Inherited from
DifferenceFilters
def differences(using not: NotGiven[NoDifferenceFilters]): FirstDifferences
Inherited from
DifferenceFilters
extension (t: => T)
def !==[T](using not: NotGiven[NoTypedEqual])(other: => T)(using evidence$2: Diffable[T]): Result

! equality matcher on Expectables

! equality matcher on Expectables

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

equality matcher on Expectables

equality matcher on Expectables

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

an expectable with a function to show the element T

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

an expectable with an alias description

Inherited from
ExpectationsDescription
def aka[T](using not: NotGiven[NoValueDescription]): Expectable[T]
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
def as[T](using not: NotGiven[NoValueDescription])(alias: String => String): Expectable[T]
Returns

an expectable with an alias description, after the value string

Inherited from
ExpectationsDescription
def post[T](using not: NotGiven[NoValueDescription])(alias: => String): Expectable[T]
Returns

an expectable with an alias description, after the value string

Inherited from
ExpectationsDescription
def showAs[T](using not: NotGiven[NoValueDescription])(show: T => String, p: ImplicitParam): Expectable[T]
Returns

an expectable with a function to show the element T

Inherited from
ExpectationsDescription

Implicits

Inherited implicits

implicit protected val fileContentForMatchers: LinesContent[File]
Inherited from
LinesContentBaseMatchers
implicit protected def seqContentForMatchers[T, CC <: ([_] =>> Iterable[_])]: LinesContent[CC[T]]
Inherited from
SeqsContents