2022-07-21 17:44:07 +00:00
|
|
|
package kiss_test
|
|
|
|
|
|
|
|
import "h4kor/kiss-social"
|
|
|
|
|
|
|
|
func getTestUser() kiss.User {
|
|
|
|
repo, _ := kiss.CreateRepository(testRepoName())
|
|
|
|
user, _ := repo.CreateUser(randomUserName())
|
|
|
|
return user
|
|
|
|
}
|
2022-07-23 15:19:47 +00:00
|
|
|
|
|
|
|
func contains(s []string, e string) bool {
|
|
|
|
for _, a := range s {
|
|
|
|
if a == e {
|
|
|
|
return true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return false
|
|
|
|
}
|