• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright 2021 Google Inc. All rights reserved.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *     http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 #if !canImport(ObjectiveC)
18 import XCTest
19 
20 extension FlatBuffersDoubleTests {
21   // DO NOT MODIFY: This is autogenerated, use:
22   //   `swift test --generate-linuxmain`
23   // to regenerate.
24   static let __allTests__FlatBuffersDoubleTests = [
25     ("testCreateFinish", testCreateFinish),
26     ("testCreateFinishWithPrefix", testCreateFinishWithPrefix),
27   ]
28 }
29 
30 extension FlatBuffersMonsterWriterTests {
31   // DO NOT MODIFY: This is autogenerated, use:
32   //   `swift test --generate-linuxmain`
33   // to regenerate.
34   static let __allTests__FlatBuffersMonsterWriterTests = [
35     ("testArrayOfBools", testArrayOfBools),
36     ("testCreateMonster", testCreateMonster),
37     ("testCreateMonsterPrefixed", testCreateMonsterPrefixed),
38     ("testCreateMonsterResizedBuffer", testCreateMonsterResizedBuffer),
39     ("testCreateMonsterUsingCreateMonsterMethodWithNilPos", testCreateMonsterUsingCreateMonsterMethodWithNilPos),
40     ("testCreateMonsterUsingCreateMonsterMethodWithPosX", testCreateMonsterUsingCreateMonsterMethodWithPosX),
41     ("testData", testData),
42     ("testReadFromOtherLanguages", testReadFromOtherLanguages),
43     ("testReadMonsterFromUnsafePointerWithoutCopying", testReadMonsterFromUnsafePointerWithoutCopying),
44   ]
45 }
46 
47 extension FlatBuffersMoreDefaults {
48   // DO NOT MODIFY: This is autogenerated, use:
49   //   `swift test --generate-linuxmain`
50   // to regenerate.
51   static let __allTests__FlatBuffersMoreDefaults = [
52     ("testFlatbuffersObject", testFlatbuffersObject),
53     ("testFlatbuffersObjectAPI", testFlatbuffersObjectAPI),
54   ]
55 }
56 
57 extension FlatBuffersStructsTests {
58   // DO NOT MODIFY: This is autogenerated, use:
59   //   `swift test --generate-linuxmain`
60   // to regenerate.
61   static let __allTests__FlatBuffersStructsTests = [
62     ("testWritingAndMutatingBools", testWritingAndMutatingBools),
63   ]
64 }
65 
66 extension FlatBuffersTests {
67   // DO NOT MODIFY: This is autogenerated, use:
68   //   `swift test --generate-linuxmain`
69   // to regenerate.
70   static let __allTests__FlatBuffersTests = [
71     ("testCreateFinish", testCreateFinish),
72     ("testCreateFinishWithPrefix", testCreateFinishWithPrefix),
73     ("testCreateString", testCreateString),
74     ("testEndian", testEndian),
75     ("testOffset", testOffset),
76     ("testReadCountry", testReadCountry),
77     ("testStartTable", testStartTable),
78     ("testWriteNullableStrings", testWriteNullableStrings),
79     ("testWriteOptionalValues", testWriteOptionalValues),
80   ]
81 }
82 
83 extension FlatBuffersUnionTests {
84   // DO NOT MODIFY: This is autogenerated, use:
85   //   `swift test --generate-linuxmain`
86   // to regenerate.
87   static let __allTests__FlatBuffersUnionTests = [
88     ("testCreateMonstor", testCreateMonstor),
89     ("testEndTableFinish", testEndTableFinish),
90     ("testEnumVector", testEnumVector),
91     ("testStringUnion", testStringUnion),
92     ("testUnionVector", testUnionVector),
93   ]
94 }
95 
96 extension FlatBuffersVectors {
97   // DO NOT MODIFY: This is autogenerated, use:
98   //   `swift test --generate-linuxmain`
99   // to regenerate.
100   static let __allTests__FlatBuffersVectors = [
101     ("testCreateEmptyIntArray", testCreateEmptyIntArray),
102     ("testCreateIntArray", testCreateIntArray),
103     ("testCreateSharedStringVector", testCreateSharedStringVector),
104     ("testCreateVectorOfStrings", testCreateVectorOfStrings),
105     ("testCreatingTwoCountries", testCreatingTwoCountries),
106     ("testReadDoubleArray", testReadDoubleArray),
107     ("testReadInt32Array", testReadInt32Array),
108   ]
109 }
110 
__allTestsnull111 public func __allTests() -> [XCTestCaseEntry] {
112   [
113     testCase(FlatBuffersDoubleTests.__allTests__FlatBuffersDoubleTests),
114     testCase(FlatBuffersMonsterWriterTests.__allTests__FlatBuffersMonsterWriterTests),
115     testCase(FlatBuffersMoreDefaults.__allTests__FlatBuffersMoreDefaults),
116     testCase(FlatBuffersStructsTests.__allTests__FlatBuffersStructsTests),
117     testCase(FlatBuffersTests.__allTests__FlatBuffersTests),
118     testCase(FlatBuffersUnionTests.__allTests__FlatBuffersUnionTests),
119     testCase(FlatBuffersVectors.__allTests__FlatBuffersVectors),
120   ]
121 }
122 #endif
123