The goog.labs.testing.Matcher Interface

goog.labs.testing.Matcher()

A matcher object to be used in assertThat statements. @interface

unhandled information:

type
'interface'

.describe(value, opt_description)

Describes why the matcher failed.

value {*}
The value that didn't match.
opt_description {string=}
A partial description to which the reason will be appended.
returns {string}
Description of why the matcher failed.

.matches(value)

Determines whether a value matches the constraints of the match.

value {*}
The object to match.
returns {boolean}
Whether the input value matches this matcher.