parent
1739fc2e85
commit
d35458d831
@ -0,0 +1,23 @@
|
||||
package dingdanxia
|
||||
|
||||
import (
|
||||
"log"
|
||||
"testing"
|
||||
|
||||
"github.com/dtapps/go-library/utils/gotime"
|
||||
)
|
||||
|
||||
var app = App{
|
||||
ApiKey: "ZTe5tqKhIc6nm8HkJkqj5hmpmAjs1WTy",
|
||||
}
|
||||
|
||||
func TestApp(t *testing.T) {
|
||||
param := NewParams()
|
||||
param.Set("start_time", gotime.Current().BeforeDay(28).Timestamp())
|
||||
param.Set("end_time", gotime.Current().Timestamp())
|
||||
res, err := app.WaimaiMeituanOrders(param)
|
||||
log.Println(res)
|
||||
log.Printf("%s\n", res)
|
||||
log.Printf("%v\n", res)
|
||||
log.Println(err)
|
||||
}
|
@ -0,0 +1,9 @@
|
||||
package gossh
|
||||
|
||||
import (
|
||||
"testing"
|
||||
)
|
||||
|
||||
func TestClient(t *testing.T) {
|
||||
//Tunnel("root", "", ":22", ":3306", "localhost:13306")
|
||||
}
|
@ -1,13 +0,0 @@
|
||||
package ssh
|
||||
|
||||
import (
|
||||
"testing"
|
||||
)
|
||||
|
||||
func TestName(t *testing.T) {
|
||||
|
||||
}
|
||||
|
||||
func client() {
|
||||
Tunnel("root", "", ":22", ":3306", "localhost:13306")
|
||||
}
|
Loading…
Reference in new issue