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

Function TEST_F

source/EngineTests/NonCellFunctionTests.cpp:32–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30};
31
32TEST_F(NonCellFunctionTests, distributeToOtherTransmitter)
33{
34 DataDescription data;
35 data.addCells({
36 CellDescription()
37 .setId(1)
38 .setPos({10.0f, 10.0f})
39 .setMaxConnections(1)
40 .setExecutionOrderNumber(0)
41 .setInputExecutionOrderNumber(5)
42 .setActivity({1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f})
43 .setEnergy(_parameters.cellNormalEnergy[0]),
44 });
45
46 _simulationFacade->setSimulationData(data);
47 _simulationFacade->calcTimesteps(1);
48
49 auto actualData = _simulationFacade->getSimulationData();
50
51 auto actualCell = getCell(actualData, 1);
52
53 for (int i = 0; i < MAX_CHANNELS; ++i) {
54 EXPECT_EQ(0, actualCell.activity.channels[i]);
55 }
56}

Callers

nothing calls this directly

Calls 4

CellDescriptionClass · 0.50
setSimulationDataMethod · 0.45
calcTimestepsMethod · 0.45
getSimulationDataMethod · 0.45

Tested by

no test coverage detected