Home
last modified time | relevance | path

Searched refs:assertThrows (Results 1 – 8 of 8) sorted by relevance

/external/protobuf/js/binary/
Ddecoder_test.js86 assertThrows(function() {writeValue.call(encoder, -1);});
87 assertThrows(function() {writeValue.call(encoder, upperLimit * 1.1);});
143 assertThrows(function() {writeValue.call(encoder, lowerLimit * 1.1);});
144 assertThrows(function() {writeValue.call(encoder, upperLimit * 1.1);});
222 assertThrows(function() {decoder.readUint64()});
227 assertThrows(function() {decoder.readUnsignedVarint64()});
229 assertThrows(function() {decoder.readSignedVarint64()});
231 assertThrows(function() {decoder.readZigzagVarint64()});
236 assertThrows(function() {decoder.readUnsignedVarint32()});
239 assertThrows(function() {decoder.readUnsignedVarint32()});
[all …]
Dreader_test.js142 assertThrows(function() {
149 assertThrows(function() {reader.readFixed64()});
156 assertThrows(function() {reader.readFixed32()});
162 assertThrows(function() {reader.skipField()});
167 assertThrows(function() {reader.readInt32()});
168 assertThrows(function() {reader.readInt32String()});
169 assertThrows(function() {reader.readInt64()});
170 assertThrows(function() {reader.readInt64String()});
171 assertThrows(function() {reader.readUint32()});
172 assertThrows(function() {reader.readUint32String()});
[all …]
Dwriter_test.js50 var e = assertThrows(func);
/external/desugar/test/java/com/google/devtools/build/android/desugar/
DDesugarJava8FunctionalTest.java17 import static com.google.devtools.build.lib.testutil.MoreAsserts.assertThrows;
249 assertThrows(ClassCastException.class, () -> object.copy(Double.valueOf(1))); in testBridgeAndDefaultMethods()
263 assertThrows(ClassCastException.class, () -> top.add(new Object())); in testBridgeAndDefaultMethods()
264 assertThrows(ClassCastException.class, () -> top.add(Double.valueOf(1))); in testBridgeAndDefaultMethods()
265 assertThrows(ClassCastException.class, () -> top.add(Long.valueOf(1))); in testBridgeAndDefaultMethods()
270 assertThrows(ClassCastException.class, () -> top.add(new Object())); in testBridgeAndDefaultMethods()
271 assertThrows(ClassCastException.class, () -> top.add(Double.valueOf(1))); in testBridgeAndDefaultMethods()
272 assertThrows(ClassCastException.class, () -> top.add(Long.valueOf(1))); in testBridgeAndDefaultMethods()
277 assertThrows(ClassCastException.class, () -> levelTwo.add(Double.valueOf(1))); in testBridgeAndDefaultMethods()
278 assertThrows(ClassCastException.class, () -> levelTwo.add(Long.valueOf(1))); in testBridgeAndDefaultMethods()
[all …]
/external/desugar/test/java/com/google/devtools/build/android/desugar/runtime/
DThrowableExtensionTest.java20 import static com.google.devtools.build.lib.testutil.MoreAsserts.assertThrows;
71 assertThrows(IOException.class, () -> ThrowableExtension.closeResource(null, r)); in testCloseResourceViaReflection()
82 assertThrows(Exception.class, () -> ThrowableExtension.closeResource(new Exception(), r)); in testCloseResourceViaReflection()
140 assertThrows(IOException.class, () -> ThrowableExtension.closeResource(null, r)); in testCloseResource()
147 assertThrows(Exception.class, () -> ThrowableExtension.closeResource(suppressor, r)); in testCloseResource()
172 assertThrows(IOException.class, () -> ThrowableExtension.closeResource(null, r)); in testCloseResource()
179 assertThrows(Exception.class, () -> ThrowableExtension.closeResource(suppressor, r)); in testCloseResource()
/external/testng/src/main/java/org/testng/
DAssert.java949 public static void assertThrows(ThrowingRunnable runnable) { in assertThrows() method in Assert
950 assertThrows(Throwable.class, runnable); in assertThrows()
965 …public static <T extends Throwable> void assertThrows(Class<T> throwableClass, ThrowingRunnable ru… in assertThrows() method in Assert
/external/protobuf/js/
Dmessage_test.js511 var e = assertThrows(function() {
/external/testng/
DCHANGES.txt38 New: GITHUB-717: Add assertThrows and expectThrows (Ryan Schmitt)