MCPcopy Create free account
hub / github.com/chrxh/alien / TEST_F

Function TEST_F

source/EngineTests/DataTransferTests.cpp:19–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17};
18
19TEST_F(DataTransferTests, singleCell)
20{
21 DataDescription data;
22 NeuronDescription neuron;
23 neuron.weights[2][1] = 1.0f;
24 data.addCell(CellDescription()
25 .setId(1)
26 .setPos({2.0f, 4.0f})
27 .setVel({0.5f, 1.0f})
28 .setEnergy(100.0f)
29 .setMaxConnections(1)
30 .setExecutionOrderNumber(3)
31 .setAge(1)
32 .setColor(2)
33 .setBarrier(true)
34 .setLivingState(false)
35 .setInputExecutionOrderNumber(4)
36 .setConstructionId(3534)
37 .setOutputBlocked(false)
38 .setCellFunction(neuron)
39 .setSignal({1, 0, -1, 0, 0, 0, 0, 0}));
40
41 _simulationFacade->setSimulationData(data);
42 auto actualData = _simulationFacade->getSimulationData();
43
44 EXPECT_TRUE(compare(data, actualData));
45}
46
47TEST_F(DataTransferTests, singleParticle)
48{

Callers

nothing calls this directly

Calls 11

addCellMethod · 0.80
addParticleMethod · 0.80
getRandomFloatMethod · 0.80
sizeMethod · 0.80
CellDescriptionClass · 0.50
ParticleDescriptionClass · 0.50
setBarrierMethod · 0.45
setSimulationDataMethod · 0.45
getSimulationDataMethod · 0.45
getIdMethod · 0.45

Tested by

no test coverage detected