temp_test.go 366 B

1234567891011121314151617181920212223
  1. package test
  2. import (
  3. "TripUpRate/g"
  4. "fmt"
  5. "testing"
  6. "time"
  7. )
  8. func TestInitCookie(t *testing.T) {
  9. fmt.Println(g.InitCookies())
  10. }
  11. func TestClick(t *testing.T) {
  12. g.TaskList.Store("ATLDFW2021-07-13", g.TaskInfo{
  13. Dptcity: "ATL",
  14. Arrcity: "DFW",
  15. Fromdate: "2021-07-13",
  16. Enddate: time.Now().Add(30 * time.Minute),
  17. })
  18. g.ForClick("ATLDFW2021-07-13")
  19. }