-/* Copyright (c) 2017-2022. The SimGrid Team. All rights reserved. */
+/* Copyright (c) 2017-2023. The SimGrid Team. All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
* under the terms of the license (GNU LGPL) which comes with this package. */
SECTION("Model: " + model)
{
- auto zone = e.get_netzone_root();
+ const auto* zone = e.get_netzone_root();
REQUIRE_THROWS_AS(zone->set_latency_factor_cb({}), std::invalid_argument);
REQUIRE_THROWS_AS(zone->set_latency_factor_cb(nullptr), std::invalid_argument);
REQUIRE_THROWS_AS(zone->set_bandwidth_factor_cb({}), std::invalid_argument);
SECTION("Model: " + model)
{
- auto zone = e.get_netzone_root();
+ const auto* zone = e.get_netzone_root();
REQUIRE_THROWS_AS(zone->set_latency_factor_cb(factor_cb), std::invalid_argument);
REQUIRE_THROWS_AS(zone->set_bandwidth_factor_cb(factor_cb), std::invalid_argument);
}