2019-04-22 02:59:20 +00:00

31 lines
487 B
Go

package coin
import (
"context"
"flag"
"path/filepath"
"testing"
"go-common/app/interface/main/app-interface/conf"
. "github.com/smartystreets/goconvey/convey"
)
var (
d *Dao
)
func init() {
dir, _ := filepath.Abs("../../cmd/app-interface-test.toml")
flag.Set("conf", dir)
conf.Init()
d = New(conf.Conf)
}
func Test_CoinList(t *testing.T) {
Convey("should get Archives", t, func() {
_, _, err := d.CoinList(context.Background(), 1, 3, 4)
So(err, ShouldBeNil)
})
}