Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Oct 16, 2024
1 parent e3151ca commit 1f2a0ce
Show file tree
Hide file tree
Showing 37 changed files with 49 additions and 48 deletions.
2 changes: 1 addition & 1 deletion src/helics/core/FilterFederate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ SPDX-License-Identifier: BSD-3-Clause
#include "queryHelpers.hpp"

#include <cassert>
#include <memory>
#include <string>
#include <tuple>
#include <utility>
#include <vector>
#include <memory>

namespace helics {

Expand Down
2 changes: 1 addition & 1 deletion tests/helics/application_api/CallbackFederateTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ SPDX-License-Identifier: BSD-3-Clause

#include <future>
#include <gtest/gtest.h>
#include <memory>
#include <stdexcept>
#include <string>
#include <utility>
#include <vector>
#include <memory>

class callbackFed: public ::testing::Test, public FederateTestFixture {};

Expand Down
2 changes: 1 addition & 1 deletion tests/helics/application_api/FederateTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ SPDX-License-Identifier: BSD-3-Clause
#include "gmock/gmock.h"
#include <future>
#include <gtest/gtest.h>
#include <memory>
#include <string>
#include <thread>
#include <memory>

/** these test cases test out the value converters
*/
Expand Down
2 changes: 1 addition & 1 deletion tests/helics/application_api/FilterTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ SPDX-License-Identifier: BSD-3-Clause
#include <cstdio>
#include <future>
#include <gtest/gtest.h>
#include <memory>
#include <string>
#include <thread>
#include <utility>
#include <vector>
#include <memory>

/** these test cases test out the message federates
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ SPDX-License-Identifier: BSD-3-Clause
#include <gmock/gmock.h>
#include <gtest/gtest.h>
#include <iostream>
#include <memory>
#include <string>
#include <thread>
#include <utility>
#include <vector>
#include <memory>

/** these test cases test out the message federates
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ SPDX-License-Identifier: BSD-3-Clause
#include <string>
#include <vector>


/** these test cases test out the value converters
*/
#include "helics/application_api/HelicsPrimaryTypes.hpp"
Expand Down
4 changes: 2 additions & 2 deletions tests/helics/application_api/TranslatorTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ SPDX-License-Identifier: BSD-3-Clause

#include <future>
#include <gtest/gtest.h>
#include <thread>
#include <string>
#include <memory>
#include <string>
#include <thread>
#include <utility>

/** these test cases test out translator operations
Expand Down
2 changes: 1 addition & 1 deletion tests/helics/application_api/ValueConverterTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ SPDX-License-Identifier: BSD-3-Clause
#include <algorithm>
#include <complex>
#include <gtest/gtest.h>
#include <limits>
#include <list>
#include <set>
#include <string>
#include <limits>
#include <vector>

/** these test cases test out the value converters
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ SPDX-License-Identifier: BSD-3-Clause
#include <fstream>
#include <future>
#include <gtest/gtest.h>
#include <memory>
#include <numeric>
#include <sstream>
#include <string>
#include <utility>
#include <memory>
#include <vector>

/** these test cases test out the value federates with some additional tests
Expand Down
2 changes: 1 addition & 1 deletion tests/helics/application_api/ValueFederateKeyTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ SPDX-License-Identifier: BSD-3-Clause
# include "testFixtures_shared.hpp"
#endif
#include <fstream>
#include <memory>
#include <streambuf>
#include <string>
#include <memory>
#include <vector>

/** these test cases test out the value federates
Expand Down
5 changes: 3 additions & 2 deletions tests/helics/application_api/data_viewTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,11 @@ SPDX-License-Identifier: BSD-3-Clause
*/

#include "helics/application_api/data_view.hpp"

#include <memory>
#include <string>
#include <vector>
#include <utility>
#include <memory>
#include <vector>

using namespace helics;

Expand Down
2 changes: 1 addition & 1 deletion tests/helics/application_api/helicsTypeTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ SPDX-License-Identifier: BSD-3-Clause
#include "helics/common/JsonProcessingFunctions.hpp"

#include <complex>
#include <gtest/gtest.h>
#include <string>
#include <vector>
#include <gtest/gtest.h>

/** these test cases test out the value converters
*/
Expand Down
2 changes: 1 addition & 1 deletion tests/helics/application_api/subPubObjectTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ SPDX-License-Identifier: BSD-3-Clause
#include "units/units/units.hpp"

#include <future>
#include <memory>
#include <string>
#include <vector>
#include <memory>

#define CORE_TYPE_TO_TEST helics::CoreType::TEST

Expand Down
2 changes: 1 addition & 1 deletion tests/helics/application_api/testFixtures.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ SPDX-License-Identifier: BSD-3-Clause
#include <cctype>
#include <cstdlib>
#include <iostream>
#include <memory>
#include <spdlog/spdlog.h>
#include <string>
#include <memory>

bool hasIndexCode(std::string_view type_name)
{
Expand Down
2 changes: 1 addition & 1 deletion tests/helics/application_api/zmqSSTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ SPDX-License-Identifier: BSD-3-Clause
#include "gtest/gtest.h"
#include <future>
#include <iostream>
#include <thread>
#include <memory>
#include <string>
#include <thread>
#include <vector>

using namespace std::literals::chrono_literals;
Expand Down
4 changes: 2 additions & 2 deletions tests/helics/apps/BrokerAppTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ SPDX-License-Identifier: BSD-3-Clause
#include <cstdio>
#include <filesystem>
#include <future>
#include <thread>
#include <memory>
#include <string>
#include <thread>
#include <utility>
#include <vector>
#include <memory>

TEST(BrokerAppTests, constructor1)
{
Expand Down
2 changes: 1 addition & 1 deletion tests/helics/apps/BrokerServerTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ SPDX-License-Identifier: BSD-3-Clause

#include "gtest/gtest.h"
#include <cstdio>
#include <thread>
#include <string>
#include <thread>
#include <vector>

using namespace helics;
Expand Down
4 changes: 2 additions & 2 deletions tests/helics/apps/CloneTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ SPDX-License-Identifier: BSD-3-Clause
#include <cstdio>
#include <filesystem>
#include <future>
#include <thread>
#include <iostream>
#include <string>
#include <thread>
#include <vector>
#include <iostream>

TEST(clone_tests, simple_clone_test_pub)
{
Expand Down
4 changes: 2 additions & 2 deletions tests/helics/apps/Connector2StageTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ SPDX-License-Identifier: BSD-3-Clause
#include <algorithm>
#include <atomic>
#include <future>
#include <thread>
#include <memory>
#include <string>
#include <thread>
#include <vector>
#include <memory>

static std::string newCoreName(std::string_view baseName)
{
Expand Down
2 changes: 1 addition & 1 deletion tests/helics/apps/ConnectorFileTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ SPDX-License-Identifier: BSD-3-Clause

#include <fmt/format.h>
#include <future>
#include <thread>
#include <string>
#include <thread>

static constexpr std::string_view testdir = TEST_DIR "/connector/";

Expand Down
4 changes: 2 additions & 2 deletions tests/helics/apps/ConnectorTests2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ SPDX-License-Identifier: BSD-3-Clause
#include "helics/apps/CoreApp.hpp"

#include <future>
#include <thread>
#include <memory>
#include <string>
#include <thread>
#include <vector>
#include <memory>

class MultibrokerFixture: public ::testing::Test {
public:
Expand Down
2 changes: 1 addition & 1 deletion tests/helics/apps/ConnectorTestsPotentialInterfaces.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ SPDX-License-Identifier: BSD-3-Clause
#include "helics/apps/CoreApp.hpp"

#include <future>
#include <thread>
#include <string>
#include <thread>

static constexpr std::string_view testdir = TEST_DIR "/connector/";

Expand Down
6 changes: 3 additions & 3 deletions tests/helics/apps/CoreAppTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ using ::testing::HasSubstr;
#include <cstdio>
#include <filesystem>
#include <future>
#include <thread>
#include <memory>
#include <string>
#include <vector>
#include <thread>
#include <utility>
#include <memory>
#include <vector>

TEST(CoreAppTests, constructor1)
{
Expand Down
2 changes: 1 addition & 1 deletion tests/helics/apps/EchoTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ SPDX-License-Identifier: BSD-3-Clause
#include "gtest/gtest.h"
#include <cstdio>
#include <future>
#include <thread>
#include <string>
#include <thread>

// this test will test basic echo functionality
TEST(echo_tests, echo_test1)
Expand Down
4 changes: 2 additions & 2 deletions tests/helics/apps/PlayerTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ SPDX-License-Identifier: BSD-3-Clause
#include "helics/apps/Player.hpp"

#include <future>
#include <thread>
#include <iostream>
#include <string>
#include <thread>
#include <vector>
#include <iostream>

TEST(player_tests, simple_player)
{
Expand Down
2 changes: 1 addition & 1 deletion tests/helics/apps/RecorderTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ SPDX-License-Identifier: BSD-3-Clause
#include <cstdio>
#include <filesystem>
#include <future>
#include <thread>
#include <string>
#include <thread>
#include <vector>

TEST(recorder_tests, simple_recorder_test)
Expand Down
6 changes: 3 additions & 3 deletions tests/helics/apps/TracerTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ SPDX-License-Identifier: BSD-3-Clause
#include <algorithm>
#include <future>
#include <iostream>
#include <thread>
#include <memory>
#include <string>
#include <vector>
#include <thread>
#include <utility>
#include <memory>
#include <vector>

using namespace std::literals::chrono_literals;

Expand Down
2 changes: 1 addition & 1 deletion tests/helics/apps/combo_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ SPDX-License-Identifier: BSD-3-Clause
#include <cstdio>
#include <filesystem>
#include <future>
#include <string>
#include <iostream>
#include <string>

static void generateFiles(const std::filesystem::path& f1, const std::filesystem::path& f2)
{
Expand Down
3 changes: 2 additions & 1 deletion tests/helics/common/SmallBufferTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,10 @@ SPDX-License-Identifier: BSD-3-Clause
*/

#include "helics/core/SmallBuffer.hpp"

#include <string>
#include <vector>
#include <utility>
#include <vector>

using namespace helics;

Expand Down
2 changes: 1 addition & 1 deletion tests/helics/shared_library/SystemTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ SPDX-License-Identifier: BSD-3-Clause
#include <atomic>
#include <csignal>
#include <future>
#include <thread>
#include <string>
#include <thread>

// test generating a global from a broker and some of its error pathways
TEST(other_tests, broker_global_value)
Expand Down
2 changes: 1 addition & 1 deletion tests/helics/shared_library/TranslatorTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ SPDX-License-Identifier: BSD-3-Clause

#include <future>
#include <gtest/gtest.h>
#include <thread>
#include <string>
#include <thread>
/** these test cases test out the message federates
*/

Expand Down
2 changes: 1 addition & 1 deletion tests/helics/shared_library/cpptestFixtures.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ Livermore National Laboratory, operated by Lawrence Livermore National Security,
#include "../src/helics/cpp98/Broker.hpp"

#include <cctype>
#include <string>
#include <memory>
#include <string>

static bool hasIndexCode(const std::string& type_name)
{
Expand Down
2 changes: 1 addition & 1 deletion tests/helics/shared_library/ctestFixtures.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ SPDX-License-Identifier: BSD-3-Clause

#include <cassert>
#include <cctype>
#include <string>
#include <cstdio>
#include <string>

static bool hasIndexCode(const std::string& type_name)
{
Expand Down
2 changes: 1 addition & 1 deletion tests/helics/system_tests/TimingTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ SPDX-License-Identifier: BSD-3-Clause
#include <future>
#include <iostream>
#include <string>
#include <vector>
#include <utility>
#include <vector>

/** these test cases test out the value converters
*/
Expand Down
Loading

0 comments on commit 1f2a0ce

Please sign in to comment.