1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
- package feed
- import (
- "context"
- "testing"
- "time"
- . "github.com/smartystreets/goconvey/convey"
- )
- func TestService_Index2(t *testing.T) {
- Convey(t.Name(), t, func() {
- gotIs, gotConfig, gotInfoc, err := s.Index2(context.Background(), "", 0, 0, nil, 1, time.Now())
- So(gotIs, ShouldNotBeNil)
- So(gotConfig, ShouldNotBeNil)
- So(gotInfoc, ShouldNotBeNil)
- So(err, ShouldBeNil)
- })
- }
- func TestService_indexBanner2(t *testing.T) {
- Convey(t.Name(), t, func() {
- gotBanners, gotVersion, err := s.indexBanner2(context.Background(), 0, "", 0, nil)
- So(gotBanners, ShouldNotBeNil)
- So(gotVersion, ShouldNotBeNil)
- So(err, ShouldBeNil)
- })
- }
- func TestService_mergeItem2(t *testing.T) {
- Convey(t.Name(), t, func() {
- gotIs, gotAdInfom := s.mergeItem2(context.Background(), 0, 0, nil, nil, nil, nil, "", nil, nil, false)
- So(gotIs, ShouldNotBeNil)
- So(gotAdInfom, ShouldNotBeNil)
- })
- }
- func TestService_dealAdLoc(t *testing.T) {
- Convey(t.Name(), t, func() {
- s.dealAdLoc(nil, nil, nil, time.Now())
- })
- }
- func TestService_dealItem2(t *testing.T) {
- Convey(t.Name(), t, func() {
- gotIs, gotIsAI := s.dealItem2(context.Background(), 0, "", 0, nil, nil, false, false, false, nil, time.Now())
- So(gotIs, ShouldNotBeNil)
- So(gotIsAI, ShouldNotBeNil)
- })
- }
- func TestService_Converge(t *testing.T) {
- Convey(t.Name(), t, func() {
- gotIs, gotConverge, err := s.Converge(context.Background(), 0, 0, nil, time.Now())
- So(gotIs, ShouldNotBeNil)
- So(gotConverge, ShouldNotBeNil)
- So(err, ShouldBeNil)
- })
- }
|