Home
last modified time | relevance | path

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

/external/flatbuffers/tests/
Dtest.cpp284 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 …]
DJavaTest.java110 Monster monster2 = new Monster(); in TestBuffer() local
111 TestEq(monster.test(monster2) != null, true); in TestBuffer()
112 TestEq(monster2.name(), "Fred"); in TestBuffer()
DJavaScriptTest.js133 var monster2 = new MyGame.Example.Monster();
134 assert.strictEqual(monster.test(monster2) != null, true);
135 assert.strictEqual(monster2.name(), 'Fred');
DphpTest.php120 $monster2 = new \MyGame\Example\Monster();
121 $assert->strictEqual($monster->GetTest($monster2) != null, true);
122 $assert->strictEqual($monster2->GetName(), 'Fred');
Dgo_test.go148 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) {
Dpy_test.py130 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/
Dflatbuffers_benchmarks.rs134 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/
DFlatBuffersExampleTests.cs217 var monster2 = monster.Test<Monster>().Value; in TestBuffer()
218 Assert.AreEqual("Fred", monster2.Name); in TestBuffer()
/external/flatbuffers/dart/test/
Dflat_buffers_test.dart48 final monster2 = mon.test as example.Monster;
49 expect(monster2.name, "Fred");
/external/flatbuffers/tests/rust_usage_test/tests/
Dintegration_test.rs178 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()