mirror of
https://github.com/iLoveElysia/openbilibili.git
synced 2026-06-08 05:58:29 -05:00
18 lines
311 B
Go
18 lines
311 B
Go
|
|
package dao
|
||
|
|
|
||
|
|
import (
|
||
|
|
"context"
|
||
|
|
"testing"
|
||
|
|
|
||
|
|
. "github.com/smartystreets/goconvey/convey"
|
||
|
|
)
|
||
|
|
|
||
|
|
// TestSubject d.Subject() unit test.
|
||
|
|
func TestSubject(t *testing.T) {
|
||
|
|
Convey("test dao.Subject", t, func() {
|
||
|
|
s, err := testDao.Subject(context.TODO(), 1, 1221)
|
||
|
|
So(err, ShouldBeNil)
|
||
|
|
So(s, ShouldNotBeNil)
|
||
|
|
})
|
||
|
|
}
|