chg testcases to be private
This commit is contained in:
@@ -22,7 +22,7 @@ type RelayContactRequestTest struct {
|
||||
Assert bool
|
||||
}
|
||||
|
||||
func TestContactController(t *testing.T) {
|
||||
func testContactController(t *testing.T) {
|
||||
|
||||
tests := getContactData()
|
||||
for _, tt := range tests {
|
||||
|
||||
@@ -104,15 +104,15 @@ func TestSuite(t *testing.T) {
|
||||
// code := m.Run()
|
||||
|
||||
t.Run("userController", func(t *testing.T) {
|
||||
TestUserController(t)
|
||||
testUserController(t)
|
||||
})
|
||||
|
||||
t.Run("contactController", func(t *testing.T) {
|
||||
TestContactController(t)
|
||||
testContactController(t)
|
||||
})
|
||||
|
||||
t.Run("membershipController", func(t *testing.T) {
|
||||
TestMembershipController(t)
|
||||
testMembershipController(t)
|
||||
})
|
||||
|
||||
if err := utils.SMTPStop(); err != nil {
|
||||
|
||||
@@ -19,7 +19,7 @@ type RegisterSubscriptionTest struct {
|
||||
Assert bool
|
||||
}
|
||||
|
||||
func TestMembershipController(t *testing.T) {
|
||||
func testMembershipController(t *testing.T) {
|
||||
|
||||
tests := getSubscriptionData()
|
||||
for _, tt := range tests {
|
||||
|
||||
@@ -51,7 +51,7 @@ func (rt *RegisterUserTest) ValidateResult() error {
|
||||
return validateUser(rt.Assert, rt.WantDBData)
|
||||
}
|
||||
|
||||
func TestUserController(t *testing.T) {
|
||||
func testUserController(t *testing.T) {
|
||||
|
||||
tests := getTestUsers()
|
||||
for _, tt := range tests {
|
||||
|
||||
Reference in New Issue
Block a user