panlei
2019-11-05 20f1fd7aed6ecc3fcd1dc811205dd3460975c3e6
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
package WeedFSClient
 
import (
    "fmt"
    "testing"
)
 
func TestGetFid(t *testing.T) { //1 方法必须传入testing.T 2 方法名必须是以Test开头,驼峰命名
    url := "http://192.168.5.23:6333/dir/assign"
    path,err := GetFid(url)
    if err != nil {
        t.Error("测试失败")
    }
    fmt.Println(path)
}