intimate/tasks/twitcasting/twitcasting_task1/main_test.go

26 lines
471 B
Go
Raw Normal View History

2020-08-04 06:13:39 +00:00
package main
import (
2020-08-07 10:10:22 +00:00
"net/url"
2020-08-05 10:49:47 +00:00
2020-08-04 06:13:39 +00:00
"testing"
)
2020-08-07 10:10:22 +00:00
func Test(t *testing.T) {
rawurl := "https://twitcasting.tv/你好"
u, _ := url.Parse(rawurl)
t.Error(u.EscapedPath())
t.Error(u.String())
}
2020-08-11 10:26:17 +00:00
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)
}
2020-08-05 10:49:47 +00:00
2020-08-04 06:13:39 +00:00
func TestMain(t *testing.T) {
main()
2020-08-05 10:49:47 +00:00
}