study_xxqg/lib/core_test.go

29 lines
384 B
Go
Raw Normal View History

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)
}
func TestLogin(t *testing.T) {
core := Core{}
core.Push = func(kind string, message string) {
fmt.Println(message)
}
core.L()
}