• Home
  • Raw
  • Download

Lines Matching refs:GlobalState

92     GlobalState = std::make_unique<GlobalTestState>();  in SetUpTestCase()
94 AppendingTypeTableBuilder Builder(GlobalState->Allocator); in SetUpTestCase()
105 AR.Name = GlobalState->Strings.save(Stream.str()); in SetUpTestCase()
106 GlobalState->Records.push_back(AR); in SetUpTestCase()
107 GlobalState->Indices.push_back(Builder.writeLeafType(AR)); in SetUpTestCase()
110 GlobalState->TypeVector.push_back(Type); in SetUpTestCase()
112 GlobalState->AllOffsets.push_back( in SetUpTestCase()
113 {GlobalState->Indices.back(), ulittle32_t(Offset)}); in SetUpTestCase()
117 GlobalState->ItemStream.setItems(GlobalState->TypeVector); in SetUpTestCase()
118 GlobalState->TypeArray = VarStreamArray<CVType>(GlobalState->ItemStream); in SetUpTestCase()
121 static void TearDownTestCase() { GlobalState.reset(); } in TearDownTestCase()
134 if (GlobalState->TypeVector[Index] != Types.getType(TI)) in ValidateDatabaseRecord()
145 if (GlobalState->TypeVector[TI.toArrayIndex()] != in ValidateVisitedRecord()
149 if (GlobalState->Records[TI.toArrayIndex()] != in ValidateVisitedRecord()
184 uint8_t *Buffer = GlobalState->Allocator.Allocate<uint8_t>(Size); in createPartialOffsets()
189 consumeError(Writer.writeObject(GlobalState->AllOffsets[I])); in createPartialOffsets()
197 static std::unique_ptr<GlobalTestState> GlobalState; member in __anonbaeb340d0111::RandomAccessVisitorTest
202 RandomAccessVisitorTest::GlobalState; member in __anonbaeb340d0111::RandomAccessVisitorTest
206 TestState->Offsets = createPartialOffsets(GlobalState->Stream, {0, 8}); in TEST_F()
207 LazyRandomTypeCollection Types(GlobalState->TypeArray, in TEST_F()
208 GlobalState->TypeVector.size(), in TEST_F()
235 TestState->Offsets = createPartialOffsets(GlobalState->Stream, {0, 8}); in TEST_F()
239 LazyRandomTypeCollection Types(GlobalState->TypeArray, in TEST_F()
240 GlobalState->TypeVector.size(), in TEST_F()
264 TestState->Offsets = createPartialOffsets(GlobalState->Stream, {0, 8}); in TEST_F()
268 LazyRandomTypeCollection Types(GlobalState->TypeArray, in TEST_F()
269 GlobalState->TypeVector.size(), in TEST_F()
294 TestState->Offsets = createPartialOffsets(GlobalState->Stream, {0, 8}); in TEST_F()
298 LazyRandomTypeCollection Types(GlobalState->TypeArray, in TEST_F()
299 GlobalState->TypeVector.size(), in TEST_F()
324 TestState->Offsets = createPartialOffsets(GlobalState->Stream, {0, 4, 9}); in TEST_F()
328 LazyRandomTypeCollection Types(GlobalState->TypeArray, in TEST_F()
329 GlobalState->TypeVector.size(), in TEST_F()
351 AppendingTypeTableBuilder Builder(GlobalState->Allocator); in TEST_F()