(t *testing.T)
| 8 | ) |
| 9 | |
| 10 | func TestHidePrivacy(t *testing.T) { |
| 11 | reg, err := regexp.Compile("(?U)access_token=(.*)&") |
| 12 | if err != nil { |
| 13 | t.Fatal(err) |
| 14 | } |
| 15 | conf.PrivacyReg = []*regexp.Regexp{reg} |
| 16 | res := hidePrivacy(`Get "https://pan.baidu.com/rest/2.0/xpan/file?access_token=121.d1f66e95acfa40274920079396a51c48.Y2aP2vQDq90hLBE3PAbVije59uTcn7GiWUfw8LCM_olw&dir=%2F&limit=200&method=list&order=name&start=0&web=web " : net/http: TLS handshake timeout`) |
| 17 | t.Log(res) |
| 18 | } |
nothing calls this directly
no test coverage detected