goog.labs.testing.MatcherProvided Bygoog.labs.testing.MatcherAll Known Implementationsgoog.labs.testing.decoratormatcher.AnythingMatchergoog.labs.testing.dictionarymatcher.HasEntriesMatchergoog.labs.testing.dictionarymatcher.HasEntryMatchergoog.labs.testing.dictionarymatcher.HasKeyMatchergoog.labs.testing.dictionarymatcher.HasValueMatchergoog.labs.testing.logicmatcher.AllOfMatchergoog.labs.testing.logicmatcher.AnyOfMatchergoog.labs.testing.logicmatcher.IsNotMatchergoog.labs.testing.numbermatcher.AnyNumberMatchergoog.labs.testing.numbermatcher.CloseToMatchergoog.labs.testing.numbermatcher.EqualToMatchergoog.labs.testing.numbermatcher.GreaterThanEqualToMatchergoog.labs.testing.numbermatcher.GreaterThanMatchergoog.labs.testing.numbermatcher.LessThanEqualToMatchergoog.labs.testing.numbermatcher.LessThanMatchergoog.labs.testing.objectmatcher.AnyObjectMatchergoog.labs.testing.objectmatcher.HasPropertyMatchergoog.labs.testing.objectmatcher.InstanceOfMatchergoog.labs.testing.objectmatcher.IsNullMatchergoog.labs.testing.objectmatcher.IsNullOrUndefinedMatchergoog.labs.testing.objectmatcher.IsUndefinedMatchergoog.labs.testing.objectmatcher.ObjectEqualsMatchergoog.labs.testing.stringmatcher.AnyStringMatchergoog.labs.testing.stringmatcher.ContainsStringMatchergoog.labs.testing.stringmatcher.EndsWithMatchergoog.labs.testing.stringmatcher.EqualToIgnoringWhitespaceMatchergoog.labs.testing.stringmatcher.EqualsMatchergoog.labs.testing.stringmatcher.RegexMatchergoog.labs.testing.stringmatcher.StartsWithMatchergoog.labs.testing.stringmatcher.StringContainsInOrderMatcherA matcher object to be used in assertThat statements. VIEW SOURCEInstance Methodsexpand_morethis.describe( value, opt_description ) → stringDescribes why the matcher failed. Parametersvalue*The value that didn't match. opt_descriptionstring=A partial description to which the reason will be appended. ReturnsstringDescription of why the matcher failed. VIEW SOURCEexpand_morethis.matches( value ) → booleanDetermines whether a value matches the constraints of the match. Parametersvalue*The object to match. ReturnsbooleanWhether the input value matches this matcher. VIEW SOURCEFunctionsexpand_moreMatcher.makeMatcher( matchesFunction, opt_describeFunction ) → FunctionGenerates a Matcher from the ‘matches’ and ‘describe’ functions passed in. ParametersmatchesFunctionFunctionThe ‘matches’ function. opt_describeFunction(Function|null)=The ‘describe’ function. ReturnsFunctionThe custom matcher. VIEW SOURCE