20 lines
380 B
Go
20 lines
380 B
Go
package ugc
|
|
|
|
import (
|
|
"encoding/json"
|
|
"fmt"
|
|
"testing"
|
|
|
|
. "github.com/smartystreets/goconvey/convey"
|
|
)
|
|
|
|
func TestDao_PassedArcs(t *testing.T) {
|
|
Convey("TestDao_PassedArcs", t, WithDao(func(d *Dao) {
|
|
res, err := d.PassedArcs(ctx, []int64{76, 75})
|
|
So(err, ShouldBeNil)
|
|
So(len(res), ShouldBeGreaterThan, 0)
|
|
data, _ := json.Marshal(res)
|
|
fmt.Println(string(data))
|
|
}))
|
|
}
|