Searched refs:monster2 (Results 1 – 7 of 7) sorted by relevance
/external/flatbuffers/tests/ |
D | test.cpp | 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() [all …]
|
D | JavaTest.java | 224 Monster monster2 = new Monster(); in TestBuffer() local 225 TestEq(monster.test(monster2) != null, true); in TestBuffer() 226 TestEq(monster2.name(), "Fred"); in TestBuffer()
|
D | JavaScriptTest.js | 116 var monster2 = new MyGame.Example.Monster(); 117 assert.strictEqual(monster.test(monster2) != null, true); 118 assert.strictEqual(monster2.name(), 'Fred');
|
D | go_test.go | 143 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) {
|
D | phpTest.php | 120 $monster2 = new \MyGame\Example\Monster(); 121 $assert->strictEqual($monster->GetTest($monster2) != null, true); 122 $assert->strictEqual($monster2->GetName(), 'Fred');
|
D | py_test.py | 119 monster2 = MyGame.Example.Monster.Monster() 120 monster2.Init(table2.Bytes, table2.Pos) 122 asserter(monster2.Name() == b"Fred")
|
/external/flatbuffers/tests/FlatBuffers.Test/ |
D | FlatBuffersExampleTests.cs | 188 var monster2 = monster.Test<Monster>().Value; in TestBuffer() 189 Assert.AreEqual("Fred", monster2.Name); in TestBuffer()
|