XCTestManifests.swift 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318
  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 GRPCStatusCodeTests {
  69. // DO NOT MODIFY: This is autogenerated, use:
  70. // `swift test --generate-linuxmain`
  71. // to regenerate.
  72. static let __allTests__GRPCStatusCodeTests = [
  73. ("testBadGateway", testBadGateway),
  74. ("testBadRequest", testBadRequest),
  75. ("testForbidden", testForbidden),
  76. ("testGatewayTimeout", testGatewayTimeout),
  77. ("testNotFound", testNotFound),
  78. ("testServiceUnavailable", testServiceUnavailable),
  79. ("testStatusCodeAndMessageAreRespectedForNon200Responses", testStatusCodeAndMessageAreRespectedForNon200Responses),
  80. ("testTooManyRequests", testTooManyRequests),
  81. ("testUnauthorized", testUnauthorized),
  82. ]
  83. }
  84. extension GRPCStatusMessageMarshallerTests {
  85. // DO NOT MODIFY: This is autogenerated, use:
  86. // `swift test --generate-linuxmain`
  87. // to regenerate.
  88. static let __allTests__GRPCStatusMessageMarshallerTests = [
  89. ("testASCIIMarshallingAndUnmarshalling", testASCIIMarshallingAndUnmarshalling),
  90. ("testPercentMarshallingAndUnmarshalling", testPercentMarshallingAndUnmarshalling),
  91. ("testUnicodeMarshalling", testUnicodeMarshalling),
  92. ]
  93. }
  94. extension HTTP1ToRawGRPCServerCodecTests {
  95. // DO NOT MODIFY: This is autogenerated, use:
  96. // `swift test --generate-linuxmain`
  97. // to regenerate.
  98. static let __allTests__HTTP1ToRawGRPCServerCodecTests = [
  99. ("testInternalErrorStatusIsReturnedIfMessageCannotBeDeserialized", testInternalErrorStatusIsReturnedIfMessageCannotBeDeserialized),
  100. ("testInternalErrorStatusIsReturnedWhenSendingTrailersInRequest", testInternalErrorStatusIsReturnedWhenSendingTrailersInRequest),
  101. ("testInternalErrorStatusReturnedWhenCompressionFlagIsSet", testInternalErrorStatusReturnedWhenCompressionFlagIsSet),
  102. ("testMessageCanBeSentAcrossMultipleByteBuffers", testMessageCanBeSentAcrossMultipleByteBuffers),
  103. ("testOnlyOneStatusIsReturned", testOnlyOneStatusIsReturned),
  104. ]
  105. }
  106. extension LengthPrefixedMessageReaderTests {
  107. // DO NOT MODIFY: This is autogenerated, use:
  108. // `swift test --generate-linuxmain`
  109. // to regenerate.
  110. static let __allTests__LengthPrefixedMessageReaderTests = [
  111. ("testAppendReadsAllBytes", testAppendReadsAllBytes),
  112. ("testNextMessageDeliveredAcrossMultipleByteBuffers", testNextMessageDeliveredAcrossMultipleByteBuffers),
  113. ("testNextMessageDoesNotThrowWhenCompressionFlagIsExpectedButNotSet", testNextMessageDoesNotThrowWhenCompressionFlagIsExpectedButNotSet),
  114. ("testNextMessageReturnsMessageForZeroLengthMessage", testNextMessageReturnsMessageForZeroLengthMessage),
  115. ("testNextMessageReturnsMessageIsAppendedInOneBuffer", testNextMessageReturnsMessageIsAppendedInOneBuffer),
  116. ("testNextMessageReturnsNilWhenNoBytesAppended", testNextMessageReturnsNilWhenNoBytesAppended),
  117. ("testNextMessageReturnsNilWhenNoMessageBytesAreAvailable", testNextMessageReturnsNilWhenNoMessageBytesAreAvailable),
  118. ("testNextMessageReturnsNilWhenNoMessageLengthIsAvailable", testNextMessageReturnsNilWhenNoMessageLengthIsAvailable),
  119. ("testNextMessageReturnsNilWhenNotAllMessageBytesAreAvailable", testNextMessageReturnsNilWhenNotAllMessageBytesAreAvailable),
  120. ("testNextMessageReturnsNilWhenNotAllMessageLengthIsAvailable", testNextMessageReturnsNilWhenNotAllMessageLengthIsAvailable),
  121. ("testNextMessageThrowsWhenCompressionFlagIsSetButNotExpected", testNextMessageThrowsWhenCompressionFlagIsSetButNotExpected),
  122. ("testNextMessageThrowsWhenCompressionMechanismIsNotSupported", testNextMessageThrowsWhenCompressionMechanismIsNotSupported),
  123. ("testNextMessageWhenMultipleMessagesAreBuffered", testNextMessageWhenMultipleMessagesAreBuffered),
  124. ]
  125. }
  126. extension NIOClientCancellingTests {
  127. // DO NOT MODIFY: This is autogenerated, use:
  128. // `swift test --generate-linuxmain`
  129. // to regenerate.
  130. static let __allTests__NIOClientCancellingTests = [
  131. ("testBidirectionalStreaming", testBidirectionalStreaming),
  132. ("testClientStreaming", testClientStreaming),
  133. ("testServerStreaming", testServerStreaming),
  134. ("testUnary", testUnary),
  135. ]
  136. }
  137. extension NIOClientClosedChannelTests {
  138. // DO NOT MODIFY: This is autogenerated, use:
  139. // `swift test --generate-linuxmain`
  140. // to regenerate.
  141. static let __allTests__NIOClientClosedChannelTests = [
  142. ("testBidirectionalStreamingOnClosedConnection", testBidirectionalStreamingOnClosedConnection),
  143. ("testBidirectionalStreamingWhenConnectionIsClosedBetweenMessages", testBidirectionalStreamingWhenConnectionIsClosedBetweenMessages),
  144. ("testBidirectionalStreamingWithNoPromiseWhenConnectionIsClosedBetweenMessages", testBidirectionalStreamingWithNoPromiseWhenConnectionIsClosedBetweenMessages),
  145. ("testClientStreamingOnClosedConnection", testClientStreamingOnClosedConnection),
  146. ("testClientStreamingWhenConnectionIsClosedBetweenMessages", testClientStreamingWhenConnectionIsClosedBetweenMessages),
  147. ("testServerStreamingOnClosedConnection", testServerStreamingOnClosedConnection),
  148. ("testUnaryOnClosedConnection", testUnaryOnClosedConnection),
  149. ]
  150. }
  151. extension NIOClientTLSFailureTests {
  152. // DO NOT MODIFY: This is autogenerated, use:
  153. // `swift test --generate-linuxmain`
  154. // to regenerate.
  155. static let __allTests__NIOClientTLSFailureTests = [
  156. ("testClientConnectionFailsWhenHostnameIsNotValid", testClientConnectionFailsWhenHostnameIsNotValid),
  157. ("testClientConnectionFailsWhenProtocolCanNotBeNegotiated", testClientConnectionFailsWhenProtocolCanNotBeNegotiated),
  158. ("testClientConnectionFailsWhenServerIsUnknown", testClientConnectionFailsWhenServerIsUnknown),
  159. ]
  160. }
  161. extension NIOClientTimeoutTests {
  162. // DO NOT MODIFY: This is autogenerated, use:
  163. // `swift test --generate-linuxmain`
  164. // to regenerate.
  165. static let __allTests__NIOClientTimeoutTests = [
  166. ("testBidirectionalStreamingTimeoutAfterSending", testBidirectionalStreamingTimeoutAfterSending),
  167. ("testBidirectionalStreamingTimeoutBeforeSending", testBidirectionalStreamingTimeoutBeforeSending),
  168. ("testClientStreamingTimeoutAfterSending", testClientStreamingTimeoutAfterSending),
  169. ("testClientStreamingTimeoutBeforeSending", testClientStreamingTimeoutBeforeSending),
  170. ("testServerStreamingTimeoutAfterSending", testServerStreamingTimeoutAfterSending),
  171. ("testUnaryTimeoutAfterSending", testUnaryTimeoutAfterSending),
  172. ]
  173. }
  174. extension NIOFunctionalTestsAnonymousClient {
  175. // DO NOT MODIFY: This is autogenerated, use:
  176. // `swift test --generate-linuxmain`
  177. // to regenerate.
  178. static let __allTests__NIOFunctionalTestsAnonymousClient = [
  179. ("testBidirectionalStreamingBatched", testBidirectionalStreamingBatched),
  180. ("testBidirectionalStreamingLotsOfMessagesBatched", testBidirectionalStreamingLotsOfMessagesBatched),
  181. ("testBidirectionalStreamingLotsOfMessagesPingPong", testBidirectionalStreamingLotsOfMessagesPingPong),
  182. ("testBidirectionalStreamingPingPong", testBidirectionalStreamingPingPong),
  183. ("testClientStreaming", testClientStreaming),
  184. ("testClientStreamingLotsOfMessages", testClientStreamingLotsOfMessages),
  185. ("testServerStreaming", testServerStreaming),
  186. ("testServerStreamingLotsOfMessages", testServerStreamingLotsOfMessages),
  187. ("testUnary", testUnary),
  188. ("testUnaryEmptyRequest", testUnaryEmptyRequest),
  189. ("testUnaryLotsOfRequests", testUnaryLotsOfRequests),
  190. ("testUnaryWithLargeData", testUnaryWithLargeData),
  191. ]
  192. }
  193. extension NIOFunctionalTestsInsecureTransport {
  194. // DO NOT MODIFY: This is autogenerated, use:
  195. // `swift test --generate-linuxmain`
  196. // to regenerate.
  197. static let __allTests__NIOFunctionalTestsInsecureTransport = [
  198. ("testBidirectionalStreamingBatched", testBidirectionalStreamingBatched),
  199. ("testBidirectionalStreamingLotsOfMessagesBatched", testBidirectionalStreamingLotsOfMessagesBatched),
  200. ("testBidirectionalStreamingLotsOfMessagesPingPong", testBidirectionalStreamingLotsOfMessagesPingPong),
  201. ("testBidirectionalStreamingPingPong", testBidirectionalStreamingPingPong),
  202. ("testClientStreaming", testClientStreaming),
  203. ("testClientStreamingLotsOfMessages", testClientStreamingLotsOfMessages),
  204. ("testServerStreaming", testServerStreaming),
  205. ("testServerStreamingLotsOfMessages", testServerStreamingLotsOfMessages),
  206. ("testUnary", testUnary),
  207. ("testUnaryEmptyRequest", testUnaryEmptyRequest),
  208. ("testUnaryLotsOfRequests", testUnaryLotsOfRequests),
  209. ("testUnaryWithLargeData", testUnaryWithLargeData),
  210. ]
  211. }
  212. extension NIOFunctionalTestsMutualAuthentication {
  213. // DO NOT MODIFY: This is autogenerated, use:
  214. // `swift test --generate-linuxmain`
  215. // to regenerate.
  216. static let __allTests__NIOFunctionalTestsMutualAuthentication = [
  217. ("testBidirectionalStreamingBatched", testBidirectionalStreamingBatched),
  218. ("testBidirectionalStreamingLotsOfMessagesBatched", testBidirectionalStreamingLotsOfMessagesBatched),
  219. ("testBidirectionalStreamingLotsOfMessagesPingPong", testBidirectionalStreamingLotsOfMessagesPingPong),
  220. ("testBidirectionalStreamingPingPong", testBidirectionalStreamingPingPong),
  221. ("testClientStreaming", testClientStreaming),
  222. ("testClientStreamingLotsOfMessages", testClientStreamingLotsOfMessages),
  223. ("testServerStreaming", testServerStreaming),
  224. ("testServerStreamingLotsOfMessages", testServerStreamingLotsOfMessages),
  225. ("testUnary", testUnary),
  226. ("testUnaryEmptyRequest", testUnaryEmptyRequest),
  227. ("testUnaryLotsOfRequests", testUnaryLotsOfRequests),
  228. ("testUnaryWithLargeData", testUnaryWithLargeData),
  229. ]
  230. }
  231. extension NIOServerWebTests {
  232. // DO NOT MODIFY: This is autogenerated, use:
  233. // `swift test --generate-linuxmain`
  234. // to regenerate.
  235. static let __allTests__NIOServerWebTests = [
  236. ("testServerStreaming", testServerStreaming),
  237. ("testUnary", testUnary),
  238. ("testUnaryLotsOfRequests", testUnaryLotsOfRequests),
  239. ("testUnaryWithoutRequestMessage", testUnaryWithoutRequestMessage),
  240. ]
  241. }
  242. extension ServerDelayedThrowingTests {
  243. // DO NOT MODIFY: This is autogenerated, use:
  244. // `swift test --generate-linuxmain`
  245. // to regenerate.
  246. static let __allTests__ServerDelayedThrowingTests = [
  247. ("testBidirectionalStreaming", testBidirectionalStreaming),
  248. ("testClientStreaming", testClientStreaming),
  249. ("testServerStreaming", testServerStreaming),
  250. ("testUnary", testUnary),
  251. ]
  252. }
  253. extension ServerErrorTransformingTests {
  254. // DO NOT MODIFY: This is autogenerated, use:
  255. // `swift test --generate-linuxmain`
  256. // to regenerate.
  257. static let __allTests__ServerErrorTransformingTests = [
  258. ("testBidirectionalStreaming", testBidirectionalStreaming),
  259. ("testClientStreaming", testClientStreaming),
  260. ("testServerStreaming", testServerStreaming),
  261. ("testUnary", testUnary),
  262. ]
  263. }
  264. extension ServerThrowingTests {
  265. // DO NOT MODIFY: This is autogenerated, use:
  266. // `swift test --generate-linuxmain`
  267. // to regenerate.
  268. static let __allTests__ServerThrowingTests = [
  269. ("testBidirectionalStreaming", testBidirectionalStreaming),
  270. ("testClientStreaming", testClientStreaming),
  271. ("testServerStreaming", testServerStreaming),
  272. ("testUnary", testUnary),
  273. ]
  274. }
  275. public func __allTests() -> [XCTestCaseEntry] {
  276. return [
  277. testCase(ClientThrowingWhenServerReturningErrorTests.__allTests__ClientThrowingWhenServerReturningErrorTests),
  278. testCase(GRPCChannelHandlerTests.__allTests__GRPCChannelHandlerTests),
  279. testCase(GRPCInsecureInteroperabilityTests.__allTests__GRPCInsecureInteroperabilityTests),
  280. testCase(GRPCSecureInteroperabilityTests.__allTests__GRPCSecureInteroperabilityTests),
  281. testCase(GRPCStatusCodeTests.__allTests__GRPCStatusCodeTests),
  282. testCase(GRPCStatusMessageMarshallerTests.__allTests__GRPCStatusMessageMarshallerTests),
  283. testCase(HTTP1ToRawGRPCServerCodecTests.__allTests__HTTP1ToRawGRPCServerCodecTests),
  284. testCase(LengthPrefixedMessageReaderTests.__allTests__LengthPrefixedMessageReaderTests),
  285. testCase(NIOClientCancellingTests.__allTests__NIOClientCancellingTests),
  286. testCase(NIOClientClosedChannelTests.__allTests__NIOClientClosedChannelTests),
  287. testCase(NIOClientTLSFailureTests.__allTests__NIOClientTLSFailureTests),
  288. testCase(NIOClientTimeoutTests.__allTests__NIOClientTimeoutTests),
  289. testCase(NIOFunctionalTestsAnonymousClient.__allTests__NIOFunctionalTestsAnonymousClient),
  290. testCase(NIOFunctionalTestsInsecureTransport.__allTests__NIOFunctionalTestsInsecureTransport),
  291. testCase(NIOFunctionalTestsMutualAuthentication.__allTests__NIOFunctionalTestsMutualAuthentication),
  292. testCase(NIOServerWebTests.__allTests__NIOServerWebTests),
  293. testCase(ServerDelayedThrowingTests.__allTests__ServerDelayedThrowingTests),
  294. testCase(ServerErrorTransformingTests.__allTests__ServerErrorTransformingTests),
  295. testCase(ServerThrowingTests.__allTests__ServerThrowingTests),
  296. ]
  297. }
  298. #endif