MCPcopy
hub / github.com/hwholiday/learning_tools / TestFind

Function TestFind

minio/old/minio_test.go:22–36  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

20}
21
22func TestFind(t *testing.T) {
23 resp, err := http.Get("http://127.0.0.1:8080/v1/find?id=1529647962089361100")
24 if err != nil {
25 fmt.Println(err.Error())
26 return
27 }
28 defer resp.Body.Close()
29 respBody, err := ioutil.ReadAll(resp.Body)
30 if err != nil {
31 fmt.Println(err.Error())
32 return
33 }
34 fmt.Println("ok")
35 fmt.Println(string(respBody))
36}
37
38func TestDel(t *testing.T) {
39 var client = &http.Client{}

Callers

nothing calls this directly

Calls 3

GetMethod · 0.65
ErrorMethod · 0.65
CloseMethod · 0.65

Tested by

no test coverage detected