MCPcopy
hub / github.com/Velocidex/velociraptor / tableTest

Function tableTest

utils/proxy/proxy_test.go:21–33  ·  view source on GitHub ↗
(t *testing.T,
	handler ProxyHandler, tests []testCase)

Source from the content-addressed store, hash-verified

19}
20
21func tableTest(t *testing.T,
22 handler ProxyHandler, tests []testCase) {
23 for _, test := range tests {
24 src, err := url.Parse(test.in)
25 assert.NoError(t, err)
26
27 dest, err := handler.Handle(&http.Request{
28 URL: src,
29 })
30 assert.NoError(t, err)
31 test.check(dest)
32 }
33}
34
35func destMatches(t *testing.T, regex string) func(dest *url.URL) {
36 return func(dest *url.URL) {

Callers 4

TestProxyNotConfiguredFunction · 0.85
TestProxyConfiguredFunction · 0.85
TestPACConfigurationFunction · 0.85

Calls 4

NoErrorFunction · 0.92
HandleMethod · 0.65
checkMethod · 0.65
ParseMethod · 0.45

Tested by

no test coverage detected