intimate/tasks/twitcasting/twitcasting_task1/main_test.go

26 lines
471 B
Go

package main
import (
"net/url"
"testing"
)
func Test(t *testing.T) {
rawurl := "https://twitcasting.tv/你好"
u, _ := url.Parse(rawurl)
t.Error(u.EscapedPath())
t.Error(u.String())
}
func TestUpdateTime(t *testing.T) {
// streamer := &intimate.Streamer{}
// streamer.Uid = 420153
// streamer.UpdateTime = sql.NullTime{Time: time.Now(), Valid: true}
// estore.Update(streamer, "update_time", streamer.UpdateTime)
}
func TestMain(t *testing.T) {
main()
}