MCPcopy Create free account
hub / github.com/OpenListTeam/OpenList / TestHidePrivacy

Function TestHidePrivacy

server/common/hide_privacy_test.go:10–18  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

8)
9
10func 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}

Callers

nothing calls this directly

Calls 1

hidePrivacyFunction · 0.85

Tested by

no test coverage detected