|
1 | 1 | import XCTest |
2 | 2 |
|
| 3 | +extension APIDescriptionTests { |
| 4 | + static let __allTests = [ |
| 5 | + ("test_empty", test_empty), |
| 6 | + ("test_failsMissingMeta", test_failsMissingMeta), |
| 7 | + ("test_WithMeta", test_WithMeta), |
| 8 | + ("test_WithVersion", test_WithVersion), |
| 9 | + ("test_WithVersionAndMeta", test_WithVersionAndMeta), |
| 10 | + ] |
| 11 | +} |
| 12 | + |
3 | 13 | extension AttributeTests { |
4 | 14 | static let __allTests = [ |
5 | 15 | ("test_AttributeIsTransformedAttribute", test_AttributeIsTransformedAttribute), |
@@ -41,54 +51,98 @@ extension ComputedPropertiesTests { |
41 | 51 |
|
42 | 52 | extension DocumentTests { |
43 | 53 | static let __allTests = [ |
| 54 | + ("test_errorDocumentFailsWithNoAPIDescription", test_errorDocumentFailsWithNoAPIDescription), |
44 | 55 | ("test_errorDocumentNoMeta", test_errorDocumentNoMeta), |
45 | 56 | ("test_errorDocumentNoMeta_encode", test_errorDocumentNoMeta_encode), |
| 57 | + ("test_errorDocumentNoMetaWithAPIDescription", test_errorDocumentNoMetaWithAPIDescription), |
| 58 | + ("test_errorDocumentNoMetaWithAPIDescription_encode", test_errorDocumentNoMetaWithAPIDescription_encode), |
46 | 59 | ("test_manyDocumentNoIncludes", test_manyDocumentNoIncludes), |
47 | 60 | ("test_manyDocumentNoIncludes_encode", test_manyDocumentNoIncludes_encode), |
| 61 | + ("test_manyDocumentNoIncludesWithAPIDescription", test_manyDocumentNoIncludesWithAPIDescription), |
| 62 | + ("test_manyDocumentNoIncludesWithAPIDescription_encode", test_manyDocumentNoIncludesWithAPIDescription_encode), |
48 | 63 | ("test_manyDocumentSomeIncludes", test_manyDocumentSomeIncludes), |
49 | 64 | ("test_manyDocumentSomeIncludes_encode", test_manyDocumentSomeIncludes_encode), |
| 65 | + ("test_manyDocumentSomeIncludesWithAPIDescription", test_manyDocumentSomeIncludesWithAPIDescription), |
| 66 | + ("test_manyDocumentSomeIncludesWithAPIDescription_encode", test_manyDocumentSomeIncludesWithAPIDescription_encode), |
50 | 67 | ("test_metaDataDocument", test_metaDataDocument), |
51 | 68 | ("test_metaDataDocument_encode", test_metaDataDocument_encode), |
| 69 | + ("test_metaDataDocumentFailsIfMissingAPIDescription", test_metaDataDocumentFailsIfMissingAPIDescription), |
| 70 | + ("test_metaDataDocumentWithAPIDescription", test_metaDataDocumentWithAPIDescription), |
| 71 | + ("test_metaDataDocumentWithAPIDescription_encode", test_metaDataDocumentWithAPIDescription_encode), |
52 | 72 | ("test_metaDataDocumentWithLinks", test_metaDataDocumentWithLinks), |
53 | 73 | ("test_metaDataDocumentWithLinks_encode", test_metaDataDocumentWithLinks_encode), |
| 74 | + ("test_metaDataDocumentWithLinksWithAPIDescription", test_metaDataDocumentWithLinksWithAPIDescription), |
| 75 | + ("test_metaDataDocumentWithLinksWithAPIDescription_encode", test_metaDataDocumentWithLinksWithAPIDescription_encode), |
54 | 76 | ("test_metaDocumentMissingMeta", test_metaDocumentMissingMeta), |
55 | 77 | ("test_singleDocument_PolyPrimaryResource", test_singleDocument_PolyPrimaryResource), |
56 | 78 | ("test_singleDocument_PolyPrimaryResource_encode", test_singleDocument_PolyPrimaryResource_encode), |
| 79 | + ("test_singleDocument_PolyPrimaryResourceWithAPIDescription", test_singleDocument_PolyPrimaryResourceWithAPIDescription), |
| 80 | + ("test_singleDocument_PolyPrimaryResourceWithAPIDescription_encode", test_singleDocument_PolyPrimaryResourceWithAPIDescription_encode), |
57 | 81 | ("test_singleDocumentNoIncludes", test_singleDocumentNoIncludes), |
58 | 82 | ("test_singleDocumentNoIncludes_encode", test_singleDocumentNoIncludes_encode), |
| 83 | + ("test_singleDocumentNoIncludesMissingAPIDescription", test_singleDocumentNoIncludesMissingAPIDescription), |
59 | 84 | ("test_singleDocumentNoIncludesMissingMetadata", test_singleDocumentNoIncludesMissingMetadata), |
60 | 85 | ("test_singleDocumentNoIncludesOptionalNotNull", test_singleDocumentNoIncludesOptionalNotNull), |
61 | 86 | ("test_singleDocumentNoIncludesOptionalNotNull_encode", test_singleDocumentNoIncludesOptionalNotNull_encode), |
| 87 | + ("test_singleDocumentNoIncludesOptionalNotNullWithAPIDescription", test_singleDocumentNoIncludesOptionalNotNullWithAPIDescription), |
| 88 | + ("test_singleDocumentNoIncludesOptionalNotNullWithAPIDescription_encode", test_singleDocumentNoIncludesOptionalNotNullWithAPIDescription_encode), |
| 89 | + ("test_singleDocumentNoIncludesWithAPIDescription", test_singleDocumentNoIncludesWithAPIDescription), |
| 90 | + ("test_singleDocumentNoIncludesWithAPIDescription_encode", test_singleDocumentNoIncludesWithAPIDescription_encode), |
62 | 91 | ("test_singleDocumentNoIncludesWithLinks", test_singleDocumentNoIncludesWithLinks), |
63 | 92 | ("test_singleDocumentNoIncludesWithLinks_encode", test_singleDocumentNoIncludesWithLinks_encode), |
| 93 | + ("test_singleDocumentNoIncludesWithLinksWithAPIDescription", test_singleDocumentNoIncludesWithLinksWithAPIDescription), |
| 94 | + ("test_singleDocumentNoIncludesWithLinksWithAPIDescription_encode", test_singleDocumentNoIncludesWithLinksWithAPIDescription_encode), |
64 | 95 | ("test_singleDocumentNoIncludesWithMetadata", test_singleDocumentNoIncludesWithMetadata), |
65 | 96 | ("test_singleDocumentNoIncludesWithMetadata_encode", test_singleDocumentNoIncludesWithMetadata_encode), |
66 | 97 | ("test_singleDocumentNoIncludesWithMetadataMissingLinks", test_singleDocumentNoIncludesWithMetadataMissingLinks), |
| 98 | + ("test_singleDocumentNoIncludesWithMetadataWithAPIDescription", test_singleDocumentNoIncludesWithMetadataWithAPIDescription), |
| 99 | + ("test_singleDocumentNoIncludesWithMetadataWithAPIDescription_encode", test_singleDocumentNoIncludesWithMetadataWithAPIDescription_encode), |
67 | 100 | ("test_singleDocumentNoIncludesWithMetadataWithLinks", test_singleDocumentNoIncludesWithMetadataWithLinks), |
68 | 101 | ("test_singleDocumentNoIncludesWithMetadataWithLinks_encode", test_singleDocumentNoIncludesWithMetadataWithLinks_encode), |
| 102 | + ("test_singleDocumentNoIncludesWithMetadataWithLinksWithAPIDescription", test_singleDocumentNoIncludesWithMetadataWithLinksWithAPIDescription), |
| 103 | + ("test_singleDocumentNoIncludesWithMetadataWithLinksWithAPIDescription_encode", test_singleDocumentNoIncludesWithMetadataWithLinksWithAPIDescription_encode), |
69 | 104 | ("test_singleDocumentNoIncludesWithSomeIncludesMetadataWithLinks_encode", test_singleDocumentNoIncludesWithSomeIncludesMetadataWithLinks_encode), |
| 105 | + ("test_singleDocumentNoIncludesWithSomeIncludesMetadataWithLinksWithAPIDescription_encode", test_singleDocumentNoIncludesWithSomeIncludesMetadataWithLinksWithAPIDescription_encode), |
70 | 106 | ("test_singleDocumentNoIncludesWithSomeIncludesWithMetadataWithLinks", test_singleDocumentNoIncludesWithSomeIncludesWithMetadataWithLinks), |
| 107 | + ("test_singleDocumentNoIncludesWithSomeIncludesWithMetadataWithLinksWithAPIDescription", test_singleDocumentNoIncludesWithSomeIncludesWithMetadataWithLinksWithAPIDescription), |
71 | 108 | ("test_singleDocumentNonOptionalFailsOnNull", test_singleDocumentNonOptionalFailsOnNull), |
72 | 109 | ("test_singleDocumentNull", test_singleDocumentNull), |
73 | 110 | ("test_singleDocumentNull_encode", test_singleDocumentNull_encode), |
| 111 | + ("test_singleDocumentNullFailsWithNoAPIDescription", test_singleDocumentNullFailsWithNoAPIDescription), |
74 | 112 | ("test_singleDocumentNullWithAPIDescription", test_singleDocumentNullWithAPIDescription), |
75 | 113 | ("test_singleDocumentNullWithAPIDescription_encode", test_singleDocumentNullWithAPIDescription_encode), |
76 | 114 | ("test_singleDocumentSomeIncludes", test_singleDocumentSomeIncludes), |
77 | 115 | ("test_singleDocumentSomeIncludes_encode", test_singleDocumentSomeIncludes_encode), |
| 116 | + ("test_singleDocumentSomeIncludesWithAPIDescription", test_singleDocumentSomeIncludesWithAPIDescription), |
| 117 | + ("test_singleDocumentSomeIncludesWithAPIDescription_encode", test_singleDocumentSomeIncludesWithAPIDescription_encode), |
78 | 118 | ("test_singleDocumentSomeIncludesWithMetadata", test_singleDocumentSomeIncludesWithMetadata), |
79 | 119 | ("test_singleDocumentSomeIncludesWithMetadata_encode", test_singleDocumentSomeIncludesWithMetadata_encode), |
| 120 | + ("test_singleDocumentSomeIncludesWithMetadataWithAPIDescription", test_singleDocumentSomeIncludesWithMetadataWithAPIDescription), |
| 121 | + ("test_singleDocumentSomeIncludesWithMetadataWithAPIDescription_encode", test_singleDocumentSomeIncludesWithMetadataWithAPIDescription_encode), |
80 | 122 | ("test_unknownErrorDocumentMissingLinks", test_unknownErrorDocumentMissingLinks), |
81 | 123 | ("test_unknownErrorDocumentMissingLinks_encode", test_unknownErrorDocumentMissingLinks_encode), |
| 124 | + ("test_unknownErrorDocumentMissingLinksWithAPIDescription", test_unknownErrorDocumentMissingLinksWithAPIDescription), |
| 125 | + ("test_unknownErrorDocumentMissingLinksWithAPIDescription_encode", test_unknownErrorDocumentMissingLinksWithAPIDescription_encode), |
82 | 126 | ("test_unknownErrorDocumentMissingMeta", test_unknownErrorDocumentMissingMeta), |
83 | 127 | ("test_unknownErrorDocumentMissingMeta_encode", test_unknownErrorDocumentMissingMeta_encode), |
| 128 | + ("test_unknownErrorDocumentMissingMetaWithAPIDescription", test_unknownErrorDocumentMissingMetaWithAPIDescription), |
| 129 | + ("test_unknownErrorDocumentMissingMetaWithAPIDescription_encode", test_unknownErrorDocumentMissingMetaWithAPIDescription_encode), |
84 | 130 | ("test_unknownErrorDocumentNoMeta", test_unknownErrorDocumentNoMeta), |
85 | 131 | ("test_unknownErrorDocumentNoMeta_encode", test_unknownErrorDocumentNoMeta_encode), |
| 132 | + ("test_unknownErrorDocumentNoMetaWithAPIDescription", test_unknownErrorDocumentNoMetaWithAPIDescription), |
| 133 | + ("test_unknownErrorDocumentNoMetaWithAPIDescription_encode", test_unknownErrorDocumentNoMetaWithAPIDescription_encode), |
86 | 134 | ("test_unknownErrorDocumentWithLinks", test_unknownErrorDocumentWithLinks), |
87 | 135 | ("test_unknownErrorDocumentWithLinks_encode", test_unknownErrorDocumentWithLinks_encode), |
| 136 | + ("test_unknownErrorDocumentWithLinksWithAPIDescription", test_unknownErrorDocumentWithLinksWithAPIDescription), |
| 137 | + ("test_unknownErrorDocumentWithLinksWithAPIDescription_encode", test_unknownErrorDocumentWithLinksWithAPIDescription_encode), |
88 | 138 | ("test_unknownErrorDocumentWithMeta", test_unknownErrorDocumentWithMeta), |
89 | 139 | ("test_unknownErrorDocumentWithMeta_encode", test_unknownErrorDocumentWithMeta_encode), |
| 140 | + ("test_unknownErrorDocumentWithMetaWithAPIDescription", test_unknownErrorDocumentWithMetaWithAPIDescription), |
| 141 | + ("test_unknownErrorDocumentWithMetaWithAPIDescription_encode", test_unknownErrorDocumentWithMetaWithAPIDescription_encode), |
90 | 142 | ("test_unknownErrorDocumentWithMetaWithLinks", test_unknownErrorDocumentWithMetaWithLinks), |
91 | 143 | ("test_unknownErrorDocumentWithMetaWithLinks_encode", test_unknownErrorDocumentWithMetaWithLinks_encode), |
| 144 | + ("test_unknownErrorDocumentWithMetaWithLinksWithAPIDescription", test_unknownErrorDocumentWithMetaWithLinksWithAPIDescription), |
| 145 | + ("test_unknownErrorDocumentWithMetaWithLinksWithAPIDescription_encode", test_unknownErrorDocumentWithMetaWithLinksWithAPIDescription_encode), |
92 | 146 | ] |
93 | 147 | } |
94 | 148 |
|
@@ -261,6 +315,7 @@ extension ResourceBodyTests { |
261 | 315 | #if !os(macOS) |
262 | 316 | public func __allTests() -> [XCTestCaseEntry] { |
263 | 317 | return [ |
| 318 | + testCase(APIDescriptionTests.__allTests), |
264 | 319 | testCase(AttributeTests.__allTests), |
265 | 320 | testCase(Attribute_FunctorTests.__allTests), |
266 | 321 | testCase(Attribute_LiteralTests.__allTests), |
|
0 commit comments