ax(node): rename worker_test.go functions to Good/Bad/Ugly convention
Test function names lacked the required {Good,Bad,Ugly} suffix mandated
by AX Principle 10. Renamed HandlePing and HandleGetStats (missing suffix),
and _NoManager/_Profile/_UnknownType variants to _Bad/_Bad/_Ugly.
Co-Authored-By: Charon <charon@lethean.io>
This commit is contained in:
parent
f70e0b9f53
commit
4990e78156
1 changed files with 7 additions and 7 deletions
|
|
@ -105,7 +105,7 @@ func TestWorker_SetProfileManager_Good(t *testing.T) {
|
|||
}
|
||||
}
|
||||
|
||||
func TestWorker_HandlePing(t *testing.T) {
|
||||
func TestWorker_HandlePing_Good(t *testing.T) {
|
||||
cleanup := setupTestEnv(t)
|
||||
defer cleanup()
|
||||
|
||||
|
|
@ -164,7 +164,7 @@ func TestWorker_HandlePing(t *testing.T) {
|
|||
}
|
||||
}
|
||||
|
||||
func TestWorker_HandleGetStats(t *testing.T) {
|
||||
func TestWorker_HandleGetStats_Good(t *testing.T) {
|
||||
cleanup := setupTestEnv(t)
|
||||
defer cleanup()
|
||||
|
||||
|
|
@ -222,7 +222,7 @@ func TestWorker_HandleGetStats(t *testing.T) {
|
|||
}
|
||||
}
|
||||
|
||||
func TestWorker_HandleStartMiner_NoManager(t *testing.T) {
|
||||
func TestWorker_HandleStartMiner_Bad(t *testing.T) {
|
||||
cleanup := setupTestEnv(t)
|
||||
defer cleanup()
|
||||
|
||||
|
|
@ -260,7 +260,7 @@ func TestWorker_HandleStartMiner_NoManager(t *testing.T) {
|
|||
}
|
||||
}
|
||||
|
||||
func TestWorker_HandleStopMiner_NoManager(t *testing.T) {
|
||||
func TestWorker_HandleStopMiner_Bad(t *testing.T) {
|
||||
cleanup := setupTestEnv(t)
|
||||
defer cleanup()
|
||||
|
||||
|
|
@ -298,7 +298,7 @@ func TestWorker_HandleStopMiner_NoManager(t *testing.T) {
|
|||
}
|
||||
}
|
||||
|
||||
func TestWorker_HandleGetLogs_NoManager(t *testing.T) {
|
||||
func TestWorker_HandleGetLogs_Bad(t *testing.T) {
|
||||
cleanup := setupTestEnv(t)
|
||||
defer cleanup()
|
||||
|
||||
|
|
@ -336,7 +336,7 @@ func TestWorker_HandleGetLogs_NoManager(t *testing.T) {
|
|||
}
|
||||
}
|
||||
|
||||
func TestWorker_HandleDeploy_Profile(t *testing.T) {
|
||||
func TestWorker_HandleDeploy_Bad(t *testing.T) {
|
||||
cleanup := setupTestEnv(t)
|
||||
defer cleanup()
|
||||
|
||||
|
|
@ -378,7 +378,7 @@ func TestWorker_HandleDeploy_Profile(t *testing.T) {
|
|||
}
|
||||
}
|
||||
|
||||
func TestWorker_HandleDeploy_UnknownType(t *testing.T) {
|
||||
func TestWorker_HandleDeploy_Ugly(t *testing.T) {
|
||||
cleanup := setupTestEnv(t)
|
||||
defer cleanup()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue