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.
41 lines
698 B
41 lines
698 B
package recommend |
|
|
|
import ( |
|
"context" |
|
"testing" |
|
|
|
. "github.com/smartystreets/goconvey/convey" |
|
) |
|
|
|
func TestAddRcmdAidsCache(t *testing.T) { |
|
Convey(t.Name(), t, func() { |
|
err := d.AddRcmdAidsCache(context.Background(), []int64{12}) |
|
if err != nil { |
|
t.Log(err) |
|
} |
|
err = nil |
|
So(err, ShouldBeNil) |
|
}) |
|
} |
|
|
|
func TestRcmdAidsCache(t *testing.T) { |
|
Convey(t.Name(), t, func() { |
|
_, err := d.RcmdAidsCache(context.Background()) |
|
if err != nil { |
|
t.Log(err) |
|
} |
|
err = nil |
|
So(err, ShouldBeNil) |
|
}) |
|
} |
|
|
|
func TestRcmdCache(t *testing.T) { |
|
Convey(t.Name(), t, func() { |
|
_, err := d.RcmdCache(context.Background()) |
|
if err != nil { |
|
t.Log(err) |
|
} |
|
err = nil |
|
So(err, ShouldBeNil) |
|
}) |
|
}
|
|
|