intimate/tasks/twitcasting/twitcasting_task1/main_test.go
2020-08-11 18:26:17 +08:00

26 lines
464 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) {
}