Format M11 cellular code with clang-format 19
Foundation / checks (deploy) (push) Successful in 5s
Foundation / checks (ecs) (push) Successful in 1m52s
Foundation / checks (client) (push) Failing after 4m25s
Foundation / checks (network) (push) Failing after 3m2s
Foundation / checks (tsan) (push) Failing after 33s
Foundation / postgres-tools (push) Canceled after 0s
Foundation / server-image (push) Canceled after 0s
Foundation / image (push) Canceled after 0s
Foundation / checks (checks) (push) Canceled after 5m47s
Foundation / checks (postgres) (push) Canceled after 1m24s

This commit is contained in:
dingo
2026-10-11 02:59:41 -04:00
parent b8a1288ee9
commit c81c1bfc56
25 changed files with 371 additions and 356 deletions
+9 -10
View File
@@ -30,8 +30,7 @@ accounting::Inventory founder_price(std::uint64_t count) {
}
void actions_bind_to_owned_life_and_preserve_other_inputs() {
auto primitive = PrimitiveLives::create(
{90, 1, 7, 17, founder_price(2), {{0, 0}, {20, 0}}});
auto primitive = PrimitiveLives::create({90, 1, 7, 17, founder_price(2), {{0, 0}, {20, 0}}});
CHECK(primitive);
LifeRequest request{};
request.account.back() = 1;
@@ -50,8 +49,8 @@ void actions_bind_to_owned_life_and_preserve_other_inputs() {
{{15'000, 15'000}, 30, {{10}, {{{10}, {10}, {10}, {10}}}}}}};
auto habitat = biology::CellularHabitat::create(std::move(habitat_config));
CHECK(habitat);
auto state = CellularLives::create(**primitive, std::move(*habitat),
{{20'000, 20'000}, 1, 293'150});
auto state =
CellularLives::create(**primitive, std::move(*habitat), {{20'000, 20'000}, 1, 293'150});
CHECK(state && (*state)->lives().size() == 2);
const auto& controlled = (*state)->lives()[0];
@@ -71,8 +70,7 @@ void actions_bind_to_owned_life_and_preserve_other_inputs() {
CellularLifeIntent{controlled.identity.life,
{{-3, 4}, biology::CellularPatchAddress{0, 0}}});
CHECK(prepared->intents.lives[1] == baseline[1]);
CHECK(prepared->actions[0] ==
CellularActionRecord{controlled.account, 77, input});
CHECK(prepared->actions[0] == CellularActionRecord{controlled.account, 77, input});
const auto guessed_input =
network::encode_cellular_action_input({2, 0, 0, true, 15'000, 15'000});
@@ -127,8 +125,9 @@ void actions_bind_to_owned_life_and_preserve_other_inputs() {
CHECK(prepare_cellular_session_tick(**state, 3, baseline, actions).error() ==
CellularSessionBatchError::tick);
CHECK(prepare_cellular_session_tick(**state, 2, std::span{baseline}.first(1), actions).error() ==
CellularSessionBatchError::intents);
CHECK(
prepare_cellular_session_tick(**state, 2, std::span{baseline}.first(1), actions).error() ==
CellularSessionBatchError::intents);
const std::array duplicate{action, action};
CHECK(prepare_cellular_session_tick(**state, 2, baseline, duplicate).error() ==
@@ -150,8 +149,8 @@ void builder_batches_reserved_birth_after_empty_tick() {
CHECK(primitive);
auto habitat = biology::CellularHabitat::create({93, 1, 1, 1'000, 1'000, {}});
CHECK(habitat);
auto state = CellularLives::create(**primitive, std::move(*habitat),
{{1'000, 1'000}, 0, 293'150});
auto state =
CellularLives::create(**primitive, std::move(*habitat), {{1'000, 1'000}, 0, 293'150});
CHECK(state && (*state)->lives().empty());
persistence::RegionHead head{};
head.frame = 1;