chg testcases to be private

This commit is contained in:
$(pass /github/name)
2024-09-06 09:21:30 +02:00
parent 46e09a1285
commit 0d7c5674da
4 changed files with 6 additions and 6 deletions

View File

@@ -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 {

View File

@@ -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 {

View File

@@ -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 {

View File

@@ -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 {