Lines Matching refs:monster2
217 auto monster2 = reinterpret_cast<const Monster *>(monster->test()); in AccessFlatBufferTest() local
218 TEST_NOTNULL(monster2); in AccessFlatBufferTest()
219 TEST_EQ_STR(monster2->name()->c_str(), "Fred"); in AccessFlatBufferTest()
344 auto monster2 = UnPackMonster(fbb1.GetBufferPointer(), &resolver); in ObjectFlatBuffersTest() local
346 fbb2.Finish(CreateMonster(fbb2, monster2.get(), &rehasher), in ObjectFlatBuffersTest()
360 TEST_EQ(monster2->hp, 80); in ObjectFlatBuffersTest()
361 TEST_EQ(monster2->mana, 150); // default in ObjectFlatBuffersTest()
362 TEST_EQ_STR(monster2->name.c_str(), "MyMonster"); in ObjectFlatBuffersTest()
364 auto &pos = monster2->pos; in ObjectFlatBuffersTest()
370 auto &inventory = monster2->inventory; in ObjectFlatBuffersTest()
376 TEST_EQ(monster2->color, Color_Blue); in ObjectFlatBuffersTest()
378 auto monster3 = monster2->test.AsMonster(); in ObjectFlatBuffersTest()
382 auto &vecofstrings = monster2->testarrayofstring; in ObjectFlatBuffersTest()
387 auto &vecofstrings2 = monster2->testarrayofstring2; in ObjectFlatBuffersTest()
392 auto &vecoftables = monster2->testarrayoftables; in ObjectFlatBuffersTest()
399 auto &tests = monster2->test4; in ObjectFlatBuffersTest()