Skip to content

Commit

Permalink
refactor(tests): rename test functions for consistency and clarity
Browse files Browse the repository at this point in the history
  • Loading branch information
dido18 committed Jan 29, 2025
1 parent a0bd3fd commit 504ce7e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 125 deletions.
122 changes: 0 additions & 122 deletions config/config_linux_test.go

This file was deleted.

6 changes: 3 additions & 3 deletions config/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
)

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

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

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

0 comments on commit 504ce7e

Please sign in to comment.