Lines Matching refs:inventory
92 auto inventory = builder.CreateVector(inv_data, 10); in CreateFlatBufferTest() local
138 auto mloc = CreateMonster(builder, &vec, 150, 80, name, inventory, Color_Blue, in CreateFlatBufferTest()
206 auto inventory = monster->inventory(); in AccessFlatBufferTest() local
207 TEST_EQ(VectorLength(inventory), 10UL); // Works even if inventory is null. in AccessFlatBufferTest()
208 TEST_NOTNULL(inventory); in AccessFlatBufferTest()
210 for (auto it = inventory->begin(); it != inventory->end(); ++it) in AccessFlatBufferTest()
211 TEST_EQ(*it, inv_data[it - inventory->begin()]); in AccessFlatBufferTest()
301 auto inventory = monster->mutable_inventory(); in MutateFlatBuffersTest() local
302 inventory->Mutate(9, 100); in MutateFlatBuffersTest()
303 TEST_EQ(inventory->Get(9), 100); in MutateFlatBuffersTest()
304 inventory->Mutate(9, 9); in MutateFlatBuffersTest()
370 auto &inventory = monster2->inventory; in ObjectFlatBuffersTest() local
371 TEST_EQ(inventory.size(), 10UL); in ObjectFlatBuffersTest()
373 for (auto it = inventory.begin(); it != inventory.end(); ++it) in ObjectFlatBuffersTest()
374 TEST_EQ(*it, inv_data[it - inventory.begin()]); in ObjectFlatBuffersTest()