| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212 |
- #if !canImport(ObjectiveC)
- import XCTest
- extension ClientThrowingWhenServerReturningErrorTests {
- // DO NOT MODIFY: This is autogenerated, use:
- // `swift test --generate-linuxmain`
- // to regenerate.
- static let __allTests__ClientThrowingWhenServerReturningErrorTests = [
- ("testBidirectionalStreaming", testBidirectionalStreaming),
- ("testClientStreaming", testClientStreaming),
- ("testServerStreaming", testServerStreaming),
- ("testUnary", testUnary),
- ]
- }
- extension GRPCChannelHandlerTests {
- // DO NOT MODIFY: This is autogenerated, use:
- // `swift test --generate-linuxmain`
- // to regenerate.
- static let __allTests__GRPCChannelHandlerTests = [
- ("testImplementedMethodReturnsHeadersMessageAndStatus", testImplementedMethodReturnsHeadersMessageAndStatus),
- ("testImplementedMethodReturnsStatusForBadlyFormedProto", testImplementedMethodReturnsStatusForBadlyFormedProto),
- ("testUnimplementedMethodReturnsUnimplementedStatus", testUnimplementedMethodReturnsUnimplementedStatus),
- ]
- }
- extension HTTP1ToRawGRPCServerCodecTests {
- // DO NOT MODIFY: This is autogenerated, use:
- // `swift test --generate-linuxmain`
- // to regenerate.
- static let __allTests__HTTP1ToRawGRPCServerCodecTests = [
- ("testInternalErrorStatusIsReturnedIfMessageCannotBeDeserialized", testInternalErrorStatusIsReturnedIfMessageCannotBeDeserialized),
- ("testInternalErrorStatusIsReturnedWhenSendingTrailersInRequest", testInternalErrorStatusIsReturnedWhenSendingTrailersInRequest),
- ("testInternalErrorStatusReturnedWhenCompressionFlagIsSet", testInternalErrorStatusReturnedWhenCompressionFlagIsSet),
- ("testMessageCanBeSentAcrossMultipleByteBuffers", testMessageCanBeSentAcrossMultipleByteBuffers),
- ("testOnlyOneStatusIsReturned", testOnlyOneStatusIsReturned),
- ]
- }
- extension LengthPrefixedMessageReaderTests {
- // DO NOT MODIFY: This is autogenerated, use:
- // `swift test --generate-linuxmain`
- // to regenerate.
- static let __allTests__LengthPrefixedMessageReaderTests = [
- ("testAppendReadsAllBytes", testAppendReadsAllBytes),
- ("testNextMessageDeliveredAcrossMultipleByteBuffers", testNextMessageDeliveredAcrossMultipleByteBuffers),
- ("testNextMessageDoesNotThrowWhenCompressionFlagIsExpectedButNotSet", testNextMessageDoesNotThrowWhenCompressionFlagIsExpectedButNotSet),
- ("testNextMessageReturnsMessageForZeroLengthMessage", testNextMessageReturnsMessageForZeroLengthMessage),
- ("testNextMessageReturnsMessageIsAppendedInOneBuffer", testNextMessageReturnsMessageIsAppendedInOneBuffer),
- ("testNextMessageReturnsNilWhenNoBytesAppended", testNextMessageReturnsNilWhenNoBytesAppended),
- ("testNextMessageReturnsNilWhenNoMessageBytesAreAvailable", testNextMessageReturnsNilWhenNoMessageBytesAreAvailable),
- ("testNextMessageReturnsNilWhenNoMessageLengthIsAvailable", testNextMessageReturnsNilWhenNoMessageLengthIsAvailable),
- ("testNextMessageReturnsNilWhenNotAllMessageBytesAreAvailable", testNextMessageReturnsNilWhenNotAllMessageBytesAreAvailable),
- ("testNextMessageReturnsNilWhenNotAllMessageLengthIsAvailable", testNextMessageReturnsNilWhenNotAllMessageLengthIsAvailable),
- ("testNextMessageThrowsWhenCompressionFlagIsSetButNotExpected", testNextMessageThrowsWhenCompressionFlagIsSetButNotExpected),
- ("testNextMessageThrowsWhenCompressionMechanismIsNotSupported", testNextMessageThrowsWhenCompressionMechanismIsNotSupported),
- ("testNextMessageWhenMultipleMessagesAreBuffered", testNextMessageWhenMultipleMessagesAreBuffered),
- ]
- }
- extension NIOClientCancellingTests {
- // DO NOT MODIFY: This is autogenerated, use:
- // `swift test --generate-linuxmain`
- // to regenerate.
- static let __allTests__NIOClientCancellingTests = [
- ("testBidirectionalStreaming", testBidirectionalStreaming),
- ("testClientStreaming", testClientStreaming),
- ("testServerStreaming", testServerStreaming),
- ("testUnary", testUnary),
- ]
- }
- extension NIOClientTimeoutTests {
- // DO NOT MODIFY: This is autogenerated, use:
- // `swift test --generate-linuxmain`
- // to regenerate.
- static let __allTests__NIOClientTimeoutTests = [
- ("testBidirectionalStreamingTimeoutAfterSending", testBidirectionalStreamingTimeoutAfterSending),
- ("testBidirectionalStreamingTimeoutBeforeSending", testBidirectionalStreamingTimeoutBeforeSending),
- ("testClientStreamingTimeoutAfterSending", testClientStreamingTimeoutAfterSending),
- ("testClientStreamingTimeoutBeforeSending", testClientStreamingTimeoutBeforeSending),
- ("testServerStreamingTimeoutAfterSending", testServerStreamingTimeoutAfterSending),
- ("testUnaryTimeoutAfterSending", testUnaryTimeoutAfterSending),
- ]
- }
- extension NIOFunctionalTestsAnonymousClient {
- // DO NOT MODIFY: This is autogenerated, use:
- // `swift test --generate-linuxmain`
- // to regenerate.
- static let __allTests__NIOFunctionalTestsAnonymousClient = [
- ("testBidirectionalStreamingBatched", testBidirectionalStreamingBatched),
- ("testBidirectionalStreamingLotsOfMessagesBatched", testBidirectionalStreamingLotsOfMessagesBatched),
- ("testBidirectionalStreamingLotsOfMessagesPingPong", testBidirectionalStreamingLotsOfMessagesPingPong),
- ("testBidirectionalStreamingPingPong", testBidirectionalStreamingPingPong),
- ("testClientStreaming", testClientStreaming),
- ("testClientStreamingLotsOfMessages", testClientStreamingLotsOfMessages),
- ("testServerStreaming", testServerStreaming),
- ("testServerStreamingLotsOfMessages", testServerStreamingLotsOfMessages),
- ("testUnary", testUnary),
- ("testUnaryEmptyRequest", testUnaryEmptyRequest),
- ("testUnaryLotsOfRequests", testUnaryLotsOfRequests),
- ("testUnaryWithLargeData", testUnaryWithLargeData),
- ]
- }
- extension NIOFunctionalTestsInsecureTransport {
- // DO NOT MODIFY: This is autogenerated, use:
- // `swift test --generate-linuxmain`
- // to regenerate.
- static let __allTests__NIOFunctionalTestsInsecureTransport = [
- ("testBidirectionalStreamingBatched", testBidirectionalStreamingBatched),
- ("testBidirectionalStreamingLotsOfMessagesBatched", testBidirectionalStreamingLotsOfMessagesBatched),
- ("testBidirectionalStreamingLotsOfMessagesPingPong", testBidirectionalStreamingLotsOfMessagesPingPong),
- ("testBidirectionalStreamingPingPong", testBidirectionalStreamingPingPong),
- ("testClientStreaming", testClientStreaming),
- ("testClientStreamingLotsOfMessages", testClientStreamingLotsOfMessages),
- ("testServerStreaming", testServerStreaming),
- ("testServerStreamingLotsOfMessages", testServerStreamingLotsOfMessages),
- ("testUnary", testUnary),
- ("testUnaryEmptyRequest", testUnaryEmptyRequest),
- ("testUnaryLotsOfRequests", testUnaryLotsOfRequests),
- ("testUnaryWithLargeData", testUnaryWithLargeData),
- ]
- }
- extension NIOFunctionalTestsMutualAuthentication {
- // DO NOT MODIFY: This is autogenerated, use:
- // `swift test --generate-linuxmain`
- // to regenerate.
- static let __allTests__NIOFunctionalTestsMutualAuthentication = [
- ("testBidirectionalStreamingBatched", testBidirectionalStreamingBatched),
- ("testBidirectionalStreamingLotsOfMessagesBatched", testBidirectionalStreamingLotsOfMessagesBatched),
- ("testBidirectionalStreamingLotsOfMessagesPingPong", testBidirectionalStreamingLotsOfMessagesPingPong),
- ("testBidirectionalStreamingPingPong", testBidirectionalStreamingPingPong),
- ("testClientStreaming", testClientStreaming),
- ("testClientStreamingLotsOfMessages", testClientStreamingLotsOfMessages),
- ("testServerStreaming", testServerStreaming),
- ("testServerStreamingLotsOfMessages", testServerStreamingLotsOfMessages),
- ("testUnary", testUnary),
- ("testUnaryEmptyRequest", testUnaryEmptyRequest),
- ("testUnaryLotsOfRequests", testUnaryLotsOfRequests),
- ("testUnaryWithLargeData", testUnaryWithLargeData),
- ]
- }
- extension NIOServerWebTests {
- // DO NOT MODIFY: This is autogenerated, use:
- // `swift test --generate-linuxmain`
- // to regenerate.
- static let __allTests__NIOServerWebTests = [
- ("testServerStreaming", testServerStreaming),
- ("testUnary", testUnary),
- ("testUnaryLotsOfRequests", testUnaryLotsOfRequests),
- ("testUnaryWithoutRequestMessage", testUnaryWithoutRequestMessage),
- ]
- }
- extension ServerDelayedThrowingTests {
- // DO NOT MODIFY: This is autogenerated, use:
- // `swift test --generate-linuxmain`
- // to regenerate.
- static let __allTests__ServerDelayedThrowingTests = [
- ("testBidirectionalStreaming", testBidirectionalStreaming),
- ("testClientStreaming", testClientStreaming),
- ("testServerStreaming", testServerStreaming),
- ("testUnary", testUnary),
- ]
- }
- extension ServerErrorTransformingTests {
- // DO NOT MODIFY: This is autogenerated, use:
- // `swift test --generate-linuxmain`
- // to regenerate.
- static let __allTests__ServerErrorTransformingTests = [
- ("testBidirectionalStreaming", testBidirectionalStreaming),
- ("testClientStreaming", testClientStreaming),
- ("testServerStreaming", testServerStreaming),
- ("testUnary", testUnary),
- ]
- }
- extension ServerThrowingTests {
- // DO NOT MODIFY: This is autogenerated, use:
- // `swift test --generate-linuxmain`
- // to regenerate.
- static let __allTests__ServerThrowingTests = [
- ("testBidirectionalStreaming", testBidirectionalStreaming),
- ("testClientStreaming", testClientStreaming),
- ("testServerStreaming", testServerStreaming),
- ("testUnary", testUnary),
- ]
- }
- public func __allTests() -> [XCTestCaseEntry] {
- return [
- testCase(ClientThrowingWhenServerReturningErrorTests.__allTests__ClientThrowingWhenServerReturningErrorTests),
- testCase(GRPCChannelHandlerTests.__allTests__GRPCChannelHandlerTests),
- testCase(HTTP1ToRawGRPCServerCodecTests.__allTests__HTTP1ToRawGRPCServerCodecTests),
- testCase(LengthPrefixedMessageReaderTests.__allTests__LengthPrefixedMessageReaderTests),
- testCase(NIOClientCancellingTests.__allTests__NIOClientCancellingTests),
- testCase(NIOClientTimeoutTests.__allTests__NIOClientTimeoutTests),
- testCase(NIOFunctionalTestsAnonymousClient.__allTests__NIOFunctionalTestsAnonymousClient),
- testCase(NIOFunctionalTestsInsecureTransport.__allTests__NIOFunctionalTestsInsecureTransport),
- testCase(NIOFunctionalTestsMutualAuthentication.__allTests__NIOFunctionalTestsMutualAuthentication),
- testCase(NIOServerWebTests.__allTests__NIOServerWebTests),
- testCase(ServerDelayedThrowingTests.__allTests__ServerDelayedThrowingTests),
- testCase(ServerErrorTransformingTests.__allTests__ServerErrorTransformingTests),
- testCase(ServerThrowingTests.__allTests__ServerThrowingTests),
- ]
- }
- #endif
|