MCPcopy
hub / github.com/gin-gonic/gin / CreateTestResponseRecorder

Function CreateTestResponseRecorder

context_test.go:3010–3015  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3008}
3009
3010func CreateTestResponseRecorder() *TestResponseRecorder {
3011 return &TestResponseRecorder{
3012 httptest.NewRecorder(),
3013 make(chan bool, 1),
3014 }
3015}
3016
3017func TestContextStream(t *testing.T) {
3018 w := CreateTestResponseRecorder()

Callers 3

TestContextStreamFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected