XCTestManifests.swift 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345
  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 ClientTLSFailureTests {
  40. // DO NOT MODIFY: This is autogenerated, use:
  41. // `swift test --generate-linuxmain`
  42. // to regenerate.
  43. static let __allTests__ClientTLSFailureTests = [
  44. ("testClientConnectionFailsWhenHostnameIsNotValid", testClientConnectionFailsWhenHostnameIsNotValid),
  45. ("testClientConnectionFailsWhenProtocolCanNotBeNegotiated", testClientConnectionFailsWhenProtocolCanNotBeNegotiated),
  46. ("testClientConnectionFailsWhenServerIsUnknown", testClientConnectionFailsWhenServerIsUnknown),
  47. ]
  48. }
  49. extension ClientThrowingWhenServerReturningErrorTests {
  50. // DO NOT MODIFY: This is autogenerated, use:
  51. // `swift test --generate-linuxmain`
  52. // to regenerate.
  53. static let __allTests__ClientThrowingWhenServerReturningErrorTests = [
  54. ("testBidirectionalStreaming", testBidirectionalStreaming),
  55. ("testClientStreaming", testClientStreaming),
  56. ("testServerStreaming", testServerStreaming),
  57. ("testUnary", testUnary),
  58. ]
  59. }
  60. extension ClientTimeoutTests {
  61. // DO NOT MODIFY: This is autogenerated, use:
  62. // `swift test --generate-linuxmain`
  63. // to regenerate.
  64. static let __allTests__ClientTimeoutTests = [
  65. ("testBidirectionalStreamingTimeoutAfterSending", testBidirectionalStreamingTimeoutAfterSending),
  66. ("testBidirectionalStreamingTimeoutBeforeSending", testBidirectionalStreamingTimeoutBeforeSending),
  67. ("testClientStreamingTimeoutAfterSending", testClientStreamingTimeoutAfterSending),
  68. ("testClientStreamingTimeoutBeforeSending", testClientStreamingTimeoutBeforeSending),
  69. ("testServerStreamingTimeoutAfterSending", testServerStreamingTimeoutAfterSending),
  70. ("testUnaryTimeoutAfterSending", testUnaryTimeoutAfterSending),
  71. ]
  72. }
  73. extension FunctionalTestsAnonymousClient {
  74. // DO NOT MODIFY: This is autogenerated, use:
  75. // `swift test --generate-linuxmain`
  76. // to regenerate.
  77. static let __allTests__FunctionalTestsAnonymousClient = [
  78. ("testBidirectionalStreamingBatched", testBidirectionalStreamingBatched),
  79. ("testBidirectionalStreamingLotsOfMessagesBatched", testBidirectionalStreamingLotsOfMessagesBatched),
  80. ("testBidirectionalStreamingLotsOfMessagesPingPong", testBidirectionalStreamingLotsOfMessagesPingPong),
  81. ("testBidirectionalStreamingPingPong", testBidirectionalStreamingPingPong),
  82. ("testClientStreaming", testClientStreaming),
  83. ("testClientStreamingLotsOfMessages", testClientStreamingLotsOfMessages),
  84. ("testServerStreaming", testServerStreaming),
  85. ("testServerStreamingLotsOfMessages", testServerStreamingLotsOfMessages),
  86. ("testUnary", testUnary),
  87. ("testUnaryEmptyRequest", testUnaryEmptyRequest),
  88. ("testUnaryLotsOfRequests", testUnaryLotsOfRequests),
  89. ("testUnaryWithLargeData", testUnaryWithLargeData),
  90. ]
  91. }
  92. extension FunctionalTestsInsecureTransport {
  93. // DO NOT MODIFY: This is autogenerated, use:
  94. // `swift test --generate-linuxmain`
  95. // to regenerate.
  96. static let __allTests__FunctionalTestsInsecureTransport = [
  97. ("testBidirectionalStreamingBatched", testBidirectionalStreamingBatched),
  98. ("testBidirectionalStreamingLotsOfMessagesBatched", testBidirectionalStreamingLotsOfMessagesBatched),
  99. ("testBidirectionalStreamingLotsOfMessagesPingPong", testBidirectionalStreamingLotsOfMessagesPingPong),
  100. ("testBidirectionalStreamingPingPong", testBidirectionalStreamingPingPong),
  101. ("testClientStreaming", testClientStreaming),
  102. ("testClientStreamingLotsOfMessages", testClientStreamingLotsOfMessages),
  103. ("testServerStreaming", testServerStreaming),
  104. ("testServerStreamingLotsOfMessages", testServerStreamingLotsOfMessages),
  105. ("testUnary", testUnary),
  106. ("testUnaryEmptyRequest", testUnaryEmptyRequest),
  107. ("testUnaryLotsOfRequests", testUnaryLotsOfRequests),
  108. ("testUnaryWithLargeData", testUnaryWithLargeData),
  109. ]
  110. }
  111. extension FunctionalTestsMutualAuthentication {
  112. // DO NOT MODIFY: This is autogenerated, use:
  113. // `swift test --generate-linuxmain`
  114. // to regenerate.
  115. static let __allTests__FunctionalTestsMutualAuthentication = [
  116. ("testBidirectionalStreamingBatched", testBidirectionalStreamingBatched),
  117. ("testBidirectionalStreamingLotsOfMessagesBatched", testBidirectionalStreamingLotsOfMessagesBatched),
  118. ("testBidirectionalStreamingLotsOfMessagesPingPong", testBidirectionalStreamingLotsOfMessagesPingPong),
  119. ("testBidirectionalStreamingPingPong", testBidirectionalStreamingPingPong),
  120. ("testClientStreaming", testClientStreaming),
  121. ("testClientStreamingLotsOfMessages", testClientStreamingLotsOfMessages),
  122. ("testServerStreaming", testServerStreaming),
  123. ("testServerStreamingLotsOfMessages", testServerStreamingLotsOfMessages),
  124. ("testUnary", testUnary),
  125. ("testUnaryEmptyRequest", testUnaryEmptyRequest),
  126. ("testUnaryLotsOfRequests", testUnaryLotsOfRequests),
  127. ("testUnaryWithLargeData", testUnaryWithLargeData),
  128. ]
  129. }
  130. extension GRPCChannelHandlerTests {
  131. // DO NOT MODIFY: This is autogenerated, use:
  132. // `swift test --generate-linuxmain`
  133. // to regenerate.
  134. static let __allTests__GRPCChannelHandlerTests = [
  135. ("testImplementedMethodReturnsHeadersMessageAndStatus", testImplementedMethodReturnsHeadersMessageAndStatus),
  136. ("testImplementedMethodReturnsStatusForBadlyFormedProto", testImplementedMethodReturnsStatusForBadlyFormedProto),
  137. ("testUnimplementedMethodReturnsUnimplementedStatus", testUnimplementedMethodReturnsUnimplementedStatus),
  138. ]
  139. }
  140. extension GRPCInsecureInteroperabilityTests {
  141. // DO NOT MODIFY: This is autogenerated, use:
  142. // `swift test --generate-linuxmain`
  143. // to regenerate.
  144. static let __allTests__GRPCInsecureInteroperabilityTests = [
  145. ("testCacheableUnary", testCacheableUnary),
  146. ("testCancelAfterBegin", testCancelAfterBegin),
  147. ("testCancelAfterFirstResponse", testCancelAfterFirstResponse),
  148. ("testClientStreaming", testClientStreaming),
  149. ("testCustomMetadata", testCustomMetadata),
  150. ("testEmptyStream", testEmptyStream),
  151. ("testEmptyUnary", testEmptyUnary),
  152. ("testLargeUnary", testLargeUnary),
  153. ("testPingPong", testPingPong),
  154. ("testServerStreaming", testServerStreaming),
  155. ("testSpecialStatusAndMessage", testSpecialStatusAndMessage),
  156. ("testStatusCodeAndMessage", testStatusCodeAndMessage),
  157. ("testTimeoutOnSleepingServer", testTimeoutOnSleepingServer),
  158. ("testUnimplementedMethod", testUnimplementedMethod),
  159. ("testUnimplementedService", testUnimplementedService),
  160. ]
  161. }
  162. extension GRPCSecureInteroperabilityTests {
  163. // DO NOT MODIFY: This is autogenerated, use:
  164. // `swift test --generate-linuxmain`
  165. // to regenerate.
  166. static let __allTests__GRPCSecureInteroperabilityTests = [
  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 GRPCStatusCodeTests {
  185. // DO NOT MODIFY: This is autogenerated, use:
  186. // `swift test --generate-linuxmain`
  187. // to regenerate.
  188. static let __allTests__GRPCStatusCodeTests = [
  189. ("testBadGateway", testBadGateway),
  190. ("testBadRequest", testBadRequest),
  191. ("testForbidden", testForbidden),
  192. ("testGatewayTimeout", testGatewayTimeout),
  193. ("testNotFound", testNotFound),
  194. ("testServiceUnavailable", testServiceUnavailable),
  195. ("testStatusCodeAndMessageAreRespectedForNon200Responses", testStatusCodeAndMessageAreRespectedForNon200Responses),
  196. ("testTooManyRequests", testTooManyRequests),
  197. ("testUnauthorized", testUnauthorized),
  198. ]
  199. }
  200. extension GRPCStatusMessageMarshallerTests {
  201. // DO NOT MODIFY: This is autogenerated, use:
  202. // `swift test --generate-linuxmain`
  203. // to regenerate.
  204. static let __allTests__GRPCStatusMessageMarshallerTests = [
  205. ("testASCIIMarshallingAndUnmarshalling", testASCIIMarshallingAndUnmarshalling),
  206. ("testPercentMarshallingAndUnmarshalling", testPercentMarshallingAndUnmarshalling),
  207. ("testUnicodeMarshalling", testUnicodeMarshalling),
  208. ]
  209. }
  210. extension GRPCTypeSizeTests {
  211. // DO NOT MODIFY: This is autogenerated, use:
  212. // `swift test --generate-linuxmain`
  213. // to regenerate.
  214. static let __allTests__GRPCTypeSizeTests = [
  215. ("testGRPCClientRequestPart", testGRPCClientRequestPart),
  216. ("testGRPCClientResponsePart", testGRPCClientResponsePart),
  217. ("testGRPCStatus", testGRPCStatus),
  218. ("testRawGRPCClientRequestPart", testRawGRPCClientRequestPart),
  219. ("testRawGRPCClientResponsePart", testRawGRPCClientResponsePart),
  220. ]
  221. }
  222. extension HTTP1ToRawGRPCServerCodecTests {
  223. // DO NOT MODIFY: This is autogenerated, use:
  224. // `swift test --generate-linuxmain`
  225. // to regenerate.
  226. static let __allTests__HTTP1ToRawGRPCServerCodecTests = [
  227. ("testInternalErrorStatusIsReturnedIfMessageCannotBeDeserialized", testInternalErrorStatusIsReturnedIfMessageCannotBeDeserialized),
  228. ("testInternalErrorStatusIsReturnedWhenSendingTrailersInRequest", testInternalErrorStatusIsReturnedWhenSendingTrailersInRequest),
  229. ("testInternalErrorStatusReturnedWhenCompressionFlagIsSet", testInternalErrorStatusReturnedWhenCompressionFlagIsSet),
  230. ("testMessageCanBeSentAcrossMultipleByteBuffers", testMessageCanBeSentAcrossMultipleByteBuffers),
  231. ("testOnlyOneStatusIsReturned", testOnlyOneStatusIsReturned),
  232. ]
  233. }
  234. extension LengthPrefixedMessageReaderTests {
  235. // DO NOT MODIFY: This is autogenerated, use:
  236. // `swift test --generate-linuxmain`
  237. // to regenerate.
  238. static let __allTests__LengthPrefixedMessageReaderTests = [
  239. ("testAppendReadsAllBytes", testAppendReadsAllBytes),
  240. ("testNextMessageDeliveredAcrossMultipleByteBuffers", testNextMessageDeliveredAcrossMultipleByteBuffers),
  241. ("testNextMessageDoesNotThrowWhenCompressionFlagIsExpectedButNotSet", testNextMessageDoesNotThrowWhenCompressionFlagIsExpectedButNotSet),
  242. ("testNextMessageReturnsMessageForZeroLengthMessage", testNextMessageReturnsMessageForZeroLengthMessage),
  243. ("testNextMessageReturnsMessageIsAppendedInOneBuffer", testNextMessageReturnsMessageIsAppendedInOneBuffer),
  244. ("testNextMessageReturnsNilWhenNoBytesAppended", testNextMessageReturnsNilWhenNoBytesAppended),
  245. ("testNextMessageReturnsNilWhenNoMessageBytesAreAvailable", testNextMessageReturnsNilWhenNoMessageBytesAreAvailable),
  246. ("testNextMessageReturnsNilWhenNoMessageLengthIsAvailable", testNextMessageReturnsNilWhenNoMessageLengthIsAvailable),
  247. ("testNextMessageReturnsNilWhenNotAllMessageBytesAreAvailable", testNextMessageReturnsNilWhenNotAllMessageBytesAreAvailable),
  248. ("testNextMessageReturnsNilWhenNotAllMessageLengthIsAvailable", testNextMessageReturnsNilWhenNotAllMessageLengthIsAvailable),
  249. ("testNextMessageThrowsWhenCompressionFlagIsSetButNotExpected", testNextMessageThrowsWhenCompressionFlagIsSetButNotExpected),
  250. ("testNextMessageThrowsWhenCompressionMechanismIsNotSupported", testNextMessageThrowsWhenCompressionMechanismIsNotSupported),
  251. ("testNextMessageWhenMultipleMessagesAreBuffered", testNextMessageWhenMultipleMessagesAreBuffered),
  252. ]
  253. }
  254. extension ServerDelayedThrowingTests {
  255. // DO NOT MODIFY: This is autogenerated, use:
  256. // `swift test --generate-linuxmain`
  257. // to regenerate.
  258. static let __allTests__ServerDelayedThrowingTests = [
  259. ("testBidirectionalStreaming", testBidirectionalStreaming),
  260. ("testClientStreaming", testClientStreaming),
  261. ("testServerStreaming", testServerStreaming),
  262. ("testUnary", testUnary),
  263. ]
  264. }
  265. extension ServerErrorTransformingTests {
  266. // DO NOT MODIFY: This is autogenerated, use:
  267. // `swift test --generate-linuxmain`
  268. // to regenerate.
  269. static let __allTests__ServerErrorTransformingTests = [
  270. ("testBidirectionalStreaming", testBidirectionalStreaming),
  271. ("testClientStreaming", testClientStreaming),
  272. ("testServerStreaming", testServerStreaming),
  273. ("testUnary", testUnary),
  274. ]
  275. }
  276. extension ServerThrowingTests {
  277. // DO NOT MODIFY: This is autogenerated, use:
  278. // `swift test --generate-linuxmain`
  279. // to regenerate.
  280. static let __allTests__ServerThrowingTests = [
  281. ("testBidirectionalStreaming", testBidirectionalStreaming),
  282. ("testClientStreaming", testClientStreaming),
  283. ("testServerStreaming", testServerStreaming),
  284. ("testUnary", testUnary),
  285. ]
  286. }
  287. extension ServerWebTests {
  288. // DO NOT MODIFY: This is autogenerated, use:
  289. // `swift test --generate-linuxmain`
  290. // to regenerate.
  291. static let __allTests__ServerWebTests = [
  292. ("testServerStreaming", testServerStreaming),
  293. ("testUnary", testUnary),
  294. ("testUnaryLotsOfRequests", testUnaryLotsOfRequests),
  295. ("testUnaryWithoutRequestMessage", testUnaryWithoutRequestMessage),
  296. ]
  297. }
  298. public func __allTests() -> [XCTestCaseEntry] {
  299. return [
  300. testCase(AnyServiceClientTests.__allTests__AnyServiceClientTests),
  301. testCase(ClientCancellingTests.__allTests__ClientCancellingTests),
  302. testCase(ClientClosedChannelTests.__allTests__ClientClosedChannelTests),
  303. testCase(ClientTLSFailureTests.__allTests__ClientTLSFailureTests),
  304. testCase(ClientThrowingWhenServerReturningErrorTests.__allTests__ClientThrowingWhenServerReturningErrorTests),
  305. testCase(ClientTimeoutTests.__allTests__ClientTimeoutTests),
  306. testCase(FunctionalTestsAnonymousClient.__allTests__FunctionalTestsAnonymousClient),
  307. testCase(FunctionalTestsInsecureTransport.__allTests__FunctionalTestsInsecureTransport),
  308. testCase(FunctionalTestsMutualAuthentication.__allTests__FunctionalTestsMutualAuthentication),
  309. testCase(GRPCChannelHandlerTests.__allTests__GRPCChannelHandlerTests),
  310. testCase(GRPCInsecureInteroperabilityTests.__allTests__GRPCInsecureInteroperabilityTests),
  311. testCase(GRPCSecureInteroperabilityTests.__allTests__GRPCSecureInteroperabilityTests),
  312. testCase(GRPCStatusCodeTests.__allTests__GRPCStatusCodeTests),
  313. testCase(GRPCStatusMessageMarshallerTests.__allTests__GRPCStatusMessageMarshallerTests),
  314. testCase(GRPCTypeSizeTests.__allTests__GRPCTypeSizeTests),
  315. testCase(HTTP1ToRawGRPCServerCodecTests.__allTests__HTTP1ToRawGRPCServerCodecTests),
  316. testCase(LengthPrefixedMessageReaderTests.__allTests__LengthPrefixedMessageReaderTests),
  317. testCase(ServerDelayedThrowingTests.__allTests__ServerDelayedThrowingTests),
  318. testCase(ServerErrorTransformingTests.__allTests__ServerErrorTransformingTests),
  319. testCase(ServerThrowingTests.__allTests__ServerThrowingTests),
  320. testCase(ServerWebTests.__allTests__ServerWebTests),
  321. ]
  322. }
  323. #endif