(recorder *httptest.ResponseRecorder)
| 38 | ) |
| 39 | |
| 40 | func GetTestContext(recorder *httptest.ResponseRecorder) *gin.Context { |
| 41 | gin.SetMode(gin.TestMode) |
| 42 | ctx, _ := gin.CreateTestContext(recorder) |
| 43 | ctx.Request = &http.Request{ |
| 44 | Header: make(http.Header), |
| 45 | URL: &url.URL{}, |
| 46 | } |
| 47 | return ctx |
| 48 | } |
| 49 | |
| 50 | func TestNamespaceBasics(t *testing.T) { |
| 51 | handler := &NamespaceHandler{s: store.NewClusterStore(engine.NewMock())} |
no outgoing calls
no test coverage detected