stock_test.go 281 B

1234567891011121314151617
  1. package dao
  2. import (
  3. "testing"
  4. . "github.com/smartystreets/goconvey/convey"
  5. )
  6. // TestStockChanged
  7. func TestDao_StockChanged(t *testing.T) {
  8. Convey("StockChanged", t, func() {
  9. once.Do(startService)
  10. res := d.StockChanged([]int64{1015, 1016})
  11. So(res, ShouldBeTrue)
  12. })
  13. }