Home
last modified time | relevance | path

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

1234567

/external/okio/okio/src/jvmMain/kotlin/okio/
DBufferedSource.kt34 @Throws(IOException::class)
37 @Throws(IOException::class)
40 @Throws(IOException::class)
43 @Throws(IOException::class)
46 @Throws(IOException::class)
49 @Throws(IOException::class)
52 @Throws(IOException::class)
55 @Throws(IOException::class)
58 @Throws(IOException::class)
61 @Throws(IOException::class)
[all …]
DBufferedSink.kt34 @Throws(IOException::class)
37 @Throws(IOException::class)
40 @Throws(IOException::class)
43 @Throws(IOException::class)
46 @Throws(IOException::class)
49 @Throws(IOException::class)
52 @Throws(IOException::class)
55 @Throws(IOException::class)
58 @Throws(IOException::class)
61 @Throws(IOException::class)
[all …]
DBuffer.kt111 @Throws(EOFException::class) in <lambda>()
145 @Throws(IOException::class) in <lambda>()
189 @Throws(IOException::class) in <lambda>()
216 @Throws(IOException::class) in <lambda>()
223 @Throws(IOException::class) in <lambda>()
230 @Throws(IOException::class) in <lambda>()
254 @Throws(EOFException::class) in <lambda>()
260 @Throws(EOFException::class) in <lambda>()
263 @Throws(EOFException::class) in <lambda>()
266 @Throws(EOFException::class) in <lambda>()
[all …]
/external/libcxx/test/std/containers/sequences/deque/deque.modifiers/
Derase_iter.pass.cpp24 struct Throws { struct
25 Throws() : v_(0) {} in Throws() function
26 Throws(int v) : v_(v) {} in Throws() argument
27 Throws(const Throws &rhs) : v_(rhs.v_) { if (sThrows) throw 1; } in Throws() argument
28 Throws( Throws &&rhs) : v_(rhs.v_) { if (sThrows) throw 1; } in Throws() function
29 Throws& operator=(const Throws &rhs) { v_ = rhs.v_; return *this; } in operator =() argument
30 Throws& operator=( Throws &&rhs) { v_ = rhs.v_; return *this; } in operator =() argument
36 bool Throws::sThrows = false; argument
116 Throws arr[] = {1, 2, 3}; in main()
117 std::deque<Throws> v(arr, arr+3); in main()
[all …]
Derase_iter_iter.pass.cpp26 struct Throws { struct
27 Throws() : v_(0) {} in Throws() function
28 Throws(int v) : v_(v) {} in Throws() function
29 Throws(const Throws &rhs) : v_(rhs.v_) { if (sThrows) throw 1; } in Throws() function
30 Throws( Throws &&rhs) : v_(rhs.v_) { if (sThrows) throw 1; } in Throws() argument
31 Throws& operator=(const Throws &rhs) { v_ = rhs.v_; return *this; } in operator =() argument
32 Throws& operator=( Throws &&rhs) { v_ = rhs.v_; return *this; } in operator =() argument
38 bool Throws::sThrows = false; argument
122 Throws arr[] = {1, 2, 3}; in main()
123 std::deque<Throws> v(arr, arr+3); in main()
[all …]
/external/libcxx/test/std/containers/sequences/vector/vector.modifiers/
Derase_iter.pass.cpp22 struct Throws { struct
23 Throws() : v_(0) {} in Throws() argument
24 Throws(int v) : v_(v) {} in Throws() argument
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() argument
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() 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
147 Throws arr[] = {1, 2, 3}; in main()
148 std::vector<Throws> v(arr, arr+3); in main()
[all …]
/external/llvm-project/libcxx/test/std/containers/sequences/deque/deque.modifiers/
Derase_iter.pass.cpp23 struct Throws { struct
24 Throws() : v_(0) {} in Throws() function
25 Throws(int v) : v_(v) {} in Throws() function
26 Throws(const Throws &rhs) : v_(rhs.v_) { if (sThrows) throw 1; } in Throws() argument
27 Throws( Throws &&rhs) : v_(rhs.v_) { if (sThrows) throw 1; } in Throws() function
28 Throws& operator=(const Throws &rhs) { v_ = rhs.v_; return *this; } in operator =() argument
29 Throws& operator=( Throws &&rhs) { v_ = rhs.v_; return *this; } in operator =() argument
35 bool Throws::sThrows = false; argument
115 Throws arr[] = {1, 2, 3}; in main()
116 std::deque<Throws> v(arr, arr+3); in main()
[all …]
Derase_iter_iter.pass.cpp25 struct Throws { struct
26 Throws() : v_(0) {} in Throws() argument
27 Throws(int v) : v_(v) {} in Throws() argument
28 Throws(const Throws &rhs) : v_(rhs.v_) { if (sThrows) throw 1; } in Throws() argument
29 Throws( Throws &&rhs) : v_(rhs.v_) { if (sThrows) throw 1; } in Throws() argument
30 Throws& operator=(const Throws &rhs) { v_ = rhs.v_; return *this; } in operator =() argument
31 Throws& operator=( Throws &&rhs) { v_ = rhs.v_; return *this; } in operator =() argument
37 bool Throws::sThrows = false; argument
121 Throws arr[] = {1, 2, 3}; in main()
122 std::deque<Throws> v(arr, arr+3); in main()
[all …]
/external/llvm-project/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() function
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() argument
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
109 Throws arr[] = {1, 2, 3}; in main()
110 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/grpc-grpc/src/csharp/Grpc.Core.Tests/
DMetadataTest.cs42 Assert.Throws(typeof(ArgumentException), () => new Metadata.Entry("abc-bin", "xyz")); in AsciiEntry()
54 Assert.Throws(typeof(InvalidOperationException), () => { var v = entry.Value; }); in BinaryEntry()
57 Assert.Throws(typeof(ArgumentException), () => new Metadata.Entry("abc", bytes)); in BinaryEntry()
71 Assert.Throws(typeof(ArgumentException), () => new Metadata.Entry("abc[", "xyz")); in AsciiEntry_KeyValidity()
72 Assert.Throws(typeof(ArgumentException), () => new Metadata.Entry("abc/", "xyz")); in AsciiEntry_KeyValidity()
78 Assert.Throws(typeof(ArgumentNullException), () => new Metadata.Entry(null, "xyz")); in Entry_ConstructionPreconditions()
79 … Assert.Throws(typeof(ArgumentNullException), () => new Metadata.Entry("abc", (string)null)); in Entry_ConstructionPreconditions()
80 … Assert.Throws(typeof(ArgumentNullException), () => new Metadata.Entry("abc-bin", (byte[])null)); in Entry_ConstructionPreconditions()
114 Assert.Throws(typeof(InvalidOperationException), () => { var v = entry.Value; }); in Entry_CreateUnsafe_Binary()
212 Assert.Throws<InvalidOperationException>(() => metadata.Insert(0, entry)); in FreezeMakesReadOnly()
[all …]
DChannelCredentialsTest.cs39 …Assert.Throws(typeof(ArgumentNullException), () => ChannelCredentials.Create(null, new FakeCallCre… in ChannelCredentials_CreateComposite()
40 …Assert.Throws(typeof(ArgumentNullException), () => ChannelCredentials.Create(new FakeChannelCreden… in ChannelCredentials_CreateComposite()
43 …Assert.Throws(typeof(ArgumentException), () => ChannelCredentials.Create(new FakeChannelCredential… in ChannelCredentials_CreateComposite()
60 var ex1 = Assert.Throws(typeof(Exception), () => creds.GetNativeCredentials()); in ChannelCredentials_CreateExceptionIsCached()
61 var ex2 = Assert.Throws(typeof(Exception), () => creds.GetNativeCredentials()); in ChannelCredentials_CreateExceptionIsCached()
DChannelOptionsTest.cs38 Assert.Throws(typeof(InvalidOperationException), () => { var s = option.StringValue; }); in IntOption()
49 Assert.Throws(typeof(InvalidOperationException), () => { var s = option.IntValue; }); in StringOption()
55 Assert.Throws(typeof(ArgumentNullException), () => { new ChannelOption(null, "abc"); }); in ConstructorPreconditions()
56 Assert.Throws(typeof(ArgumentNullException), () => { new ChannelOption(null, 1); }); in ConstructorPreconditions()
57 Assert.Throws(typeof(ArgumentNullException), () => { new ChannelOption("abc", null); }); in ConstructorPreconditions()
/external/protobuf/csharp/compatibility_tests/v3.0.0/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 …]
/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/llvm-project/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/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 …]
/external/flatbuffers/tests/FlatBuffers.Test/
DByteBufferTests.cs48 Assert.Throws<ArgumentOutOfRangeException>(() => uut.PutByte(1, 99)); in ByteBuffer_PutByteCannotPutAtOffsetPastLength()
69 Assert.Throws<ArgumentOutOfRangeException>(() => uut.PutShort(2, 99)); in ByteBuffer_PutShortCannotPutAtOffsetPastLength()
78 Assert.Throws<ArgumentOutOfRangeException>(() => uut.PutShort(0, 99)); in ByteBuffer_PutShortChecksLength()
85 Assert.Throws<ArgumentOutOfRangeException>(() => uut.PutShort(1, 99)); in ByteBuffer_PutShortChecksLengthAndOffset()
108 Assert.Throws<ArgumentOutOfRangeException>(() => uut.PutInt(2, 0x0A0B0C0D)); in ByteBuffer_PutIntCannotPutAtOffsetPastLength()
115 Assert.Throws<ArgumentOutOfRangeException>(() => uut.PutInt(0, 0x0A0B0C0D)); in ByteBuffer_PutIntChecksLength()
122 Assert.Throws<ArgumentOutOfRangeException>(() => uut.PutInt(2, 0x0A0B0C0D)); in ByteBuffer_PutIntChecksLengthAndOffset()
149 Assert.Throws<ArgumentOutOfRangeException>(() => uut.PutLong(2, 0x010203040A0B0C0D)); in ByteBuffer_PutLongCannotPutAtOffsetPastLength()
156 Assert.Throws<ArgumentOutOfRangeException>(() => uut.PutLong(0, 0x010203040A0B0C0D)); in ByteBuffer_PutLongChecksLength()
163 Assert.Throws<ArgumentOutOfRangeException>(() => uut.PutLong(2, 0x010203040A0B0C0D)); in ByteBuffer_PutLongChecksLengthAndOffset()
[all …]
/external/protobuf/csharp/src/Google.Protobuf.Test/
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()
298 Assert.Throws<InvalidProtocolBufferException>(() => cis.ReadTag()); in ReadTag_ZeroFieldRejected()
335 …Assert.Throws<InvalidProtocolBufferException>(() => TestRecursiveMessage.Parser.ParseFrom(beyondRe… in MaliciousRecursion()
338 … Assert.Throws<InvalidProtocolBufferException>(() => TestRecursiveMessage.Parser.ParseFrom(input)); in MaliciousRecursion()
348 … Assert.Throws<InvalidProtocolBufferException>(() => TestAllTypes.Parser.ParseFrom(input)); in SizeLimit()
391 Assert.Throws<InvalidProtocolBufferException>(() => input.ReadString()); in ReadNegativeSizedStringThrowsInvalidProtocolBufferException()
409 Assert.Throws<InvalidProtocolBufferException>(() => input.ReadBytes()); in ReadNegativeSizedBytesThrowsInvalidProtocolBufferException()
[all …]
DJsonParserTest.cs71 … Assert.Throws<InvalidProtocolBufferException>(() => JsonParser.Default.Parse<TestMap>(json)); in IntegerMapKeysAreStrict()
198 … Assert.Throws<InvalidProtocolBufferException>(() => TestAllTypes.Parser.ParseJson(json)); in RepeatedField_NullElementProhibited()
214 Assert.Throws<InvalidProtocolBufferException>(() => TestMap.Parser.ParseJson(json)); in MapField_NullValueProhibited()
270 … Assert.Throws<InvalidProtocolBufferException>(() => TestAllTypes.Parser.ParseJson(json)); in StringToInt32_Invalid()
291 … Assert.Throws<InvalidProtocolBufferException>(() => TestAllTypes.Parser.ParseJson(json)); in StringToUInt32_Invalid()
314 … Assert.Throws<InvalidProtocolBufferException>(() => TestAllTypes.Parser.ParseJson(json)); in StringToInt64_Invalid()
335 … Assert.Throws<InvalidProtocolBufferException>(() => TestAllTypes.Parser.ParseJson(json)); in StringToUInt64_Invalid()
388 … Assert.Throws<InvalidProtocolBufferException>(() => TestAllTypes.Parser.ParseJson(json)); in StringToDouble_Invalid()
418 … Assert.Throws<InvalidProtocolBufferException>(() => TestAllTypes.Parser.ParseJson(json)); in StringToFloat_Invalid()
453 Assert.Throws(expectedExceptionType, () => TestAllTypes.Parser.ParseJson(json)); in NumberToInt32_Invalid()
[all …]
/external/protobuf/csharp/compatibility_tests/v3.0.0/src/Google.Protobuf.Test/
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(beyondRe… 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 …]
DJsonParserTest.cs71 … Assert.Throws<InvalidProtocolBufferException>(() => JsonParser.Default.Parse<TestMap>(json)); in IntegerMapKeysAreStrict()
198 … Assert.Throws<InvalidProtocolBufferException>(() => TestAllTypes.Parser.ParseJson(json)); in RepeatedField_NullElementProhibited()
214 Assert.Throws<InvalidProtocolBufferException>(() => TestMap.Parser.ParseJson(json)); in MapField_NullValueProhibited()
270 … Assert.Throws<InvalidProtocolBufferException>(() => TestAllTypes.Parser.ParseJson(json)); in StringToInt32_Invalid()
291 … Assert.Throws<InvalidProtocolBufferException>(() => TestAllTypes.Parser.ParseJson(json)); in StringToUInt32_Invalid()
314 … Assert.Throws<InvalidProtocolBufferException>(() => TestAllTypes.Parser.ParseJson(json)); in StringToInt64_Invalid()
335 … Assert.Throws<InvalidProtocolBufferException>(() => TestAllTypes.Parser.ParseJson(json)); in StringToUInt64_Invalid()
388 … Assert.Throws<InvalidProtocolBufferException>(() => TestAllTypes.Parser.ParseJson(json)); in StringToDouble_Invalid()
418 … Assert.Throws<InvalidProtocolBufferException>(() => TestAllTypes.Parser.ParseJson(json)); in StringToFloat_Invalid()
453 Assert.Throws(expectedExceptionType, () => TestAllTypes.Parser.ParseJson(json)); in NumberToInt32_Invalid()
[all …]
/external/okio/okio/src/jvmTest/kotlin/okio/
DBufferFactory.kt36 @Throws(Exception::class)
43 @Throws(Exception::class)
54 @Throws(Exception::class)
64 @Throws(Exception::class)
/external/grpc-grpc/src/csharp/Grpc.IntegrationTesting/
DGeneratedClientTest.cs39 …Assert.Throws(typeof(NotImplementedException), () => unimplementedClient.UnaryCall(new SimpleReque… in DefaultMethodStubThrows_UnaryCall()
45 … Assert.Throws(typeof(NotImplementedException), () => unimplementedClient.StreamingInputCall()); in DefaultMethodStubThrows_ClientStreaming()
51 …Assert.Throws(typeof(NotImplementedException), () => unimplementedClient.StreamingOutputCall(new S… in DefaultMethodStubThrows_ServerStreaming()
57 … Assert.Throws(typeof(NotImplementedException), () => unimplementedClient.FullDuplexCall()); in DefaultMethodStubThrows_DuplexStreaming()

1234567