Google is committed to advancing racial equity for Black communities. See how.

VmoMatcher class

A matcher for testing the structure of Inspect data written to a VMO.

This matcher aggregates errors from attempting to access or match values stored in the VMO. The set of aggregated errors may be taken and reset using the |errors| getter for the purposes of unit testing an Inspect hierarchy.

Note that this class is not optimized for efficiency, and should only be used in tests.

Constructors

VmoMatcher (VmoHolder _holder)

Create a new matcher that matches against the given VmoHolder.

Properties

errorsList<String>

Gets the list of errors.
read-only

hashCodeint

The hash code for this object. ...
read-only, inherited

runtimeTypeType

A representation of the runtime type of the object.
read-only, inherited

Methods

node() NodeMatcher

Retrieve the root node matcher, which can be used to match against nested properties and children.

noSuchMethod(Invocation invocation) dynamic

Invoked when a non-existent method or property is accessed. ...
inherited

resetErrors() void

Resets the recorded errors from this VmoMatcher.

toString() String

Returns a string representation of this object.
inherited

Operators

operator ==(Object other) bool

The equality operator. ...
inherited