1234567891011121314151617181920212223 |
- package test
- import (
- "TripUpRate/g"
- "fmt"
- "testing"
- "time"
- )
- func TestInitCookie(t *testing.T) {
- fmt.Println(g.InitCookies())
- }
- func TestClick(t *testing.T) {
- g.TaskList.Store("ATLDFW2021-07-13", g.TaskInfo{
- Dptcity: "ATL",
- Arrcity: "DFW",
- Fromdate: "2021-07-13",
- Enddate: time.Now().Add(30 * time.Minute),
- })
- g.ForClick("ATLDFW2021-07-13")
- }
|