XCTestManifests.swift 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371
  1. #if !canImport(ObjectiveC)
  2. import XCTest
  3. extension AnyServiceClientTests {
  4. // DO NOT MODIFY: This is autogenerated, use:
  5. // `swift test --generate-linuxmain`
  6. // to regenerate.
  7. static let __allTests__AnyServiceClientTests = [
  8. ("testBidirectionalStreaming", testBidirectionalStreaming),
  9. ("testClientStreaming", testClientStreaming),
  10. ("testServerStreaming", testServerStreaming),
  11. ("testUnary", testUnary),
  12. ]
  13. }
  14. extension ClientCancellingTests {
  15. // DO NOT MODIFY: This is autogenerated, use:
  16. // `swift test --generate-linuxmain`
  17. // to regenerate.
  18. static let __allTests__ClientCancellingTests = [
  19. ("testBidirectionalStreaming", testBidirectionalStreaming),
  20. ("testClientStreaming", testClientStreaming),
  21. ("testServerStreaming", testServerStreaming),
  22. ("testUnary", testUnary),
  23. ]
  24. }
  25. extension ClientClosedChannelTests {
  26. // DO NOT MODIFY: This is autogenerated, use:
  27. // `swift test --generate-linuxmain`
  28. // to regenerate.
  29. static let __allTests__ClientClosedChannelTests = [
  30. ("testBidirectionalStreamingOnClosedConnection", testBidirectionalStreamingOnClosedConnection),
  31. ("testBidirectionalStreamingWhenConnectionIsClosedBetweenMessages", testBidirectionalStreamingWhenConnectionIsClosedBetweenMessages),
  32. ("testBidirectionalStreamingWithNoPromiseWhenConnectionIsClosedBetweenMessages", testBidirectionalStreamingWithNoPromiseWhenConnectionIsClosedBetweenMessages),
  33. ("testClientStreamingOnClosedConnection", testClientStreamingOnClosedConnection),
  34. ("testClientStreamingWhenConnectionIsClosedBetweenMessages", testClientStreamingWhenConnectionIsClosedBetweenMessages),
  35. ("testServerStreamingOnClosedConnection", testServerStreamingOnClosedConnection),
  36. ("testUnaryOnClosedConnection", testUnaryOnClosedConnection),
  37. ]
  38. }
  39. extension ClientConnectionBackoffTests {
  40. // DO NOT MODIFY: This is autogenerated, use:
  41. // `swift test --generate-linuxmain`
  42. // to regenerate.
  43. static let __allTests__ClientConnectionBackoffTests = [
  44. ("testClientConnectionFailsWithNoBackoff", testClientConnectionFailsWithNoBackoff),
  45. ("testClientEventuallyConnects", testClientEventuallyConnects),
  46. ("testClientEventuallyTimesOut", testClientEventuallyTimesOut),
  47. ]
  48. }
  49. extension ClientTLSFailureTests {
  50. // DO NOT MODIFY: This is autogenerated, use:
  51. // `swift test --generate-linuxmain`
  52. // to regenerate.
  53. static let __allTests__ClientTLSFailureTests = [
  54. ("testClientConnectionFailsWhenHostnameIsNotValid", testClientConnectionFailsWhenHostnameIsNotValid),
  55. ("testClientConnectionFailsWhenProtocolCanNotBeNegotiated", testClientConnectionFailsWhenProtocolCanNotBeNegotiated),
  56. ("testClientConnectionFailsWhenServerIsUnknown", testClientConnectionFailsWhenServerIsUnknown),
  57. ]
  58. }
  59. extension ClientThrowingWhenServerReturningErrorTests {
  60. // DO NOT MODIFY: This is autogenerated, use:
  61. // `swift test --generate-linuxmain`
  62. // to regenerate.
  63. static let __allTests__ClientThrowingWhenServerReturningErrorTests = [
  64. ("testBidirectionalStreaming", testBidirectionalStreaming),
  65. ("testClientStreaming", testClientStreaming),
  66. ("testServerStreaming", testServerStreaming),
  67. ("testUnary", testUnary),
  68. ]
  69. }
  70. extension ClientTimeoutTests {
  71. // DO NOT MODIFY: This is autogenerated, use:
  72. // `swift test --generate-linuxmain`
  73. // to regenerate.
  74. static let __allTests__ClientTimeoutTests = [
  75. ("testBidirectionalStreamingTimeoutAfterSending", testBidirectionalStreamingTimeoutAfterSending),
  76. ("testBidirectionalStreamingTimeoutBeforeSending", testBidirectionalStreamingTimeoutBeforeSending),
  77. ("testClientStreamingTimeoutAfterSending", testClientStreamingTimeoutAfterSending),
  78. ("testClientStreamingTimeoutBeforeSending", testClientStreamingTimeoutBeforeSending),
  79. ("testServerStreamingTimeoutAfterSending", testServerStreamingTimeoutAfterSending),
  80. ("testUnaryTimeoutAfterSending", testUnaryTimeoutAfterSending),
  81. ]
  82. }
  83. extension ConnectionBackoffTests {
  84. // DO NOT MODIFY: This is autogenerated, use:
  85. // `swift test --generate-linuxmain`
  86. // to regenerate.
  87. static let __allTests__ConnectionBackoffTests = [
  88. ("testBackoffDoesNotExceedMaximum", testBackoffDoesNotExceedMaximum),
  89. ("testBackoffWithJitter", testBackoffWithJitter),
  90. ("testBackoffWithNoJitter", testBackoffWithNoJitter),
  91. ("testConnectionTimeoutAlwaysGreatherThanOrEqualToMinimum", testConnectionTimeoutAlwaysGreatherThanOrEqualToMinimum),
  92. ("testExpectedValuesWithNoJitter", testExpectedValuesWithNoJitter),
  93. ]
  94. }
  95. extension FunctionalTestsAnonymousClient {
  96. // DO NOT MODIFY: This is autogenerated, use:
  97. // `swift test --generate-linuxmain`
  98. // to regenerate.
  99. static let __allTests__FunctionalTestsAnonymousClient = [
  100. ("testBidirectionalStreamingBatched", testBidirectionalStreamingBatched),
  101. ("testBidirectionalStreamingLotsOfMessagesBatched", testBidirectionalStreamingLotsOfMessagesBatched),
  102. ("testBidirectionalStreamingLotsOfMessagesPingPong", testBidirectionalStreamingLotsOfMessagesPingPong),
  103. ("testBidirectionalStreamingPingPong", testBidirectionalStreamingPingPong),
  104. ("testClientStreaming", testClientStreaming),
  105. ("testClientStreamingLotsOfMessages", testClientStreamingLotsOfMessages),
  106. ("testServerStreaming", testServerStreaming),
  107. ("testServerStreamingLotsOfMessages", testServerStreamingLotsOfMessages),
  108. ("testUnary", testUnary),
  109. ("testUnaryEmptyRequest", testUnaryEmptyRequest),
  110. ("testUnaryLotsOfRequests", testUnaryLotsOfRequests),
  111. ("testUnaryWithLargeData", testUnaryWithLargeData),
  112. ]
  113. }
  114. extension FunctionalTestsInsecureTransport {
  115. // DO NOT MODIFY: This is autogenerated, use:
  116. // `swift test --generate-linuxmain`
  117. // to regenerate.
  118. static let __allTests__FunctionalTestsInsecureTransport = [
  119. ("testBidirectionalStreamingBatched", testBidirectionalStreamingBatched),
  120. ("testBidirectionalStreamingLotsOfMessagesBatched", testBidirectionalStreamingLotsOfMessagesBatched),
  121. ("testBidirectionalStreamingLotsOfMessagesPingPong", testBidirectionalStreamingLotsOfMessagesPingPong),
  122. ("testBidirectionalStreamingPingPong", testBidirectionalStreamingPingPong),
  123. ("testClientStreaming", testClientStreaming),
  124. ("testClientStreamingLotsOfMessages", testClientStreamingLotsOfMessages),
  125. ("testServerStreaming", testServerStreaming),
  126. ("testServerStreamingLotsOfMessages", testServerStreamingLotsOfMessages),
  127. ("testUnary", testUnary),
  128. ("testUnaryEmptyRequest", testUnaryEmptyRequest),
  129. ("testUnaryLotsOfRequests", testUnaryLotsOfRequests),
  130. ("testUnaryWithLargeData", testUnaryWithLargeData),
  131. ]
  132. }
  133. extension FunctionalTestsMutualAuthentication {
  134. // DO NOT MODIFY: This is autogenerated, use:
  135. // `swift test --generate-linuxmain`
  136. // to regenerate.
  137. static let __allTests__FunctionalTestsMutualAuthentication = [
  138. ("testBidirectionalStreamingBatched", testBidirectionalStreamingBatched),
  139. ("testBidirectionalStreamingLotsOfMessagesBatched", testBidirectionalStreamingLotsOfMessagesBatched),
  140. ("testBidirectionalStreamingLotsOfMessagesPingPong", testBidirectionalStreamingLotsOfMessagesPingPong),
  141. ("testBidirectionalStreamingPingPong", testBidirectionalStreamingPingPong),
  142. ("testClientStreaming", testClientStreaming),
  143. ("testClientStreamingLotsOfMessages", testClientStreamingLotsOfMessages),
  144. ("testServerStreaming", testServerStreaming),
  145. ("testServerStreamingLotsOfMessages", testServerStreamingLotsOfMessages),
  146. ("testUnary", testUnary),
  147. ("testUnaryEmptyRequest", testUnaryEmptyRequest),
  148. ("testUnaryLotsOfRequests", testUnaryLotsOfRequests),
  149. ("testUnaryWithLargeData", testUnaryWithLargeData),
  150. ]
  151. }
  152. extension GRPCChannelHandlerTests {
  153. // DO NOT MODIFY: This is autogenerated, use:
  154. // `swift test --generate-linuxmain`
  155. // to regenerate.
  156. static let __allTests__GRPCChannelHandlerTests = [
  157. ("testImplementedMethodReturnsHeadersMessageAndStatus", testImplementedMethodReturnsHeadersMessageAndStatus),
  158. ("testImplementedMethodReturnsStatusForBadlyFormedProto", testImplementedMethodReturnsStatusForBadlyFormedProto),
  159. ("testUnimplementedMethodReturnsUnimplementedStatus", testUnimplementedMethodReturnsUnimplementedStatus),
  160. ]
  161. }
  162. extension GRPCInsecureInteroperabilityTests {
  163. // DO NOT MODIFY: This is autogenerated, use:
  164. // `swift test --generate-linuxmain`
  165. // to regenerate.
  166. static let __allTests__GRPCInsecureInteroperabilityTests = [
  167. ("testCacheableUnary", testCacheableUnary),
  168. ("testCancelAfterBegin", testCancelAfterBegin),
  169. ("testCancelAfterFirstResponse", testCancelAfterFirstResponse),
  170. ("testClientStreaming", testClientStreaming),
  171. ("testCustomMetadata", testCustomMetadata),
  172. ("testEmptyStream", testEmptyStream),
  173. ("testEmptyUnary", testEmptyUnary),
  174. ("testLargeUnary", testLargeUnary),
  175. ("testPingPong", testPingPong),
  176. ("testServerStreaming", testServerStreaming),
  177. ("testSpecialStatusAndMessage", testSpecialStatusAndMessage),
  178. ("testStatusCodeAndMessage", testStatusCodeAndMessage),
  179. ("testTimeoutOnSleepingServer", testTimeoutOnSleepingServer),
  180. ("testUnimplementedMethod", testUnimplementedMethod),
  181. ("testUnimplementedService", testUnimplementedService),
  182. ]
  183. }
  184. extension GRPCSecureInteroperabilityTests {
  185. // DO NOT MODIFY: This is autogenerated, use:
  186. // `swift test --generate-linuxmain`
  187. // to regenerate.
  188. static let __allTests__GRPCSecureInteroperabilityTests = [
  189. ("testCacheableUnary", testCacheableUnary),
  190. ("testCancelAfterBegin", testCancelAfterBegin),
  191. ("testCancelAfterFirstResponse", testCancelAfterFirstResponse),
  192. ("testClientStreaming", testClientStreaming),
  193. ("testCustomMetadata", testCustomMetadata),
  194. ("testEmptyStream", testEmptyStream),
  195. ("testEmptyUnary", testEmptyUnary),
  196. ("testLargeUnary", testLargeUnary),
  197. ("testPingPong", testPingPong),
  198. ("testServerStreaming", testServerStreaming),
  199. ("testSpecialStatusAndMessage", testSpecialStatusAndMessage),
  200. ("testStatusCodeAndMessage", testStatusCodeAndMessage),
  201. ("testTimeoutOnSleepingServer", testTimeoutOnSleepingServer),
  202. ("testUnimplementedMethod", testUnimplementedMethod),
  203. ("testUnimplementedService", testUnimplementedService),
  204. ]
  205. }
  206. extension GRPCStatusCodeTests {
  207. // DO NOT MODIFY: This is autogenerated, use:
  208. // `swift test --generate-linuxmain`
  209. // to regenerate.
  210. static let __allTests__GRPCStatusCodeTests = [
  211. ("testBadGateway", testBadGateway),
  212. ("testBadRequest", testBadRequest),
  213. ("testForbidden", testForbidden),
  214. ("testGatewayTimeout", testGatewayTimeout),
  215. ("testNotFound", testNotFound),
  216. ("testServiceUnavailable", testServiceUnavailable),
  217. ("testStatusCodeAndMessageAreRespectedForNon200Responses", testStatusCodeAndMessageAreRespectedForNon200Responses),
  218. ("testTooManyRequests", testTooManyRequests),
  219. ("testUnauthorized", testUnauthorized),
  220. ]
  221. }
  222. extension GRPCStatusMessageMarshallerTests {
  223. // DO NOT MODIFY: This is autogenerated, use:
  224. // `swift test --generate-linuxmain`
  225. // to regenerate.
  226. static let __allTests__GRPCStatusMessageMarshallerTests = [
  227. ("testASCIIMarshallingAndUnmarshalling", testASCIIMarshallingAndUnmarshalling),
  228. ("testPercentMarshallingAndUnmarshalling", testPercentMarshallingAndUnmarshalling),
  229. ("testUnicodeMarshalling", testUnicodeMarshalling),
  230. ]
  231. }
  232. extension GRPCTypeSizeTests {
  233. // DO NOT MODIFY: This is autogenerated, use:
  234. // `swift test --generate-linuxmain`
  235. // to regenerate.
  236. static let __allTests__GRPCTypeSizeTests = [
  237. ("testGRPCClientRequestPart", testGRPCClientRequestPart),
  238. ("testGRPCClientResponsePart", testGRPCClientResponsePart),
  239. ("testGRPCStatus", testGRPCStatus),
  240. ("testRawGRPCClientRequestPart", testRawGRPCClientRequestPart),
  241. ("testRawGRPCClientResponsePart", testRawGRPCClientResponsePart),
  242. ]
  243. }
  244. extension HTTP1ToRawGRPCServerCodecTests {
  245. // DO NOT MODIFY: This is autogenerated, use:
  246. // `swift test --generate-linuxmain`
  247. // to regenerate.
  248. static let __allTests__HTTP1ToRawGRPCServerCodecTests = [
  249. ("testInternalErrorStatusIsReturnedIfMessageCannotBeDeserialized", testInternalErrorStatusIsReturnedIfMessageCannotBeDeserialized),
  250. ("testInternalErrorStatusIsReturnedWhenSendingTrailersInRequest", testInternalErrorStatusIsReturnedWhenSendingTrailersInRequest),
  251. ("testInternalErrorStatusReturnedWhenCompressionFlagIsSet", testInternalErrorStatusReturnedWhenCompressionFlagIsSet),
  252. ("testMessageCanBeSentAcrossMultipleByteBuffers", testMessageCanBeSentAcrossMultipleByteBuffers),
  253. ("testOnlyOneStatusIsReturned", testOnlyOneStatusIsReturned),
  254. ]
  255. }
  256. extension LengthPrefixedMessageReaderTests {
  257. // DO NOT MODIFY: This is autogenerated, use:
  258. // `swift test --generate-linuxmain`
  259. // to regenerate.
  260. static let __allTests__LengthPrefixedMessageReaderTests = [
  261. ("testAppendReadsAllBytes", testAppendReadsAllBytes),
  262. ("testNextMessageDeliveredAcrossMultipleByteBuffers", testNextMessageDeliveredAcrossMultipleByteBuffers),
  263. ("testNextMessageDoesNotThrowWhenCompressionFlagIsExpectedButNotSet", testNextMessageDoesNotThrowWhenCompressionFlagIsExpectedButNotSet),
  264. ("testNextMessageReturnsMessageForZeroLengthMessage", testNextMessageReturnsMessageForZeroLengthMessage),
  265. ("testNextMessageReturnsMessageIsAppendedInOneBuffer", testNextMessageReturnsMessageIsAppendedInOneBuffer),
  266. ("testNextMessageReturnsNilWhenNoBytesAppended", testNextMessageReturnsNilWhenNoBytesAppended),
  267. ("testNextMessageReturnsNilWhenNoMessageBytesAreAvailable", testNextMessageReturnsNilWhenNoMessageBytesAreAvailable),
  268. ("testNextMessageReturnsNilWhenNoMessageLengthIsAvailable", testNextMessageReturnsNilWhenNoMessageLengthIsAvailable),
  269. ("testNextMessageReturnsNilWhenNotAllMessageBytesAreAvailable", testNextMessageReturnsNilWhenNotAllMessageBytesAreAvailable),
  270. ("testNextMessageReturnsNilWhenNotAllMessageLengthIsAvailable", testNextMessageReturnsNilWhenNotAllMessageLengthIsAvailable),
  271. ("testNextMessageThrowsWhenCompressionFlagIsSetButNotExpected", testNextMessageThrowsWhenCompressionFlagIsSetButNotExpected),
  272. ("testNextMessageThrowsWhenCompressionMechanismIsNotSupported", testNextMessageThrowsWhenCompressionMechanismIsNotSupported),
  273. ("testNextMessageWhenMultipleMessagesAreBuffered", testNextMessageWhenMultipleMessagesAreBuffered),
  274. ]
  275. }
  276. extension ServerDelayedThrowingTests {
  277. // DO NOT MODIFY: This is autogenerated, use:
  278. // `swift test --generate-linuxmain`
  279. // to regenerate.
  280. static let __allTests__ServerDelayedThrowingTests = [
  281. ("testBidirectionalStreaming", testBidirectionalStreaming),
  282. ("testClientStreaming", testClientStreaming),
  283. ("testServerStreaming", testServerStreaming),
  284. ("testUnary", testUnary),
  285. ]
  286. }
  287. extension ServerErrorTransformingTests {
  288. // DO NOT MODIFY: This is autogenerated, use:
  289. // `swift test --generate-linuxmain`
  290. // to regenerate.
  291. static let __allTests__ServerErrorTransformingTests = [
  292. ("testBidirectionalStreaming", testBidirectionalStreaming),
  293. ("testClientStreaming", testClientStreaming),
  294. ("testServerStreaming", testServerStreaming),
  295. ("testUnary", testUnary),
  296. ]
  297. }
  298. extension ServerThrowingTests {
  299. // DO NOT MODIFY: This is autogenerated, use:
  300. // `swift test --generate-linuxmain`
  301. // to regenerate.
  302. static let __allTests__ServerThrowingTests = [
  303. ("testBidirectionalStreaming", testBidirectionalStreaming),
  304. ("testClientStreaming", testClientStreaming),
  305. ("testServerStreaming", testServerStreaming),
  306. ("testUnary", testUnary),
  307. ]
  308. }
  309. extension ServerWebTests {
  310. // DO NOT MODIFY: This is autogenerated, use:
  311. // `swift test --generate-linuxmain`
  312. // to regenerate.
  313. static let __allTests__ServerWebTests = [
  314. ("testServerStreaming", testServerStreaming),
  315. ("testUnary", testUnary),
  316. ("testUnaryLotsOfRequests", testUnaryLotsOfRequests),
  317. ("testUnaryWithoutRequestMessage", testUnaryWithoutRequestMessage),
  318. ]
  319. }
  320. public func __allTests() -> [XCTestCaseEntry] {
  321. return [
  322. testCase(AnyServiceClientTests.__allTests__AnyServiceClientTests),
  323. testCase(ClientCancellingTests.__allTests__ClientCancellingTests),
  324. testCase(ClientClosedChannelTests.__allTests__ClientClosedChannelTests),
  325. testCase(ClientConnectionBackoffTests.__allTests__ClientConnectionBackoffTests),
  326. testCase(ClientTLSFailureTests.__allTests__ClientTLSFailureTests),
  327. testCase(ClientThrowingWhenServerReturningErrorTests.__allTests__ClientThrowingWhenServerReturningErrorTests),
  328. testCase(ClientTimeoutTests.__allTests__ClientTimeoutTests),
  329. testCase(ConnectionBackoffTests.__allTests__ConnectionBackoffTests),
  330. testCase(FunctionalTestsAnonymousClient.__allTests__FunctionalTestsAnonymousClient),
  331. testCase(FunctionalTestsInsecureTransport.__allTests__FunctionalTestsInsecureTransport),
  332. testCase(FunctionalTestsMutualAuthentication.__allTests__FunctionalTestsMutualAuthentication),
  333. testCase(GRPCChannelHandlerTests.__allTests__GRPCChannelHandlerTests),
  334. testCase(GRPCInsecureInteroperabilityTests.__allTests__GRPCInsecureInteroperabilityTests),
  335. testCase(GRPCSecureInteroperabilityTests.__allTests__GRPCSecureInteroperabilityTests),
  336. testCase(GRPCStatusCodeTests.__allTests__GRPCStatusCodeTests),
  337. testCase(GRPCStatusMessageMarshallerTests.__allTests__GRPCStatusMessageMarshallerTests),
  338. testCase(GRPCTypeSizeTests.__allTests__GRPCTypeSizeTests),
  339. testCase(HTTP1ToRawGRPCServerCodecTests.__allTests__HTTP1ToRawGRPCServerCodecTests),
  340. testCase(LengthPrefixedMessageReaderTests.__allTests__LengthPrefixedMessageReaderTests),
  341. testCase(ServerDelayedThrowingTests.__allTests__ServerDelayedThrowingTests),
  342. testCase(ServerErrorTransformingTests.__allTests__ServerErrorTransformingTests),
  343. testCase(ServerThrowingTests.__allTests__ServerThrowingTests),
  344. testCase(ServerWebTests.__allTests__ServerWebTests),
  345. ]
  346. }
  347. #endif