You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
487 B
30 lines
487 B
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) |
|
}) |
|
}
|
|
|