MCPcopy Index your code
hub / github.com/FloatTech/AnimeAPI / TestManager_UploadImage

Function TestManager_UploadImage

qzone/api_test.go:29–45  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

27}
28
29func TestManager_UploadImage(t *testing.T) {
30 m := NewManager(cookie)
31 path := `D:\Documents\Pictures\日南葵\日南葵1.jpg`
32 srcByte, err := os.ReadFile(path)
33 if err != nil {
34 return
35 }
36 picBase64 := base64.StdEncoding.EncodeToString(srcByte)
37 if err != nil {
38 t.Fatal(err)
39 }
40 gotResult, err := m.UploadImage(picBase64)
41 if err != nil {
42 t.Fatal(err)
43 }
44 t.Logf("gotResult:%#v\n", gotResult)
45}
46
47func TestManager_Msglist(t *testing.T) {
48 m := NewManager(cookie)

Callers

nothing calls this directly

Calls 2

UploadImageMethod · 0.95
NewManagerFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…