public class Asserts extends Object
Modifier and Type | Method and Description |
---|---|
static void |
assertEquivalenceOperations(JSType a,
JSType b)
For the given equivalent types, run all type operations that
should have trivial solutions (getGreatestSubtype, isEquivalentTo, etc)
|
static JSType |
assertResolvesToSame(JSType type) |
static <T extends JSType,S extends JSType> |
assertTypeCollectionEquals(Iterable<T> a,
Iterable<S> b) |
static void |
assertTypeEquals(JSType a,
JSType b) |
static void |
assertTypeEquals(String message,
JSType a,
JSType b) |
static void |
assertTypeNotEquals(JSType a,
JSType b) |
static void |
assertTypeNotEquals(String message,
JSType a,
JSType b) |
static JSType |
assertValidResolve(JSType type) |
static JSType |
assertValidResolve(JSType type,
StaticScope<JSType> scope) |