subject_test.go 311 B

1234567891011121314151617
  1. package dao
  2. import (
  3. "context"
  4. "testing"
  5. . "github.com/smartystreets/goconvey/convey"
  6. )
  7. // TestSubject d.Subject() unit test.
  8. func TestSubject(t *testing.T) {
  9. Convey("test dao.Subject", t, func() {
  10. s, err := testDao.Subject(context.TODO(), 1, 1221)
  11. So(err, ShouldBeNil)
  12. So(s, ShouldNotBeNil)
  13. })
  14. }