Skip to content

Commit 58c9c3f

Browse files
committed
test: normalize test function names to use Test_ prefix convention
1 parent 28f1bf2 commit 58c9c3f

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

internal/api/datastore_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -491,7 +491,7 @@ func TestClient_AppsDatastoreGet(t *testing.T) {
491491
}
492492
}
493493

494-
func TestClient_AppsDatastoreBulkPut(t *testing.T) {
494+
func Test_Client_AppsDatastoreBulkPut(t *testing.T) {
495495
tests := map[string]struct {
496496
request types.AppDatastoreBulkPut
497497
httpResponseJSON string
@@ -538,7 +538,7 @@ func TestClient_AppsDatastoreBulkPut(t *testing.T) {
538538
}
539539
}
540540

541-
func TestClient_AppsDatastoreCount(t *testing.T) {
541+
func Test_Client_AppsDatastoreCount(t *testing.T) {
542542
tests := map[string]struct {
543543
request types.AppDatastoreCount
544544
httpResponseJSON string
@@ -586,7 +586,7 @@ func TestClient_AppsDatastoreCount(t *testing.T) {
586586
}
587587
}
588588

589-
func TestClient_AppsDatastoreBulkDelete(t *testing.T) {
589+
func Test_Client_AppsDatastoreBulkDelete(t *testing.T) {
590590
tests := map[string]struct {
591591
request types.AppDatastoreBulkDelete
592592
httpResponseJSON string
@@ -633,7 +633,7 @@ func TestClient_AppsDatastoreBulkDelete(t *testing.T) {
633633
}
634634
}
635635

636-
func TestClient_AppsDatastoreBulkGet(t *testing.T) {
636+
func Test_Client_AppsDatastoreBulkGet(t *testing.T) {
637637
tests := map[string]struct {
638638
request types.AppDatastoreBulkGet
639639
httpResponseJSON string

internal/config/flags_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import (
2424
"github.com/stretchr/testify/assert"
2525
)
2626

27-
func TestSetFlags(t *testing.T) {
27+
func Test_SetFlags(t *testing.T) {
2828
fs := slackdeps.NewFsMock()
2929
os := slackdeps.NewOsMock()
3030
config := NewConfig(fs, os)
@@ -38,7 +38,7 @@ func TestSetFlags(t *testing.T) {
3838
assert.Equal(t, "default", f.DefValue)
3939
}
4040

41-
func TestInitializeGlobalFlags(t *testing.T) {
41+
func Test_InitializeGlobalFlags(t *testing.T) {
4242
fs := slackdeps.NewFsMock()
4343
os := slackdeps.NewOsMock()
4444
config := NewConfig(fs, os)

0 commit comments

Comments
 (0)