owl-blogs/kiss_test.go

19 lines
308 B
Go

package kiss_test
import "h4kor/kiss-social"
func getTestUser() kiss.User {
repo, _ := kiss.CreateRepository(testRepoName())
user, _ := repo.CreateUser(randomUserName())
return user
}
func contains(s []string, e string) bool {
for _, a := range s {
if a == e {
return true
}
}
return false
}