XCTestManifests.swift 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300
  1. #if !canImport(ObjectiveC)
  2. import XCTest
  3. extension ClientThrowingWhenServerReturningErrorTests {
  4. // DO NOT MODIFY: This is autogenerated, use:
  5. // `swift test --generate-linuxmain`
  6. // to regenerate.
  7. static let __allTests__ClientThrowingWhenServerReturningErrorTests = [
  8. ("testBidirectionalStreaming", testBidirectionalStreaming),
  9. ("testClientStreaming", testClientStreaming),
  10. ("testServerStreaming", testServerStreaming),
  11. ("testUnary", testUnary),
  12. ]
  13. }
  14. extension GRPCChannelHandlerTests {
  15. // DO NOT MODIFY: This is autogenerated, use:
  16. // `swift test --generate-linuxmain`
  17. // to regenerate.
  18. static let __allTests__GRPCChannelHandlerTests = [
  19. ("testImplementedMethodReturnsHeadersMessageAndStatus", testImplementedMethodReturnsHeadersMessageAndStatus),
  20. ("testImplementedMethodReturnsStatusForBadlyFormedProto", testImplementedMethodReturnsStatusForBadlyFormedProto),
  21. ("testUnimplementedMethodReturnsUnimplementedStatus", testUnimplementedMethodReturnsUnimplementedStatus),
  22. ]
  23. }
  24. extension GRPCInsecureInteroperabilityTests {
  25. // DO NOT MODIFY: This is autogenerated, use:
  26. // `swift test --generate-linuxmain`
  27. // to regenerate.
  28. static let __allTests__GRPCInsecureInteroperabilityTests = [
  29. ("testCacheableUnary", testCacheableUnary),
  30. ("testCancelAfterBegin", testCancelAfterBegin),
  31. ("testCancelAfterFirstResponse", testCancelAfterFirstResponse),
  32. ("testClientStreaming", testClientStreaming),
  33. ("testCustomMetadata", testCustomMetadata),
  34. ("testEmptyStream", testEmptyStream),
  35. ("testEmptyUnary", testEmptyUnary),
  36. ("testLargeUnary", testLargeUnary),
  37. ("testPingPong", testPingPong),
  38. ("testServerStreaming", testServerStreaming),
  39. ("testSpecialStatusAndMessage", testSpecialStatusAndMessage),
  40. ("testStatusCodeAndMessage", testStatusCodeAndMessage),
  41. ("testTimeoutOnSleepingServer", testTimeoutOnSleepingServer),
  42. ("testUnimplementedMethod", testUnimplementedMethod),
  43. ("testUnimplementedService", testUnimplementedService),
  44. ]
  45. }
  46. extension GRPCSecureInteroperabilityTests {
  47. // DO NOT MODIFY: This is autogenerated, use:
  48. // `swift test --generate-linuxmain`
  49. // to regenerate.
  50. static let __allTests__GRPCSecureInteroperabilityTests = [
  51. ("testCacheableUnary", testCacheableUnary),
  52. ("testCancelAfterBegin", testCancelAfterBegin),
  53. ("testCancelAfterFirstResponse", testCancelAfterFirstResponse),
  54. ("testClientStreaming", testClientStreaming),
  55. ("testCustomMetadata", testCustomMetadata),
  56. ("testEmptyStream", testEmptyStream),
  57. ("testEmptyUnary", testEmptyUnary),
  58. ("testLargeUnary", testLargeUnary),
  59. ("testPingPong", testPingPong),
  60. ("testServerStreaming", testServerStreaming),
  61. ("testSpecialStatusAndMessage", testSpecialStatusAndMessage),
  62. ("testStatusCodeAndMessage", testStatusCodeAndMessage),
  63. ("testTimeoutOnSleepingServer", testTimeoutOnSleepingServer),
  64. ("testUnimplementedMethod", testUnimplementedMethod),
  65. ("testUnimplementedService", testUnimplementedService),
  66. ]
  67. }
  68. extension GRPCStatusMessageMarshallerTests {
  69. // DO NOT MODIFY: This is autogenerated, use:
  70. // `swift test --generate-linuxmain`
  71. // to regenerate.
  72. static let __allTests__GRPCStatusMessageMarshallerTests = [
  73. ("testASCIIMarshallingAndUnmarshalling", testASCIIMarshallingAndUnmarshalling),
  74. ("testPercentMarshallingAndUnmarshalling", testPercentMarshallingAndUnmarshalling),
  75. ("testUnicodeMarshalling", testUnicodeMarshalling),
  76. ]
  77. }
  78. extension HTTP1ToRawGRPCServerCodecTests {
  79. // DO NOT MODIFY: This is autogenerated, use:
  80. // `swift test --generate-linuxmain`
  81. // to regenerate.
  82. static let __allTests__HTTP1ToRawGRPCServerCodecTests = [
  83. ("testInternalErrorStatusIsReturnedIfMessageCannotBeDeserialized", testInternalErrorStatusIsReturnedIfMessageCannotBeDeserialized),
  84. ("testInternalErrorStatusIsReturnedWhenSendingTrailersInRequest", testInternalErrorStatusIsReturnedWhenSendingTrailersInRequest),
  85. ("testInternalErrorStatusReturnedWhenCompressionFlagIsSet", testInternalErrorStatusReturnedWhenCompressionFlagIsSet),
  86. ("testMessageCanBeSentAcrossMultipleByteBuffers", testMessageCanBeSentAcrossMultipleByteBuffers),
  87. ("testOnlyOneStatusIsReturned", testOnlyOneStatusIsReturned),
  88. ]
  89. }
  90. extension LengthPrefixedMessageReaderTests {
  91. // DO NOT MODIFY: This is autogenerated, use:
  92. // `swift test --generate-linuxmain`
  93. // to regenerate.
  94. static let __allTests__LengthPrefixedMessageReaderTests = [
  95. ("testAppendReadsAllBytes", testAppendReadsAllBytes),
  96. ("testNextMessageDeliveredAcrossMultipleByteBuffers", testNextMessageDeliveredAcrossMultipleByteBuffers),
  97. ("testNextMessageDoesNotThrowWhenCompressionFlagIsExpectedButNotSet", testNextMessageDoesNotThrowWhenCompressionFlagIsExpectedButNotSet),
  98. ("testNextMessageReturnsMessageForZeroLengthMessage", testNextMessageReturnsMessageForZeroLengthMessage),
  99. ("testNextMessageReturnsMessageIsAppendedInOneBuffer", testNextMessageReturnsMessageIsAppendedInOneBuffer),
  100. ("testNextMessageReturnsNilWhenNoBytesAppended", testNextMessageReturnsNilWhenNoBytesAppended),
  101. ("testNextMessageReturnsNilWhenNoMessageBytesAreAvailable", testNextMessageReturnsNilWhenNoMessageBytesAreAvailable),
  102. ("testNextMessageReturnsNilWhenNoMessageLengthIsAvailable", testNextMessageReturnsNilWhenNoMessageLengthIsAvailable),
  103. ("testNextMessageReturnsNilWhenNotAllMessageBytesAreAvailable", testNextMessageReturnsNilWhenNotAllMessageBytesAreAvailable),
  104. ("testNextMessageReturnsNilWhenNotAllMessageLengthIsAvailable", testNextMessageReturnsNilWhenNotAllMessageLengthIsAvailable),
  105. ("testNextMessageThrowsWhenCompressionFlagIsSetButNotExpected", testNextMessageThrowsWhenCompressionFlagIsSetButNotExpected),
  106. ("testNextMessageThrowsWhenCompressionMechanismIsNotSupported", testNextMessageThrowsWhenCompressionMechanismIsNotSupported),
  107. ("testNextMessageWhenMultipleMessagesAreBuffered", testNextMessageWhenMultipleMessagesAreBuffered),
  108. ]
  109. }
  110. extension NIOClientCancellingTests {
  111. // DO NOT MODIFY: This is autogenerated, use:
  112. // `swift test --generate-linuxmain`
  113. // to regenerate.
  114. static let __allTests__NIOClientCancellingTests = [
  115. ("testBidirectionalStreaming", testBidirectionalStreaming),
  116. ("testClientStreaming", testClientStreaming),
  117. ("testServerStreaming", testServerStreaming),
  118. ("testUnary", testUnary),
  119. ]
  120. }
  121. extension NIOClientClosedChannelTests {
  122. // DO NOT MODIFY: This is autogenerated, use:
  123. // `swift test --generate-linuxmain`
  124. // to regenerate.
  125. static let __allTests__NIOClientClosedChannelTests = [
  126. ("testBidirectionalStreamingOnClosedConnection", testBidirectionalStreamingOnClosedConnection),
  127. ("testBidirectionalStreamingWhenConnectionIsClosedBetweenMessages", testBidirectionalStreamingWhenConnectionIsClosedBetweenMessages),
  128. ("testBidirectionalStreamingWithNoPromiseWhenConnectionIsClosedBetweenMessages", testBidirectionalStreamingWithNoPromiseWhenConnectionIsClosedBetweenMessages),
  129. ("testClientStreamingOnClosedConnection", testClientStreamingOnClosedConnection),
  130. ("testClientStreamingWhenConnectionIsClosedBetweenMessages", testClientStreamingWhenConnectionIsClosedBetweenMessages),
  131. ("testServerStreamingOnClosedConnection", testServerStreamingOnClosedConnection),
  132. ("testUnaryOnClosedConnection", testUnaryOnClosedConnection),
  133. ]
  134. }
  135. extension NIOClientTLSFailureTests {
  136. // DO NOT MODIFY: This is autogenerated, use:
  137. // `swift test --generate-linuxmain`
  138. // to regenerate.
  139. static let __allTests__NIOClientTLSFailureTests = [
  140. ("testClientConnectionFailsWhenHostnameIsNotValid", testClientConnectionFailsWhenHostnameIsNotValid),
  141. ("testClientConnectionFailsWhenProtocolCanNotBeNegotiated", testClientConnectionFailsWhenProtocolCanNotBeNegotiated),
  142. ("testClientConnectionFailsWhenServerIsUnknown", testClientConnectionFailsWhenServerIsUnknown),
  143. ]
  144. }
  145. extension NIOClientTimeoutTests {
  146. // DO NOT MODIFY: This is autogenerated, use:
  147. // `swift test --generate-linuxmain`
  148. // to regenerate.
  149. static let __allTests__NIOClientTimeoutTests = [
  150. ("testBidirectionalStreamingTimeoutAfterSending", testBidirectionalStreamingTimeoutAfterSending),
  151. ("testBidirectionalStreamingTimeoutBeforeSending", testBidirectionalStreamingTimeoutBeforeSending),
  152. ("testClientStreamingTimeoutAfterSending", testClientStreamingTimeoutAfterSending),
  153. ("testClientStreamingTimeoutBeforeSending", testClientStreamingTimeoutBeforeSending),
  154. ("testServerStreamingTimeoutAfterSending", testServerStreamingTimeoutAfterSending),
  155. ("testUnaryTimeoutAfterSending", testUnaryTimeoutAfterSending),
  156. ]
  157. }
  158. extension NIOFunctionalTestsAnonymousClient {
  159. // DO NOT MODIFY: This is autogenerated, use:
  160. // `swift test --generate-linuxmain`
  161. // to regenerate.
  162. static let __allTests__NIOFunctionalTestsAnonymousClient = [
  163. ("testBidirectionalStreamingBatched", testBidirectionalStreamingBatched),
  164. ("testBidirectionalStreamingLotsOfMessagesBatched", testBidirectionalStreamingLotsOfMessagesBatched),
  165. ("testBidirectionalStreamingLotsOfMessagesPingPong", testBidirectionalStreamingLotsOfMessagesPingPong),
  166. ("testBidirectionalStreamingPingPong", testBidirectionalStreamingPingPong),
  167. ("testClientStreaming", testClientStreaming),
  168. ("testClientStreamingLotsOfMessages", testClientStreamingLotsOfMessages),
  169. ("testServerStreaming", testServerStreaming),
  170. ("testServerStreamingLotsOfMessages", testServerStreamingLotsOfMessages),
  171. ("testUnary", testUnary),
  172. ("testUnaryEmptyRequest", testUnaryEmptyRequest),
  173. ("testUnaryLotsOfRequests", testUnaryLotsOfRequests),
  174. ("testUnaryWithLargeData", testUnaryWithLargeData),
  175. ]
  176. }
  177. extension NIOFunctionalTestsInsecureTransport {
  178. // DO NOT MODIFY: This is autogenerated, use:
  179. // `swift test --generate-linuxmain`
  180. // to regenerate.
  181. static let __allTests__NIOFunctionalTestsInsecureTransport = [
  182. ("testBidirectionalStreamingBatched", testBidirectionalStreamingBatched),
  183. ("testBidirectionalStreamingLotsOfMessagesBatched", testBidirectionalStreamingLotsOfMessagesBatched),
  184. ("testBidirectionalStreamingLotsOfMessagesPingPong", testBidirectionalStreamingLotsOfMessagesPingPong),
  185. ("testBidirectionalStreamingPingPong", testBidirectionalStreamingPingPong),
  186. ("testClientStreaming", testClientStreaming),
  187. ("testClientStreamingLotsOfMessages", testClientStreamingLotsOfMessages),
  188. ("testServerStreaming", testServerStreaming),
  189. ("testServerStreamingLotsOfMessages", testServerStreamingLotsOfMessages),
  190. ("testUnary", testUnary),
  191. ("testUnaryEmptyRequest", testUnaryEmptyRequest),
  192. ("testUnaryLotsOfRequests", testUnaryLotsOfRequests),
  193. ("testUnaryWithLargeData", testUnaryWithLargeData),
  194. ]
  195. }
  196. extension NIOFunctionalTestsMutualAuthentication {
  197. // DO NOT MODIFY: This is autogenerated, use:
  198. // `swift test --generate-linuxmain`
  199. // to regenerate.
  200. static let __allTests__NIOFunctionalTestsMutualAuthentication = [
  201. ("testBidirectionalStreamingBatched", testBidirectionalStreamingBatched),
  202. ("testBidirectionalStreamingLotsOfMessagesBatched", testBidirectionalStreamingLotsOfMessagesBatched),
  203. ("testBidirectionalStreamingLotsOfMessagesPingPong", testBidirectionalStreamingLotsOfMessagesPingPong),
  204. ("testBidirectionalStreamingPingPong", testBidirectionalStreamingPingPong),
  205. ("testClientStreaming", testClientStreaming),
  206. ("testClientStreamingLotsOfMessages", testClientStreamingLotsOfMessages),
  207. ("testServerStreaming", testServerStreaming),
  208. ("testServerStreamingLotsOfMessages", testServerStreamingLotsOfMessages),
  209. ("testUnary", testUnary),
  210. ("testUnaryEmptyRequest", testUnaryEmptyRequest),
  211. ("testUnaryLotsOfRequests", testUnaryLotsOfRequests),
  212. ("testUnaryWithLargeData", testUnaryWithLargeData),
  213. ]
  214. }
  215. extension NIOServerWebTests {
  216. // DO NOT MODIFY: This is autogenerated, use:
  217. // `swift test --generate-linuxmain`
  218. // to regenerate.
  219. static let __allTests__NIOServerWebTests = [
  220. ("testServerStreaming", testServerStreaming),
  221. ("testUnary", testUnary),
  222. ("testUnaryLotsOfRequests", testUnaryLotsOfRequests),
  223. ("testUnaryWithoutRequestMessage", testUnaryWithoutRequestMessage),
  224. ]
  225. }
  226. extension ServerDelayedThrowingTests {
  227. // DO NOT MODIFY: This is autogenerated, use:
  228. // `swift test --generate-linuxmain`
  229. // to regenerate.
  230. static let __allTests__ServerDelayedThrowingTests = [
  231. ("testBidirectionalStreaming", testBidirectionalStreaming),
  232. ("testClientStreaming", testClientStreaming),
  233. ("testServerStreaming", testServerStreaming),
  234. ("testUnary", testUnary),
  235. ]
  236. }
  237. extension ServerErrorTransformingTests {
  238. // DO NOT MODIFY: This is autogenerated, use:
  239. // `swift test --generate-linuxmain`
  240. // to regenerate.
  241. static let __allTests__ServerErrorTransformingTests = [
  242. ("testBidirectionalStreaming", testBidirectionalStreaming),
  243. ("testClientStreaming", testClientStreaming),
  244. ("testServerStreaming", testServerStreaming),
  245. ("testUnary", testUnary),
  246. ]
  247. }
  248. extension ServerThrowingTests {
  249. // DO NOT MODIFY: This is autogenerated, use:
  250. // `swift test --generate-linuxmain`
  251. // to regenerate.
  252. static let __allTests__ServerThrowingTests = [
  253. ("testBidirectionalStreaming", testBidirectionalStreaming),
  254. ("testClientStreaming", testClientStreaming),
  255. ("testServerStreaming", testServerStreaming),
  256. ("testUnary", testUnary),
  257. ]
  258. }
  259. public func __allTests() -> [XCTestCaseEntry] {
  260. return [
  261. testCase(ClientThrowingWhenServerReturningErrorTests.__allTests__ClientThrowingWhenServerReturningErrorTests),
  262. testCase(GRPCChannelHandlerTests.__allTests__GRPCChannelHandlerTests),
  263. testCase(GRPCInsecureInteroperabilityTests.__allTests__GRPCInsecureInteroperabilityTests),
  264. testCase(GRPCSecureInteroperabilityTests.__allTests__GRPCSecureInteroperabilityTests),
  265. testCase(GRPCStatusMessageMarshallerTests.__allTests__GRPCStatusMessageMarshallerTests),
  266. testCase(HTTP1ToRawGRPCServerCodecTests.__allTests__HTTP1ToRawGRPCServerCodecTests),
  267. testCase(LengthPrefixedMessageReaderTests.__allTests__LengthPrefixedMessageReaderTests),
  268. testCase(NIOClientCancellingTests.__allTests__NIOClientCancellingTests),
  269. testCase(NIOClientClosedChannelTests.__allTests__NIOClientClosedChannelTests),
  270. testCase(NIOClientTLSFailureTests.__allTests__NIOClientTLSFailureTests),
  271. testCase(NIOClientTimeoutTests.__allTests__NIOClientTimeoutTests),
  272. testCase(NIOFunctionalTestsAnonymousClient.__allTests__NIOFunctionalTestsAnonymousClient),
  273. testCase(NIOFunctionalTestsInsecureTransport.__allTests__NIOFunctionalTestsInsecureTransport),
  274. testCase(NIOFunctionalTestsMutualAuthentication.__allTests__NIOFunctionalTestsMutualAuthentication),
  275. testCase(NIOServerWebTests.__allTests__NIOServerWebTests),
  276. testCase(ServerDelayedThrowingTests.__allTests__ServerDelayedThrowingTests),
  277. testCase(ServerErrorTransformingTests.__allTests__ServerErrorTransformingTests),
  278. testCase(ServerThrowingTests.__allTests__ServerThrowingTests),
  279. ]
  280. }
  281. #endif