24 lines
467 B
Go
24 lines
467 B
Go
package main
|
|
|
|
import (
|
|
"testing"
|
|
"time"
|
|
)
|
|
|
|
// type LiveData struct {
|
|
// UserName string `exp:".//span[@class='tw-live-author__info-username']" method:"Text"`
|
|
// Follower string `exp:".//span[@class='tw-user-nav-list-count']" method:"Text"`
|
|
// }
|
|
|
|
func TestMain(t *testing.T) {
|
|
main()
|
|
}
|
|
|
|
func TestDateFormat(t *testing.T) {
|
|
df := "Sat, 09 Sep 2017 18:19:17 +0900"
|
|
|
|
if _, err := time.Parse("Mon, 02 Jan 2006 15:04:05 -0700", df); err != nil {
|
|
t.Error(err)
|
|
}
|
|
}
|