Home
last modified time | relevance | path

Searched refs:Throws (Results 1 – 25 of 41) sorted by relevance

12

/external/libcxx/test/std/containers/sequences/vector/vector.modifiers/
Derase_iter.pass.cpp22 struct Throws { struct
23 Throws() : v_(0) {} in Throws() function
24 Throws(int v) : v_(v) {} in Throws() argument
25 Throws(const Throws &rhs) : v_(rhs.v_) { if (sThrows) throw 1; } in Throws() function
26 Throws( Throws &&rhs) : v_(rhs.v_) { if (sThrows) throw 1; } in Throws() function
27 Throws& operator=(const Throws &rhs) { v_ = rhs.v_; return *this; } in operator =() argument
28 Throws& operator=( Throws &&rhs) { v_ = rhs.v_; return *this; } in operator =() argument
33 bool Throws::sThrows = false; argument
94 Throws arr[] = {1, 2, 3}; in main()
95 std::vector<Throws> v(arr, arr+3); in main()
[all …]
Derase_iter_iter.pass.cpp22 struct Throws { struct
23 Throws() : v_(0) {} in Throws() argument
24 Throws(int v) : v_(v) {} in Throws() function
25 Throws(const Throws &rhs) : v_(rhs.v_) { if (sThrows) throw 1; } in Throws() argument
26 Throws( Throws &&rhs) : v_(rhs.v_) { if (sThrows) throw 1; } in Throws() function
27 Throws& operator=(const Throws &rhs) { v_ = rhs.v_; return *this; } in operator =() argument
28 Throws& operator=( Throws &&rhs) { v_ = rhs.v_; return *this; } in operator =() argument
33 bool Throws::sThrows = false; argument
147 Throws arr[] = {1, 2, 3}; in main()
148 std::vector<Throws> v(arr, arr+3); in main()
[all …]
/external/protobuf/csharp/src/Google.Protobuf.Test/Collections/
DMapFieldTest.cs70 Assert.Throws<ArgumentNullException>(() => map.Add(0, nullValue)); in TestNullValues()
71 Assert.Throws<ArgumentNullException>(() => map[0] = nullValue); in TestNullValues()
80 Assert.Throws<ArgumentNullException>(() => map.Add(null, new ForeignMessage())); in Add_ForbidsNullKeys()
87 Assert.Throws<ArgumentNullException>(() => map[null] = new ForeignMessage()); in Indexer_ForbidsNullKeys()
187 Assert.Throws<ArgumentException>(() => map.Add("foo", "baz")); in Add_KeyAlreadyExists()
197 Assert.Throws<ArgumentException>(() => collection.Add(NewKeyValuePair("x", "z"))); in Add_Pair()
220 Assert.Throws<ArgumentNullException>(() => map.Remove(null)); in Remove_Key()
236 …Assert.Throws<ArgumentException>(() => collection.Remove(new KeyValuePair<string, string>(null, ""… in Remove_Pair()
266 Assert.Throws<KeyNotFoundException>(() => { var ignored = map["z"]; }); in Indexer_Get()
318 Assert.Throws<ArgumentException>(() => dictionary.Add("a", "duplicate")); in IDictionary_Add()
[all …]
DRepeatedFieldTest.cs51 Assert.Throws<ArgumentNullException>(() => list.Add((string)null)); in NullValuesRejected()
52 Assert.Throws<ArgumentNullException>(() => list.Add((IEnumerable<string>)null)); in NullValuesRejected()
53 Assert.Throws<ArgumentNullException>(() => list.Add((RepeatedField<string>)null)); in NullValuesRejected()
54 Assert.Throws<ArgumentNullException>(() => list.Contains(null)); in NullValuesRejected()
55 Assert.Throws<ArgumentNullException>(() => list.IndexOf(null)); in NullValuesRejected()
104 Assert.Throws<ArgumentOutOfRangeException>(() => list.RemoveAt(-1)); in RemoveAt_Invalid()
105 Assert.Throws<ArgumentOutOfRangeException>(() => list.RemoveAt(3)); in RemoveAt_Invalid()
124 Assert.Throws<ArgumentOutOfRangeException>(() => list.Insert(-1, "foo")); in Insert_Invalid()
125 Assert.Throws<ArgumentOutOfRangeException>(() => list.Insert(3, "foo")); in Insert_Invalid()
126 Assert.Throws<ArgumentNullException>(() => list.Insert(0, null)); in Insert_Invalid()
[all …]
/external/flatbuffers/tests/FlatBuffers.Test/
DByteBufferTests.cs49 Assert.Throws<ArgumentOutOfRangeException>(() => uut.PutByte(1, 99)); in ByteBuffer_PutByteCannotPutAtOffsetPastLength()
71 Assert.Throws<ArgumentOutOfRangeException>(() => uut.PutShort(2, 99)); in ByteBuffer_PutShortCannotPutAtOffsetPastLength()
81 Assert.Throws<ArgumentOutOfRangeException>(() => uut.PutShort(0, 99)); in ByteBuffer_PutShortChecksLength()
89 Assert.Throws<ArgumentOutOfRangeException>(() => uut.PutShort(1, 99)); in ByteBuffer_PutShortChecksLengthAndOffset()
113 Assert.Throws<ArgumentOutOfRangeException>(() => uut.PutInt(2, 0x0A0B0C0D)); in ByteBuffer_PutIntCannotPutAtOffsetPastLength()
121 Assert.Throws<ArgumentOutOfRangeException>(() => uut.PutInt(0, 0x0A0B0C0D)); in ByteBuffer_PutIntChecksLength()
129 Assert.Throws<ArgumentOutOfRangeException>(() => uut.PutInt(2, 0x0A0B0C0D)); in ByteBuffer_PutIntChecksLengthAndOffset()
157 Assert.Throws<ArgumentOutOfRangeException>(() => uut.PutLong(2, 0x010203040A0B0C0D)); in ByteBuffer_PutLongCannotPutAtOffsetPastLength()
165 Assert.Throws<ArgumentOutOfRangeException>(() => uut.PutLong(0, 0x010203040A0B0C0D)); in ByteBuffer_PutLongChecksLength()
173 Assert.Throws<ArgumentOutOfRangeException>(() => uut.PutLong(2, 0x010203040A0B0C0D)); in ByteBuffer_PutLongChecksLengthAndOffset()
[all …]
DAssert.cs118 public static void Throws<T>(Action action) where T : Exception
/external/clang/test/CodeGenCXX/
Dnew-array-init-exceptions.cpp4 struct Throws { struct
5 Throws(int);
6 Throws();
7 ~Throws();
20 new Throws[n] { 1, 2, 3 }; in cleanup()
36 new Throws[3] { 1, 2, 3 }; in cleanup()
/external/protobuf/csharp/src/Google.Protobuf.Test/
DJsonParserTest.cs71 … Assert.Throws<InvalidProtocolBufferException>(() => JsonParser.Default.Parse<TestMap>(json)); in IntegerMapKeysAreStrict()
195 … Assert.Throws<InvalidProtocolBufferException>(() => TestAllTypes.Parser.ParseJson(json)); in RepeatedField_NullElementProhibited()
211 Assert.Throws<InvalidProtocolBufferException>(() => TestMap.Parser.ParseJson(json)); in MapField_NullValueProhibited()
267 … Assert.Throws<InvalidProtocolBufferException>(() => TestAllTypes.Parser.ParseJson(json)); in StringToInt32_Invalid()
288 … Assert.Throws<InvalidProtocolBufferException>(() => TestAllTypes.Parser.ParseJson(json)); in StringToUInt32_Invalid()
311 … Assert.Throws<InvalidProtocolBufferException>(() => TestAllTypes.Parser.ParseJson(json)); in StringToInt64_Invalid()
332 … Assert.Throws<InvalidProtocolBufferException>(() => TestAllTypes.Parser.ParseJson(json)); in StringToUInt64_Invalid()
385 … Assert.Throws<InvalidProtocolBufferException>(() => TestAllTypes.Parser.ParseJson(json)); in StringToDouble_Invalid()
415 … Assert.Throws<InvalidProtocolBufferException>(() => TestAllTypes.Parser.ParseJson(json)); in StringToFloat_Invalid()
450 Assert.Throws(expectedExceptionType, () => TestAllTypes.Parser.ParseJson(json)); in NumberToInt32_Invalid()
[all …]
DCodedInputStreamTest.cs99 … var exception = Assert.Throws<InvalidProtocolBufferException>(() => input.ReadRawVarint32()); in AssertReadVarintFailure()
103 … exception = Assert.Throws<InvalidProtocolBufferException>(() => input.ReadRawVarint64()); in AssertReadVarintFailure()
107 …exception = Assert.Throws<InvalidProtocolBufferException>(() => CodedInputStream.ReadRawVarint32(n… in AssertReadVarintFailure()
284 Assert.Throws<InvalidProtocolBufferException>(() => input.ReadBytes()); in ReadMaliciouslyLargeBlob()
321 …Assert.Throws<InvalidProtocolBufferException>(() => TestRecursiveMessage.Parser.ParseFrom(data65)); in MaliciousRecursion()
324 … Assert.Throws<InvalidProtocolBufferException>(() => TestRecursiveMessage.Parser.ParseFrom(input)); in MaliciousRecursion()
334 … Assert.Throws<InvalidProtocolBufferException>(() => TestAllTypes.Parser.ParseFrom(input)); in SizeLimit()
422 Assert.Throws<InvalidProtocolBufferException>(() => input.ReadTag()); in Tag0Throws()
498 Assert.Throws<InvalidProtocolBufferException>(input.SkipLastField); in SkipGroup_WrongEndGroupTag()
515 Assert.Throws<InvalidProtocolBufferException>(input.SkipLastField); in RogueEndGroupTag()
[all …]
DJsonFormatterTest.cs220 Assert.Throws<ArgumentException>(() => JsonFormatter.Default.Format(message)); in InvalidSurrogatePairsFail()
224 Assert.Throws<ArgumentException>(() => JsonFormatter.Default.Format(message)); in InvalidSurrogatePairsFail()
355 Assert.Throws<InvalidOperationException>(() => JsonFormatter.Default.Format(timestamp)); in TimestampStandalone_NonNormalized()
401 Assert.Throws<InvalidOperationException>(() => JsonFormatter.Default.Format(duration)); in DurationStandalone_NonNormalized()
436 Assert.Throws<InvalidOperationException>(() => JsonFormatter.Default.Format(mask)); in FieldMaskInvalid()
512 Assert.Throws<InvalidOperationException>(() => JsonFormatter.Default.Format(any)); in AnyUnknownType()
DJsonTokenizerTest.cs282 Assert.Throws<InvalidJsonException>(() => tokenizer.Next()); in InvalidStructure()
339 Assert.Throws<InvalidOperationException>(() => tokenizer.Next()); in NextAfterEndDocumentThrows()
350 Assert.Throws<InvalidOperationException>(() => tokenizer.Next()); in CanPushBackEndDocument()
405 Assert.Throws<InvalidJsonException>(() => tokenizer.Next()); in AssertThrowsAfter()
DGeneratedMessageTest.cs120 Assert.Throws<ArgumentNullException>(() => message.SingleString = null); in NullStringAndBytesRejected()
121 Assert.Throws<ArgumentNullException>(() => message.OneofString = null); in NullStringAndBytesRejected()
122 Assert.Throws<ArgumentNullException>(() => message.SingleBytes = null); in NullStringAndBytesRejected()
123 Assert.Throws<ArgumentNullException>(() => message.OneofBytes = null); in NullStringAndBytesRejected()
674 … Assert.Throws<InvalidProtocolBufferException>(() => TestAllTypes.Parser.ParseFrom(data)); in TruncatedMessageFieldThrows()
695 … Assert.Throws<InvalidProtocolBufferException>(() => TestAllTypes.Parser.ParseFrom(stream)); in ExtraEndGroupThrows()
/external/flatbuffers/tests/
DphpTest.php349 $assert->Throws(new OutOfRangeException(), function() use ($uut) {
373 $assert->Throws(new OutOfRangeException(), function() use ($uut) {
380 $assert->Throws(new OutOfRangeException(), function() use ($uut) {
387 $assert->Throws(new OutOfRangeException(), function() use ($uut) {
411 $assert->Throws(new OutOfRangeException(), function() use ($uut) {
418 $assert->Throws(new OutOfRangeException(), function() use ($uut) {
425 $assert->Throws(new OutOfRangeException(), function() use ($uut) {
446 $assert->Throws(new OutOfRangeException(), function() use ($uut) {
453 $assert->Throws(new OutOfRangeException(), function() use ($uut) {
461 $assert->Throws(new OutOfRangeException(), function() use ($uut) {
[all …]
DphpUnionVectorTest.php34 public function Throws($class, Callable $callback) { function in Assert
/external/protobuf/csharp/src/Google.Protobuf.Test/Reflection/
DFieldAccessTest.cs154 …Assert.Throws<InvalidCastException>(() => fields[TestAllTypes.SingleBoolFieldNumber].Accessor.SetV… in SetValue_SingleFields_WrongType()
162 …Assert.Throws<InvalidOperationException>(() => fields[TestMap.MapStringStringFieldNumber].Accessor… in SetValue_MapFields()
170 …Assert.Throws<InvalidOperationException>(() => fields[TestAllTypes.RepeatedDoubleFieldNumber].Acce… in SetValue_RepeatedFields()
178 …Assert.Throws<InvalidCastException>(() => fields[TestAllTypes.SingleBoolFieldNumber].Accessor.GetV… in GetValue_IncorrectType()
214 Assert.Throws<KeyNotFoundException>(() => descriptor.Fields[999999].ToString()); in FieldDescriptor_NotFound()
215 Assert.Throws<KeyNotFoundException>(() => descriptor.Fields["not found"].ToString()); in FieldDescriptor_NotFound()
/external/protobuf/csharp/src/Google.Protobuf.Test/WellKnownTypes/
DWrappersTest.cs122 Assert.Throws<ArgumentNullException>(() => message.BoolField.Add((bool?) null)); in RepeatedWrappersProhibitNullItems()
123 Assert.Throws<ArgumentNullException>(() => message.Int32Field.Add((int?) null)); in RepeatedWrappersProhibitNullItems()
124 Assert.Throws<ArgumentNullException>(() => message.StringField.Add((string) null)); in RepeatedWrappersProhibitNullItems()
125 Assert.Throws<ArgumentNullException>(() => message.BytesField.Add((ByteString) null)); in RepeatedWrappersProhibitNullItems()
DAnyTest.cs72 Assert.Throws<InvalidProtocolBufferException>(() => any.Unpack<TestOneof>()); in Unpack_WrongType()
DTimestampTest.cs72 Assert.Throws<InvalidOperationException>(() => value.ToDateTime()); in ToDateTime_OutOfRange()
DDurationTest.cs109 Assert.Throws<InvalidOperationException>(() => duration.ToTimeSpan()); in ToTimeSpan_Invalid()
/external/llvm/include/llvm/IR/
DIntrinsics.td49 // Throws - This intrinsic can throw.
50 def Throws : IntrinsicProperty;
572 [Throws]>;
577 [Throws]>;
582 [Throws]>;
592 [Throws]>;
611 [Throws]>;
615 [Throws]>;
DIntrinsicsHexagon.td474 [IntrNoMem, Throws]>;
530 [IntrNoMem, Throws]>;
537 [IntrNoMem, Throws]>;
544 [IntrNoMem, Throws]>;
559 [IntrNoMem, Throws]>;
568 [IntrNoMem, Throws]>;
583 [IntrNoMem, Throws]>;
611 [IntrNoMem, Throws]>;
618 [IntrNoMem, Throws]>;
625 [IntrNoMem, Throws]>;
[all …]
DIntrinsicsSystemZ.td211 [IntrNoReturn, Throws]>;
/external/protobuf/csharp/src/Google.Protobuf.Test/Compatibility/
DTypeExtensionsTest.cs130 Assert.Throws<AmbiguousMatchException>(() => TypeExtensions.GetMethod(type, name)); in GetMethod_Ambiguous()
/external/swiftshader/third_party/LLVM/include/llvm/
DIntrinsics.td50 // Throws - This intrinsic can throw.
51 def Throws : IntrinsicProperty;
310 def int_eh_resume : Intrinsic<[], [llvm_ptr_ty, llvm_i32_ty], [Throws]>;
/external/clang/include/clang/AST/
DCommentCommands.td113 def Throws : BlockCommand<"throws"> { let IsThrowsCommand = 1; }

12