test(gh): add utils tests to gh

This commit is contained in:
Slug-Boi
2025-04-09 13:07:09 +02:00
parent c59d8ddc85
commit 823dc0ff3d
2 changed files with 78 additions and 2 deletions
+7
View File
@@ -41,6 +41,13 @@ func ContainsUser(users []User, user User) bool {
})
}
func CheckUserFields(user User) bool {
if user.Shortname == "" || user.Longname == "" || user.Username == "" || user.Email == "" {
return false
}
return true
}
func Define_users(author_file string) {
// wipe the users map
Users = map[string]User{}