yzqzss
f7a50c6101
All checks were successful
Gitea Go Release Actions / Release Go Binary (arm, linux) (push) Successful in 1m0s
Gitea Go Release Actions / Release Go Binary (amd64, linux) (push) Successful in 1m7s
Gitea Go Release Actions / Release Go Binary (arm64, linux) (push) Successful in 48s
Gitea Go Release Actions / Release Go Binary (arm64, darwin) (push) Successful in 53s
Gitea Go Release Actions / Release Go Binary (amd64, windows) (push) Successful in 2m22s
Gitea Go Release Actions / Release Go Binary (amd64, darwin) (push) Successful in 28s
24 lines
378 B
Go
24 lines
378 B
Go
package acfun_api
|
|
|
|
import (
|
|
"fmt"
|
|
"net/http"
|
|
"testing"
|
|
)
|
|
|
|
func TestGetDanmaku(t *testing.T) {
|
|
client := &http.Client{}
|
|
danmakus, err := GetDanmaku(client, "12528563")
|
|
if err != nil {
|
|
t.Fatal(err)
|
|
}
|
|
t.Log(len(danmakus))
|
|
// fmt.Println(danmakus)
|
|
for _, danmaku := range danmakus {
|
|
fmt.Println(danmaku)
|
|
}
|
|
if len(danmakus) == 0 {
|
|
t.Fatal("danmakus is empty")
|
|
}
|
|
}
|