Added test
Go CI / Test and Lint (push) Failing after 5s
Go Release / build-and-release (pull_request) Successful in 6s
Go CI / Test and Lint (pull_request) Failing after 5s

This commit is contained in:
2026-05-25 22:18:02 -04:00
parent b8e8621e0d
commit c2cde15189
+13
View File
@@ -1,5 +1,9 @@
package user
import (
"testing"
)
type UserProfile struct {
Usr *User `json:"user"`
@@ -22,3 +26,12 @@ func InitUserProfile(usr *User) (usrProfile *UserProfile, done bool) {
}
}
}
func TestInitUserProfile(t *testing.T) {
usr := User{}
usr.username = "Bob"
usr.Phone = "+12224572351"
usr.Password = "TheNight!"
profile, done := InitUserProfile(&usr)
t.Assert(done, true, "Error")
}