Home
last modified time | relevance | path

Searched refs:monster2 (Results 1 – 7 of 7) sorted by relevance

/external/flatbuffers/tests/
Dtest.cpp217 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()
[all …]
DJavaTest.java224 Monster monster2 = new Monster(); in TestBuffer() local
225 TestEq(monster.test(monster2) != null, true); in TestBuffer()
226 TestEq(monster2.name(), "Fred"); in TestBuffer()
DJavaScriptTest.js116 var monster2 = new MyGame.Example.Monster();
117 assert.strictEqual(monster.test(monster2) != null, true);
118 assert.strictEqual(monster2.name(), 'Fred');
Dgo_test.go143 monster2 := &example.Monster{}
144 flatbuffers.GetRootAs(buf, offset, monster2)
145 for _, monster := range []*example.Monster{monster1, monster2} {
226 var monster2 example.Monster
227 monster2.Init(table2.Bytes, table2.Pos)
229 if got := monster2.Name(); !bytes.Equal([]byte("Fred"), got) {
DphpTest.php120 $monster2 = new \MyGame\Example\Monster();
121 $assert->strictEqual($monster->GetTest($monster2) != null, true);
122 $assert->strictEqual($monster2->GetName(), 'Fred');
Dpy_test.py119 monster2 = MyGame.Example.Monster.Monster()
120 monster2.Init(table2.Bytes, table2.Pos)
122 asserter(monster2.Name() == b"Fred")
/external/flatbuffers/tests/FlatBuffers.Test/
DFlatBuffersExampleTests.cs188 var monster2 = monster.Test<Monster>().Value; in TestBuffer()
189 Assert.AreEqual("Fred", monster2.Name); in TestBuffer()