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

Method rollout

source/EngineTests/MutationTests.cpp:134–147  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

132 }
133
134 void rollout(GenomeDescription const& input, std::set<CellGenomeDescription>& result)
135 {
136 for (auto const& cell : input.cells) {
137 if (auto subGenomeBytes = cell.getGenome()) {
138 auto subGenome = GenomeDescriptionService::get().convertBytesToDescription(*subGenomeBytes);
139 rollout(subGenome, result);
140 auto cellClone = cell;
141 cellClone.setGenome({});
142 result.insert(cellClone);
143 } else {
144 result.insert(cell);
145 }
146 }
147 }
148
149 bool comparePropertiesMutation(std::vector<uint8_t> const& expected, std::vector<uint8_t> const& actual)
150 {

Callers

nothing calls this directly

Calls 3

getGenomeMethod · 0.80
setGenomeMethod · 0.80

Tested by

no test coverage detected