log_test.go 391 B

12345678910111213141516171819202122232425
  1. package dao
  2. import (
  3. "context"
  4. "testing"
  5. "time"
  6. . "github.com/smartystreets/goconvey/convey"
  7. )
  8. func TestAddLog(t *testing.T) {
  9. Convey("log", t, func() {
  10. d.AddLog(1, time.Now().Unix(), 1, 2, "test", "127.0.0.1", "", 0, 0)
  11. })
  12. }
  13. func TestLogs(t *testing.T) {
  14. var (
  15. c = context.TODO()
  16. )
  17. Convey("work", t, func() {
  18. _, err := d.CoinLog(c, 88888929)
  19. So(err, ShouldBeNil)
  20. })
  21. }