()
| 112 | } |
| 113 | |
| 114 | func (suite *httpTestSuite) TestSetPath() { |
| 115 | uri := suite.srv.URL + "/foo/bar/{{.baz}}" |
| 116 | p := NewHTTP(util.NewLogger("foo"), http.MethodGet, uri, false, 0) |
| 117 | |
| 118 | s, err := p.StringSetter("baz") |
| 119 | suite.Require().NoError(err) |
| 120 | suite.Require().NoError(s("4711")) |
| 121 | suite.Require().Equal("/foo/bar/4711", suite.h.req.URL.String()) |
| 122 | } |
nothing calls this directly
no test coverage detected