mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-19 00:41:43 +00:00
SCRIPT: wpiformat
This commit is contained in:
committed by
Peter Johnson
parent
c48b722dac
commit
1e7604f81c
@@ -2,11 +2,10 @@
|
||||
// Open Source Software; you can modify and/or share it under the terms of
|
||||
// the WPILib BSD license file in the root directory of this project.
|
||||
|
||||
#include "wpi/util/array.hpp"
|
||||
|
||||
#include "CommandTestBase.hpp"
|
||||
#include "wpi/commands2/Command.hpp"
|
||||
#include "wpi/commands2/RunCommand.hpp"
|
||||
#include "wpi/util/array.hpp"
|
||||
|
||||
using namespace frc2;
|
||||
|
||||
|
||||
@@ -5,14 +5,13 @@
|
||||
#include <string>
|
||||
#include <utility>
|
||||
|
||||
#include "wpi/simulation/SimHooks.hpp"
|
||||
|
||||
#include "CommandTestBase.hpp"
|
||||
#include "wpi/commands2/Commands.hpp"
|
||||
#include "wpi/commands2/FunctionalCommand.hpp"
|
||||
#include "wpi/commands2/InstantCommand.hpp"
|
||||
#include "wpi/commands2/RunCommand.hpp"
|
||||
#include "wpi/commands2/WaitUntilCommand.hpp"
|
||||
#include "wpi/simulation/SimHooks.hpp"
|
||||
|
||||
using namespace frc2;
|
||||
class CommandDecoratorTest : public CommandTestBase {};
|
||||
|
||||
@@ -4,12 +4,11 @@
|
||||
|
||||
#include <utility>
|
||||
|
||||
#include "wpi/system/Errors.hpp"
|
||||
|
||||
#include "CommandTestBase.hpp"
|
||||
#include "wpi/commands2/CommandPtr.hpp"
|
||||
#include "wpi/commands2/CommandScheduler.hpp"
|
||||
#include "wpi/commands2/Commands.hpp"
|
||||
#include "wpi/system/Errors.hpp"
|
||||
|
||||
using namespace frc2;
|
||||
class CommandPtrTest : public CommandTestBase {};
|
||||
|
||||
@@ -4,11 +4,10 @@
|
||||
|
||||
#include <utility>
|
||||
|
||||
#include "wpi/system/Errors.hpp"
|
||||
|
||||
#include "CommandTestBase.hpp"
|
||||
#include "wpi/commands2/CommandScheduler.hpp"
|
||||
#include "wpi/commands2/FunctionalCommand.hpp"
|
||||
#include "wpi/system/Errors.hpp"
|
||||
|
||||
using namespace frc2;
|
||||
class CommandRequirementsTest : public CommandTestBase {};
|
||||
|
||||
@@ -2,13 +2,12 @@
|
||||
// Open Source Software; you can modify and/or share it under the terms of
|
||||
// the WPILib BSD license file in the root directory of this project.
|
||||
|
||||
#include "wpi/smartdashboard/SmartDashboard.hpp"
|
||||
#include "wpi/nt/NetworkTableInstance.hpp"
|
||||
|
||||
#include "CommandTestBase.hpp"
|
||||
#include "wpi/commands2/FunctionalCommand.hpp"
|
||||
#include "wpi/commands2/InstantCommand.hpp"
|
||||
#include "wpi/commands2/RunCommand.hpp"
|
||||
#include "wpi/nt/NetworkTableInstance.hpp"
|
||||
#include "wpi/smartdashboard/SmartDashboard.hpp"
|
||||
|
||||
using namespace frc2;
|
||||
class CommandScheduleTest : public CommandTestBase {};
|
||||
|
||||
@@ -2,13 +2,11 @@
|
||||
// Open Source Software; you can modify and/or share it under the terms of
|
||||
// the WPILib BSD license file in the root directory of this project.
|
||||
|
||||
#include "CommandTestBase.hpp"
|
||||
#include "wpi/commands2/Commands.hpp"
|
||||
|
||||
#include "wpi/smartdashboard/SmartDashboard.hpp"
|
||||
#include "wpi/nt/BooleanTopic.hpp"
|
||||
#include "wpi/nt/NetworkTableInstance.hpp"
|
||||
|
||||
#include "CommandTestBase.hpp"
|
||||
#include "wpi/smartdashboard/SmartDashboard.hpp"
|
||||
|
||||
using namespace frc2;
|
||||
|
||||
|
||||
@@ -7,14 +7,14 @@
|
||||
#include <functional>
|
||||
#include <utility>
|
||||
|
||||
#include "wpi/simulation/DriverStationSim.hpp"
|
||||
#include <gtest/gtest.h>
|
||||
|
||||
#include "gmock/gmock.h"
|
||||
#include "wpi/commands2/CommandHelper.hpp"
|
||||
#include "wpi/commands2/CommandScheduler.hpp"
|
||||
#include "wpi/commands2/Requirements.hpp"
|
||||
#include "wpi/commands2/SubsystemBase.hpp"
|
||||
#include "gmock/gmock.h"
|
||||
#include "wpi/simulation/DriverStationSim.hpp"
|
||||
|
||||
namespace frc2 {
|
||||
|
||||
|
||||
@@ -10,8 +10,8 @@
|
||||
#include <gtest/gtest.h>
|
||||
|
||||
#include "CommandTestBase.hpp"
|
||||
#include "wpi/commands2/Commands.hpp"
|
||||
#include "make_vector.hpp"
|
||||
#include "wpi/commands2/Commands.hpp"
|
||||
|
||||
namespace frc2 {
|
||||
|
||||
|
||||
@@ -2,10 +2,9 @@
|
||||
// Open Source Software; you can modify and/or share it under the terms of
|
||||
// the WPILib BSD license file in the root directory of this project.
|
||||
|
||||
#include "wpi/simulation/SimHooks.hpp"
|
||||
|
||||
#include "CommandTestBase.hpp"
|
||||
#include "wpi/commands2/NotifierCommand.hpp"
|
||||
#include "wpi/simulation/SimHooks.hpp"
|
||||
|
||||
using namespace frc2;
|
||||
using namespace std::chrono_literals;
|
||||
|
||||
@@ -2,9 +2,6 @@
|
||||
// Open Source Software; you can modify and/or share it under the terms of
|
||||
// the WPILib BSD license file in the root directory of this project.
|
||||
|
||||
#include "wpi/driverstation/DriverStation.hpp"
|
||||
#include "wpi/driverstation/Joystick.hpp"
|
||||
#include "wpi/simulation/JoystickSim.hpp"
|
||||
#include <gtest/gtest.h>
|
||||
|
||||
#include "CommandTestBase.hpp"
|
||||
@@ -12,6 +9,9 @@
|
||||
#include "wpi/commands2/RunCommand.hpp"
|
||||
#include "wpi/commands2/WaitUntilCommand.hpp"
|
||||
#include "wpi/commands2/button/POVButton.hpp"
|
||||
#include "wpi/driverstation/DriverStation.hpp"
|
||||
#include "wpi/driverstation/Joystick.hpp"
|
||||
#include "wpi/simulation/JoystickSim.hpp"
|
||||
|
||||
using namespace frc2;
|
||||
class POVButtonTest : public CommandTestBase {};
|
||||
|
||||
@@ -2,11 +2,10 @@
|
||||
// Open Source Software; you can modify and/or share it under the terms of
|
||||
// the WPILib BSD license file in the root directory of this project.
|
||||
|
||||
#include "wpi/commands2/Commands.hpp"
|
||||
|
||||
#include <regex>
|
||||
|
||||
#include "CommandTestBase.hpp"
|
||||
#include "wpi/commands2/Commands.hpp"
|
||||
#include "wpi/commands2/PrintCommand.hpp"
|
||||
|
||||
using namespace frc2;
|
||||
|
||||
@@ -2,12 +2,11 @@
|
||||
// Open Source Software; you can modify and/or share it under the terms of
|
||||
// the WPILib BSD license file in the root directory of this project.
|
||||
|
||||
#include "wpi/commands2/Commands.hpp"
|
||||
|
||||
#include <memory>
|
||||
|
||||
#include "CommandTestBase.hpp"
|
||||
#include "wpi/commands2/CommandPtr.hpp"
|
||||
#include "wpi/commands2/Commands.hpp"
|
||||
#include "wpi/commands2/InstantCommand.hpp"
|
||||
#include "wpi/commands2/ProxyCommand.hpp"
|
||||
#include "wpi/commands2/WaitUntilCommand.hpp"
|
||||
|
||||
@@ -2,9 +2,8 @@
|
||||
// Open Source Software; you can modify and/or share it under the terms of
|
||||
// the WPILib BSD license file in the root directory of this project.
|
||||
|
||||
#include "wpi/commands2/Commands.hpp"
|
||||
|
||||
#include "CommandTestBase.hpp"
|
||||
#include "wpi/commands2/Commands.hpp"
|
||||
#include "wpi/commands2/RunCommand.hpp"
|
||||
|
||||
using namespace frc2;
|
||||
|
||||
@@ -2,11 +2,10 @@
|
||||
// Open Source Software; you can modify and/or share it under the terms of
|
||||
// the WPILib BSD license file in the root directory of this project.
|
||||
|
||||
#include "wpi/commands2/Commands.hpp"
|
||||
|
||||
#include <utility>
|
||||
|
||||
#include "CommandTestBase.hpp"
|
||||
#include "wpi/commands2/Commands.hpp"
|
||||
#include "wpi/commands2/InstantCommand.hpp"
|
||||
#include "wpi/commands2/RunCommand.hpp"
|
||||
#include "wpi/commands2/StartEndCommand.hpp"
|
||||
|
||||
@@ -2,8 +2,6 @@
|
||||
// Open Source Software; you can modify and/or share it under the terms of
|
||||
// the WPILib BSD license file in the root directory of this project.
|
||||
|
||||
#include "wpi/commands2/Commands.hpp"
|
||||
|
||||
#include <utility>
|
||||
|
||||
#include <gtest/gtest.h>
|
||||
@@ -11,6 +9,7 @@
|
||||
#include "CommandTestBase.hpp"
|
||||
#include "wpi/commands2/Command.hpp"
|
||||
#include "wpi/commands2/CommandHelper.hpp"
|
||||
#include "wpi/commands2/Commands.hpp"
|
||||
#include "wpi/commands2/FunctionalCommand.hpp"
|
||||
#include "wpi/commands2/RunCommand.hpp"
|
||||
|
||||
|
||||
@@ -2,9 +2,8 @@
|
||||
// Open Source Software; you can modify and/or share it under the terms of
|
||||
// the WPILib BSD license file in the root directory of this project.
|
||||
|
||||
#include "wpi/commands2/Commands.hpp"
|
||||
|
||||
#include "CommandTestBase.hpp"
|
||||
#include "wpi/commands2/Commands.hpp"
|
||||
#include "wpi/commands2/StartEndCommand.hpp"
|
||||
|
||||
using namespace frc2;
|
||||
|
||||
@@ -2,13 +2,11 @@
|
||||
// Open Source Software; you can modify and/or share it under the terms of
|
||||
// the WPILib BSD license file in the root directory of this project.
|
||||
|
||||
#include "wpi/commands2/Commands.hpp"
|
||||
|
||||
#include "wpi/simulation/SimHooks.hpp"
|
||||
|
||||
#include "CommandTestBase.hpp"
|
||||
#include "wpi/commands2/Commands.hpp"
|
||||
#include "wpi/commands2/WaitCommand.hpp"
|
||||
#include "wpi/commands2/WaitUntilCommand.hpp"
|
||||
#include "wpi/simulation/SimHooks.hpp"
|
||||
|
||||
using namespace frc2;
|
||||
class WaitCommandTest : public CommandTestBase {};
|
||||
|
||||
@@ -2,9 +2,8 @@
|
||||
// Open Source Software; you can modify and/or share it under the terms of
|
||||
// the WPILib BSD license file in the root directory of this project.
|
||||
|
||||
#include "wpi/commands2/Commands.hpp"
|
||||
|
||||
#include "CommandTestBase.hpp"
|
||||
#include "wpi/commands2/Commands.hpp"
|
||||
#include "wpi/commands2/WaitUntilCommand.hpp"
|
||||
|
||||
using namespace frc2;
|
||||
|
||||
@@ -3,13 +3,13 @@
|
||||
// the WPILib BSD license file in the root directory of this project.
|
||||
|
||||
#include <gtest/gtest.h>
|
||||
#include "wpi/nt/NetworkTableInstance.hpp"
|
||||
|
||||
#include "../CommandTestBase.hpp"
|
||||
#include "wpi/commands2/CommandScheduler.hpp"
|
||||
#include "wpi/commands2/RunCommand.hpp"
|
||||
#include "wpi/commands2/WaitUntilCommand.hpp"
|
||||
#include "wpi/commands2/button/NetworkButton.hpp"
|
||||
#include "wpi/nt/NetworkTableInstance.hpp"
|
||||
|
||||
using namespace frc2;
|
||||
|
||||
|
||||
@@ -2,12 +2,11 @@
|
||||
// Open Source Software; you can modify and/or share it under the terms of
|
||||
// the WPILib BSD license file in the root directory of this project.
|
||||
|
||||
#include "wpi/driverstation/DriverStation.hpp"
|
||||
#include "wpi/simulation/DriverStationSim.hpp"
|
||||
|
||||
#include "../CommandTestBase.hpp"
|
||||
#include "wpi/commands2/button/RobotModeTriggers.hpp"
|
||||
#include "wpi/commands2/button/Trigger.hpp"
|
||||
#include "wpi/driverstation/DriverStation.hpp"
|
||||
#include "wpi/simulation/DriverStationSim.hpp"
|
||||
|
||||
using namespace frc2;
|
||||
using namespace frc::sim;
|
||||
|
||||
@@ -4,7 +4,6 @@
|
||||
|
||||
#include <utility>
|
||||
|
||||
#include "wpi/simulation/SimHooks.hpp"
|
||||
#include <gtest/gtest.h>
|
||||
|
||||
#include "../CommandTestBase.hpp"
|
||||
@@ -14,6 +13,7 @@
|
||||
#include "wpi/commands2/RunCommand.hpp"
|
||||
#include "wpi/commands2/WaitUntilCommand.hpp"
|
||||
#include "wpi/commands2/button/Trigger.hpp"
|
||||
#include "wpi/simulation/SimHooks.hpp"
|
||||
|
||||
using namespace frc2;
|
||||
class TriggerTest : public CommandTestBase {};
|
||||
|
||||
@@ -2,15 +2,15 @@
|
||||
// Open Source Software; you can modify and/or share it under the terms of
|
||||
// the WPILib BSD license file in the root directory of this project.
|
||||
|
||||
#include "wpi/commands2/Subsystem.hpp"
|
||||
#include "wpi/commands2/sysid/SysIdRoutine.hpp"
|
||||
|
||||
#include <utility>
|
||||
#include <vector>
|
||||
|
||||
#include "wpi/system/Timer.hpp"
|
||||
#include "wpi/simulation/SimHooks.hpp"
|
||||
#include <gtest/gtest.h>
|
||||
|
||||
#include "wpi/commands2/Subsystem.hpp"
|
||||
#include "wpi/commands2/sysid/SysIdRoutine.hpp"
|
||||
#include "wpi/simulation/SimHooks.hpp"
|
||||
#include "wpi/system/Timer.hpp"
|
||||
#include "wpi/units/math.hpp"
|
||||
|
||||
#define EXPECT_NEAR_UNITS(val1, val2, eps) \
|
||||
|
||||
Reference in New Issue
Block a user