public class Asserts
extends java.lang.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(java.lang.Iterable<T> a,
java.lang.Iterable<S> b) |
static void |
assertTypeEquals(JSType a,
JSType b) |
static void |
assertTypeEquals(java.lang.String message,
JSType a,
JSType b) |
static void |
assertTypeNotEquals(JSType a,
JSType b) |
static void |
assertTypeNotEquals(java.lang.String message,
JSType a,
JSType b) |
static JSType |
assertValidResolve(JSType type) |
static JSType |
assertValidResolve(JSType type,
StaticScope<JSType> scope) |
public static JSType assertValidResolve(JSType type, StaticScope<JSType> scope)
public static void assertTypeNotEquals(java.lang.String message, JSType a, JSType b)
public static <T extends JSType,S extends JSType> void assertTypeCollectionEquals(java.lang.Iterable<T> a, java.lang.Iterable<S> b)