Initial commit

This commit is contained in:
Donny
2019-04-22 20:46:32 +08:00
commit 49ab8aadd1
25441 changed files with 4055000 additions and 0 deletions

View File

@@ -0,0 +1,27 @@
package service
import (
"context"
"testing"
"fmt"
. "github.com/smartystreets/goconvey/convey"
)
func TestService_GendDiff(t *testing.T) {
Convey("TestService_GendDiff", t, WithService(func(svf *Service) {
generated, err := svf.GendDiff(57)
So(err, ShouldBeNil)
So(len(generated), ShouldBeGreaterThan, 0)
fmt.Println(generated)
}))
}
func TestService_Publish(t *testing.T) {
Convey("TestService_Publish", t, WithService(func(svf *Service) {
data, err := svf.Publish(context.Background(), 57)
So(err, ShouldBeNil)
fmt.Println(data)
}))
}