Skip to content

Commit 504ce7e

Browse files
committed
refactor(tests): rename test functions for consistency and clarity
1 parent a0bd3fd commit 504ce7e

File tree

2 files changed

+3
-125
lines changed

2 files changed

+3
-125
lines changed

config/config_linux_test.go

Lines changed: 0 additions & 122 deletions
This file was deleted.

config/config_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import (
1212
)
1313

1414
// TestGetConfigPathFromXDG_CONFIG_HOME tests the case when the config.ini is read from XDG_CONFIG_HOME/ArduinoCreateAgent/config.ini
15-
func TestGetConfigPathFromXDG_CONFIG_HOME(t *testing.T) {
15+
func TestGetConfigPathFrom_XDG_CONFIG_HOME(t *testing.T) {
1616
if runtime.GOOS != "linux" {
1717
t.Skip("Skipping test on non-linux OS")
1818
}
@@ -26,7 +26,7 @@ func TestGetConfigPathFromXDG_CONFIG_HOME(t *testing.T) {
2626
}
2727

2828
// TestGetConfigPathFromHOME tests the case when the config.ini is read from $HOME/.config/ArduinoCreateAgent/config.ini
29-
func TestGetConfigPathFromHOME(t *testing.T) {
29+
func TestGetConfigPathFrom_HOME(t *testing.T) {
3030
if runtime.GOOS != "linux" {
3131
t.Skip("Skipping test on non-linux OS")
3232
}
@@ -39,7 +39,7 @@ func TestGetConfigPathFromHOME(t *testing.T) {
3939
}
4040

4141
// TestGetConfigPathFromARDUINO_CREATE_AGENT_CONFIG tests the case when the config.ini is read from ARDUINO_CREATE_AGENT_CONFIG env variable
42-
func TestGetConfigPathFromARDUINO_CREATE_AGENT_CONFIG(t *testing.T) {
42+
func TestGetConfigPathFrom_ARDUINO_CREATE_AGENT_CONFIG(t *testing.T) {
4343
if runtime.GOOS != "linux" {
4444
t.Skip("Skipping test on non-linux OS")
4545
}

0 commit comments

Comments
 (0)