Class Asserts
java.lang.Object
com.google.javascript.rhino.testing.Asserts
Helper methods for making assertions about the validity of types.
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidFor the given equivalent types, run all type operations that should have trivial solutions (getGreatestSubtype, isEquivalentTo, etc)static JSTypeassertResolvesToSame(JSType type) assertTypeCollectionEquals(Iterable<T> a, Iterable<S> b) static voidassertTypeEquals(JSType a, JSType b) static voidassertTypeEquals(String message, JSType a, JSType b) static voidassertTypeNotEquals(JSType a, JSType b) static voidassertTypeNotEquals(String message, JSType a, JSType b) static JSTypeassertValidResolve(JSType type) static JSTypeassertValidResolve(JSType type, StaticScope<JSType> scope)
-
Method Details
-
assertResolvesToSame
-
assertValidResolve
- Returns:
- The resolved type
-
assertValidResolve
- Returns:
- The resolved type
-
assertTypeNotEquals
-
assertTypeNotEquals
-
assertTypeEquals
-
assertTypeEquals
-
assertTypeCollectionEquals
-
assertEquivalenceOperations
For the given equivalent types, run all type operations that should have trivial solutions (getGreatestSubtype, isEquivalentTo, etc)
-