mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-21 01:50:55 +00:00
no lint unused variables
This commit is contained in:
@@ -1436,25 +1436,35 @@ func TestRequestStream(t *testing.T) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//nolint:unused
|
||||||
type fakeUpgradeConnection struct{}
|
type fakeUpgradeConnection struct{}
|
||||||
|
|
||||||
|
//nolint:unused
|
||||||
func (c *fakeUpgradeConnection) CreateStream(headers http.Header) (httpstream.Stream, error) {
|
func (c *fakeUpgradeConnection) CreateStream(headers http.Header) (httpstream.Stream, error) {
|
||||||
return nil, nil
|
return nil, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//nolint:unused
|
||||||
func (c *fakeUpgradeConnection) Close() error {
|
func (c *fakeUpgradeConnection) Close() error {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//nolint:unused
|
||||||
func (c *fakeUpgradeConnection) CloseChan() <-chan bool {
|
func (c *fakeUpgradeConnection) CloseChan() <-chan bool {
|
||||||
return make(chan bool)
|
return make(chan bool)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//nolint:unused
|
||||||
func (c *fakeUpgradeConnection) SetIdleTimeout(timeout time.Duration) {
|
func (c *fakeUpgradeConnection) SetIdleTimeout(timeout time.Duration) {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//nolint:unused
|
||||||
type fakeUpgradeRoundTripper struct {
|
type fakeUpgradeRoundTripper struct {
|
||||||
req *http.Request
|
req *http.Request
|
||||||
conn httpstream.Connection
|
conn httpstream.Connection
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//nolint:unused
|
||||||
func (f *fakeUpgradeRoundTripper) RoundTrip(req *http.Request) (*http.Response, error) {
|
func (f *fakeUpgradeRoundTripper) RoundTrip(req *http.Request) (*http.Response, error) {
|
||||||
f.req = req
|
f.req = req
|
||||||
b := []byte{}
|
b := []byte{}
|
||||||
@@ -1466,6 +1476,7 @@ func (f *fakeUpgradeRoundTripper) RoundTrip(req *http.Request) (*http.Response,
|
|||||||
return resp, nil
|
return resp, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//nolint:unused
|
||||||
func (f *fakeUpgradeRoundTripper) NewConnection(resp *http.Response) (httpstream.Connection, error) {
|
func (f *fakeUpgradeRoundTripper) NewConnection(resp *http.Response) (httpstream.Connection, error) {
|
||||||
return f.conn, nil
|
return f.conn, nil
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user