Skip to content

Commit

Permalink
refactor: rename test function names (#1107)
Browse files Browse the repository at this point in the history
  • Loading branch information
Integralist committed Dec 11, 2023
1 parent 46fefb5 commit 76671b2
Show file tree
Hide file tree
Showing 9 changed files with 44 additions and 44 deletions.
8 changes: 4 additions & 4 deletions pkg/commands/authtoken/authtoken_test.go
Expand Up @@ -15,7 +15,7 @@ import (
"github.com/fastly/cli/pkg/testutil"
)

func TestCreate(t *testing.T) {
func TestAuthTokenCreate(t *testing.T) {
args := testutil.Args
scenarios := []testutil.TestScenario{
{
Expand Down Expand Up @@ -83,7 +83,7 @@ func TestCreate(t *testing.T) {
}
}

func TestDelete(t *testing.T) {
func TestAuthTokenDelete(t *testing.T) {
args := testutil.Args
scenarios := []testutil.TestScenario{
{
Expand Down Expand Up @@ -179,7 +179,7 @@ func TestDelete(t *testing.T) {
}
}

func TestDescribe(t *testing.T) {
func TestAuthTokenDescribe(t *testing.T) {
args := testutil.Args
scenarios := []testutil.TestScenario{
{
Expand Down Expand Up @@ -218,7 +218,7 @@ func TestDescribe(t *testing.T) {
}
}

func TestList(t *testing.T) {
func TestAuthTokenList(t *testing.T) {
args := testutil.Args
type ts struct {
testutil.TestScenario
Expand Down
12 changes: 6 additions & 6 deletions pkg/commands/profile/profile_test.go
Expand Up @@ -28,7 +28,7 @@ type Scenario struct {
Stdin []string
}

func TestCreate(t *testing.T) {
func TestProfileCreate(t *testing.T) {
var (
configPath string
data []byte
Expand Down Expand Up @@ -189,7 +189,7 @@ func TestCreate(t *testing.T) {
}
}

func TestDelete(t *testing.T) {
func TestProfileDelete(t *testing.T) {
var (
configPath string
data []byte
Expand Down Expand Up @@ -290,7 +290,7 @@ func TestDelete(t *testing.T) {
}
}

func TestList(t *testing.T) {
func TestProfileList(t *testing.T) {
var (
configPath string
data []byte
Expand Down Expand Up @@ -507,7 +507,7 @@ func TestList(t *testing.T) {
}
}

func TestSwitch(t *testing.T) {
func TestProfileSwitch(t *testing.T) {
var (
configPath string
data []byte
Expand Down Expand Up @@ -613,7 +613,7 @@ func TestSwitch(t *testing.T) {
}
}

func TestToken(t *testing.T) {
func TestProfileToken(t *testing.T) {
var (
configPath string
data []byte
Expand Down Expand Up @@ -761,7 +761,7 @@ func TestToken(t *testing.T) {
}
}

func TestUpdate(t *testing.T) {
func TestProfileUpdate(t *testing.T) {
var (
configPath string
data []byte
Expand Down
10 changes: 5 additions & 5 deletions pkg/commands/ratelimit/ratelimit_test.go
Expand Up @@ -13,7 +13,7 @@ import (
"github.com/fastly/cli/pkg/testutil"
)

func TestCreate(t *testing.T) {
func TestRateLimitCreate(t *testing.T) {
args := testutil.Args
scenarios := []testutil.TestScenario{
{
Expand Down Expand Up @@ -59,7 +59,7 @@ func TestCreate(t *testing.T) {
}
}

func TestDelete(t *testing.T) {
func TestRateLimitDelete(t *testing.T) {
args := testutil.Args
scenarios := []testutil.TestScenario{
{
Expand Down Expand Up @@ -100,7 +100,7 @@ func TestDelete(t *testing.T) {
}
}

func TestDescribe(t *testing.T) {
func TestRateLimitDescribe(t *testing.T) {
args := testutil.Args
scenarios := []testutil.TestScenario{
{
Expand Down Expand Up @@ -148,7 +148,7 @@ func TestDescribe(t *testing.T) {
}
}

func TestList(t *testing.T) {
func TestRateLimitList(t *testing.T) {
args := testutil.Args
scenarios := []testutil.TestScenario{
{
Expand Down Expand Up @@ -200,7 +200,7 @@ func TestList(t *testing.T) {
}
}

func TestUpdate(t *testing.T) {
func TesRateLimittUpdate(t *testing.T) {
args := testutil.Args
scenarios := []testutil.TestScenario{
{
Expand Down
10 changes: 5 additions & 5 deletions pkg/commands/tls/custom/activation/activation_test.go
Expand Up @@ -22,7 +22,7 @@ const (
validateMissingIDFlag = "validate missing --id flag"
)

func TestCreate(t *testing.T) {
func TestTLSCustomActivationCreate(t *testing.T) {
args := testutil.Args
scenarios := []testutil.TestScenario{
{
Expand Down Expand Up @@ -78,7 +78,7 @@ func TestCreate(t *testing.T) {
}
}

func TestDelete(t *testing.T) {
func TestTLSCustomActivationDelete(t *testing.T) {
args := testutil.Args
scenarios := []testutil.TestScenario{
{
Expand Down Expand Up @@ -124,7 +124,7 @@ func TestDelete(t *testing.T) {
}
}

func TestDescribe(t *testing.T) {
func TestTLSCustomActivationDescribe(t *testing.T) {
args := testutil.Args
scenarios := []testutil.TestScenario{
{
Expand Down Expand Up @@ -174,7 +174,7 @@ func TestDescribe(t *testing.T) {
}
}

func TestList(t *testing.T) {
func TestTLSCustomActivationList(t *testing.T) {
args := testutil.Args
scenarios := []testutil.TestScenario{
{
Expand Down Expand Up @@ -221,7 +221,7 @@ func TestList(t *testing.T) {
}
}

func TestUpdate(t *testing.T) {
func TestTLSCustomActivationUpdate(t *testing.T) {
args := testutil.Args
scenarios := []testutil.TestScenario{
{
Expand Down
10 changes: 5 additions & 5 deletions pkg/commands/tls/custom/certificate/certificate_test.go
Expand Up @@ -22,7 +22,7 @@ const (
validateMissingIDFlag = "validate missing --id flag"
)

func TestCreate(t *testing.T) {
func TestTLSCustomCertCreate(t *testing.T) {
args := testutil.Args
scenarios := []testutil.TestScenario{
{
Expand Down Expand Up @@ -70,7 +70,7 @@ func TestCreate(t *testing.T) {
}
}

func TestDelete(t *testing.T) {
func TestTLSCustomCertDelete(t *testing.T) {
args := testutil.Args
scenarios := []testutil.TestScenario{
{
Expand Down Expand Up @@ -116,7 +116,7 @@ func TestDelete(t *testing.T) {
}
}

func TestDescribe(t *testing.T) {
func TestTLSCustomCertDescribe(t *testing.T) {
args := testutil.Args
scenarios := []testutil.TestScenario{
{
Expand Down Expand Up @@ -173,7 +173,7 @@ func TestDescribe(t *testing.T) {
}
}

func TestList(t *testing.T) {
func TestTLSCustomCertList(t *testing.T) {
args := testutil.Args
scenarios := []testutil.TestScenario{
{
Expand Down Expand Up @@ -227,7 +227,7 @@ func TestList(t *testing.T) {
}
}

func TestUpdate(t *testing.T) {
func TestTLSCustomCertUpdate(t *testing.T) {
args := testutil.Args
scenarios := []testutil.TestScenario{
{
Expand Down
8 changes: 4 additions & 4 deletions pkg/commands/tls/custom/privatekey/privatekey_test.go
Expand Up @@ -22,7 +22,7 @@ const (
validateMissingIDFlag = "validate missing --id flag"
)

func TestCreate(t *testing.T) {
func TestTLSCustomPrivateKeyCreate(t *testing.T) {
args := testutil.Args
scenarios := []testutil.TestScenario{
{
Expand Down Expand Up @@ -76,7 +76,7 @@ func TestCreate(t *testing.T) {
}
}

func TestDelete(t *testing.T) {
func TestTLSCustomPrivateKeyDelete(t *testing.T) {
args := testutil.Args
scenarios := []testutil.TestScenario{
{
Expand Down Expand Up @@ -122,7 +122,7 @@ func TestDelete(t *testing.T) {
}
}

func TestDescribe(t *testing.T) {
func TestTLSCustomPrivateKeyDescribe(t *testing.T) {
args := testutil.Args
scenarios := []testutil.TestScenario{
{
Expand Down Expand Up @@ -176,7 +176,7 @@ func TestDescribe(t *testing.T) {
}
}

func TestList(t *testing.T) {
func TestTLSCustomPrivateKeyList(t *testing.T) {
args := testutil.Args
scenarios := []testutil.TestScenario{
{
Expand Down
10 changes: 5 additions & 5 deletions pkg/commands/tls/platform/platform_test.go
Expand Up @@ -21,7 +21,7 @@ const (
mockResponseID = "123"
)

func TestCreate(t *testing.T) {
func TestTLSPlatformCreate(t *testing.T) {
args := testutil.Args
scenarios := []testutil.TestScenario{
{
Expand Down Expand Up @@ -74,7 +74,7 @@ func TestCreate(t *testing.T) {
}
}

func TestDelete(t *testing.T) {
func TestTLSPlatformDelete(t *testing.T) {
args := testutil.Args
scenarios := []testutil.TestScenario{
{
Expand Down Expand Up @@ -120,7 +120,7 @@ func TestDelete(t *testing.T) {
}
}

func TestDescribe(t *testing.T) {
func TestTLSPlatformDescribe(t *testing.T) {
args := testutil.Args
scenarios := []testutil.TestScenario{
{
Expand Down Expand Up @@ -172,7 +172,7 @@ func TestDescribe(t *testing.T) {
}
}

func TestList(t *testing.T) {
func TestTLSPlatformList(t *testing.T) {
args := testutil.Args
scenarios := []testutil.TestScenario{
{
Expand Down Expand Up @@ -221,7 +221,7 @@ func TestList(t *testing.T) {
}
}

func TestUpdate(t *testing.T) {
func TestTLSPlatformUpdate(t *testing.T) {
args := testutil.Args
scenarios := []testutil.TestScenario{
{
Expand Down
10 changes: 5 additions & 5 deletions pkg/commands/tls/subscription/subscription_test.go
Expand Up @@ -22,7 +22,7 @@ const (
validateMissingIDFlag = "validate missing --id flag"
)

func TestCreate(t *testing.T) {
func TestTLSSubscriptionCreate(t *testing.T) {
args := testutil.Args
scenarios := []testutil.TestScenario{
{
Expand Down Expand Up @@ -74,7 +74,7 @@ func TestCreate(t *testing.T) {
}
}

func TestDelete(t *testing.T) {
func TestTLSSubscriptionDelete(t *testing.T) {
args := testutil.Args
scenarios := []testutil.TestScenario{
{
Expand Down Expand Up @@ -120,7 +120,7 @@ func TestDelete(t *testing.T) {
}
}

func TestDescribe(t *testing.T) {
func TestTLSSubscriptionDescribe(t *testing.T) {
args := testutil.Args
scenarios := []testutil.TestScenario{
{
Expand Down Expand Up @@ -173,7 +173,7 @@ func TestDescribe(t *testing.T) {
}
}

func TestList(t *testing.T) {
func TestTLSSubscriptionList(t *testing.T) {
args := testutil.Args
scenarios := []testutil.TestScenario{
{
Expand Down Expand Up @@ -223,7 +223,7 @@ func TestList(t *testing.T) {
}
}

func TestUpdate(t *testing.T) {
func TestTLSSubscriptionUpdate(t *testing.T) {
args := testutil.Args
scenarios := []testutil.TestScenario{
{
Expand Down
10 changes: 5 additions & 5 deletions pkg/commands/user/user_test.go
Expand Up @@ -14,7 +14,7 @@ import (
"github.com/fastly/cli/pkg/testutil"
)

func TestCreate(t *testing.T) {
func TestUserCreate(t *testing.T) {
args := testutil.Args
scenarios := []testutil.TestScenario{
{
Expand Down Expand Up @@ -58,7 +58,7 @@ func TestCreate(t *testing.T) {
}
}

func TestDelete(t *testing.T) {
func TestUserDelete(t *testing.T) {
args := testutil.Args
scenarios := []testutil.TestScenario{
{
Expand Down Expand Up @@ -104,7 +104,7 @@ func TestDelete(t *testing.T) {
}
}

func TestDescribe(t *testing.T) {
func TestUserDescribe(t *testing.T) {
args := testutil.Args
scenarios := []testutil.TestScenario{
{
Expand Down Expand Up @@ -166,7 +166,7 @@ func TestDescribe(t *testing.T) {
}
}

func TestList(t *testing.T) {
func TestUserList(t *testing.T) {
args := testutil.Args
scenarios := []testutil.TestScenario{
{
Expand Down Expand Up @@ -218,7 +218,7 @@ func TestList(t *testing.T) {
}
}

func TestUpdate(t *testing.T) {
func TestUserUpdate(t *testing.T) {
args := testutil.Args
scenarios := []testutil.TestScenario{
{
Expand Down

0 comments on commit 76671b2

Please sign in to comment.