XCTestManifests.swift 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. import XCTest
  2. extension MimeTypeTests {
  3. static let __allTests = [
  4. ("testCaseInsensitivity", testCaseInsensitivity),
  5. ("testCorrectTypes", testCorrectTypes),
  6. ("testDefaultValue", testDefaultValue),
  7. ("testTypeExtension", testTypeExtension),
  8. ]
  9. }
  10. extension SwifterTestsHttpParser {
  11. static let __allTests = [
  12. ("testParser", testParser),
  13. ]
  14. }
  15. extension SwifterTestsHttpRouter {
  16. static let __allTests = [
  17. ("testHttpRouterEmptyTail", testHttpRouterEmptyTail),
  18. ("testHttpRouterHandlesOverlappingPaths", testHttpRouterHandlesOverlappingPaths),
  19. ("testHttpRouterMultiplePathSegmentWildcards", testHttpRouterMultiplePathSegmentWildcards),
  20. ("testHttpRouterPercentEncodedPathSegments", testHttpRouterPercentEncodedPathSegments),
  21. ("testHttpRouterSimplePathSegments", testHttpRouterSimplePathSegments),
  22. ("testHttpRouterSinglePathSegmentWildcard", testHttpRouterSinglePathSegmentWildcard),
  23. ("testHttpRouterSlashRoot", testHttpRouterSlashRoot),
  24. ("testHttpRouterVariables", testHttpRouterVariables),
  25. ]
  26. }
  27. extension SwifterTestsStringExtensions {
  28. static let __allTests = [
  29. ("testBASE64", testBASE64),
  30. ("testMiscRemovePercentEncoding", testMiscRemovePercentEncoding),
  31. ("testMiscReplace", testMiscReplace),
  32. ("testMiscTrim", testMiscTrim),
  33. ("testMiscUnquote", testMiscUnquote),
  34. ("testSHA1", testSHA1),
  35. ]
  36. }
  37. extension SwifterTestsWebSocketSession {
  38. static let __allTests = [
  39. ("testParser", testParser),
  40. ]
  41. }
  42. #if !os(macOS)
  43. public func __allTests() -> [XCTestCaseEntry] {
  44. return [
  45. testCase(MimeTypeTests.__allTests),
  46. testCase(SwifterTestsHttpParser.__allTests),
  47. testCase(SwifterTestsHttpRouter.__allTests),
  48. testCase(SwifterTestsStringExtensions.__allTests),
  49. testCase(SwifterTestsWebSocketSession.__allTests),
  50. ]
  51. }
  52. #endif