MCPcopy Index your code
hub / github.com/codegangsta/gin / Test_Proxy_Run

Function Test_Proxy_Run

lib/proxy_test.go:20–29  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

18}
19
20func Test_Proxy_Run(t *testing.T) {
21 builder := NewMockBuilder()
22 runner := NewMockRunner()
23 proxy := gin.NewProxy(builder, runner)
24
25 config := &gin.Config{}
26
27 proxy.Run(config)
28 defer proxy.Close()
29}
30
31func Test_Proxying(t *testing.T) {
32 builder := NewMockBuilder()

Callers

nothing calls this directly

Calls 4

RunMethod · 0.95
CloseMethod · 0.95
NewMockBuilderFunction · 0.85
NewMockRunnerFunction · 0.85

Tested by

no test coverage detected