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.
 
 
 

59 lines
1.5 KiB

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)
})
}