Searched refs:monster2 (Results 1 – 10 of 10) sorted by relevance
/external/flatbuffers/tests/ |
D | test.cpp | 284 auto monster2 = reinterpret_cast<const Monster *>(monster->test()); in AccessFlatBufferTest() local 285 TEST_NOTNULL(monster2); in AccessFlatBufferTest() 286 TEST_EQ_STR(monster2->name()->c_str(), "Fred"); in AccessFlatBufferTest() 470 auto monster2 = UnPackMonster(fbb1.GetBufferPointer(), &resolver); in ObjectFlatBuffersTest() local 472 fbb2.Finish(CreateMonster(fbb2, monster2.get(), &rehasher), in ObjectFlatBuffersTest() 485 TEST_EQ(monster2->hp, 80); in ObjectFlatBuffersTest() 486 TEST_EQ(monster2->mana, 150); // default in ObjectFlatBuffersTest() 487 TEST_EQ_STR(monster2->name.c_str(), "MyMonster"); in ObjectFlatBuffersTest() 489 auto &pos = monster2->pos; in ObjectFlatBuffersTest() 495 auto &inventory = monster2->inventory; in ObjectFlatBuffersTest() [all …]
|
D | JavaTest.java | 110 Monster monster2 = new Monster(); in TestBuffer() local 111 TestEq(monster.test(monster2) != null, true); in TestBuffer() 112 TestEq(monster2.name(), "Fred"); in TestBuffer()
|
D | JavaScriptTest.js | 133 var monster2 = new MyGame.Example.Monster(); 134 assert.strictEqual(monster.test(monster2) != null, true); 135 assert.strictEqual(monster2.name(), 'Fred');
|
D | phpTest.php | 120 $monster2 = new \MyGame\Example\Monster(); 121 $assert->strictEqual($monster->GetTest($monster2) != null, true); 122 $assert->strictEqual($monster2->GetName(), 'Fred');
|
D | go_test.go | 148 monster2 := &example.Monster{} 149 flatbuffers.GetRootAs(buf, offset, monster2) 150 for _, monster := range []*example.Monster{monster1, monster2} { 239 var monster2 example.Monster 240 monster2.Init(table2.Bytes, table2.Pos) 242 if got := monster2.Name(); !bytes.Equal([]byte("Fred"), got) {
|
D | py_test.py | 130 monster2 = MyGame.Example.Monster.Monster() 131 monster2.Init(table2.Bytes, table2.Pos) 133 asserter(monster2.Name() == b"Fred")
|
/external/flatbuffers/tests/rust_usage_test/benches/ |
D | flatbuffers_benchmarks.rs | 134 let monster2 = my_game::example::Monster::init_from_table(table2); in traverse_serialized_example_with_generated_code() localVariable 135 blackbox(monster2.name()); in traverse_serialized_example_with_generated_code()
|
/external/flatbuffers/tests/FlatBuffers.Test/ |
D | FlatBuffersExampleTests.cs | 217 var monster2 = monster.Test<Monster>().Value; in TestBuffer() 218 Assert.AreEqual("Fred", monster2.Name); in TestBuffer()
|
/external/flatbuffers/dart/test/ |
D | flat_buffers_test.dart | 48 final monster2 = mon.test as example.Monster; 49 expect(monster2.name, "Fred");
|
/external/flatbuffers/tests/rust_usage_test/tests/ |
D | integration_test.rs | 178 let monster2 = my_game::example::Monster::init_from_table(table2); in serialized_example_is_accessible_and_correct() localVariable 180 check_eq!(monster2.name(), "Fred")?; in serialized_example_is_accessible_and_correct()
|