mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-21 01:01:43 +00:00
Rename tests for consistency (#3592)
I started with the output of styleguide#217, then renamed a few classes to fix compilation. ntcore's StorageTest needed some manual renaming since it put the Test word in the middle instead of at the end. One limitation of wpiformat is test cases that were only named "Test" were unmodified, and an error was generated. These test cases were manually given more descriptive names: * TimedRobotTest mode test cases had "Mode" appended to the name. Java tests were renamed to match. * UvAsyncTest and UvAsyncFunctionTest cases were given alternate names
This commit is contained in:
@@ -128,7 +128,7 @@ class TimedRobotTest {
|
||||
|
||||
@Test
|
||||
@ResourceLock("timing")
|
||||
void disabledTest() {
|
||||
void disabledModeTest() {
|
||||
MockRobot robot = new MockRobot();
|
||||
|
||||
Thread robotThread =
|
||||
@@ -215,7 +215,7 @@ class TimedRobotTest {
|
||||
|
||||
@Test
|
||||
@ResourceLock("timing")
|
||||
void autonomousTest() {
|
||||
void autonomousModeTest() {
|
||||
MockRobot robot = new MockRobot();
|
||||
|
||||
Thread robotThread =
|
||||
@@ -304,7 +304,7 @@ class TimedRobotTest {
|
||||
|
||||
@Test
|
||||
@ResourceLock("timing")
|
||||
void teleopTest() {
|
||||
void teleopModeTest() {
|
||||
MockRobot robot = new MockRobot();
|
||||
|
||||
Thread robotThread =
|
||||
@@ -393,7 +393,7 @@ class TimedRobotTest {
|
||||
|
||||
@Test
|
||||
@ResourceLock("timing")
|
||||
void testTest() {
|
||||
void testModeTest() {
|
||||
MockRobot robot = new MockRobot();
|
||||
|
||||
Thread robotThread =
|
||||
|
||||
Reference in New Issue
Block a user