XCTestManifests.swift 17 KB

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