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.

26 lines
401 B

2 months ago
package service
import (
"log"
"testing"
)
func TestActionFavorite(t *testing.T) {
Init()
userId := int64(1111111111111111111)
videoId := int64(2222222222222222222)
errNo, err := ActionFavorite(userId, videoId, true)
if err != nil {
log.Panicln(err)
}
log.Println(errNo)
errNo, err = ActionFavorite(userId, videoId, false)
if err != nil {
log.Panicln(err)
}
log.Println(errNo)
}