2021-11-12 07:46:33 +00:00
|
|
|
package lib
|
|
|
|
|
|
|
|
import (
|
|
|
|
"fmt"
|
|
|
|
"testing"
|
|
|
|
)
|
|
|
|
|
|
|
|
func TestName(t *testing.T) {
|
|
|
|
core := Core{}
|
|
|
|
core.Init()
|
|
|
|
cookies, err := core.Login()
|
|
|
|
if err != nil {
|
|
|
|
return
|
|
|
|
}
|
|
|
|
score, err := GetUserScore(cookies)
|
|
|
|
if err != nil {
|
|
|
|
return
|
|
|
|
}
|
|
|
|
fmt.Println(score)
|
|
|
|
}
|
2022-03-06 14:03:14 +00:00
|
|
|
|
|
|
|
func TestLogin(t *testing.T) {
|
|
|
|
core := Core{}
|
|
|
|
core.Push = func(kind string, message string) {
|
|
|
|
fmt.Println(message)
|
|
|
|
}
|
|
|
|
core.L()
|
|
|
|
}
|