mirror of
https://github.com/kubernetes/client-go.git
synced 2025-08-11 04:01:42 +00:00
no lint unused variables
Kubernetes-commit: 0019f986130fdd8ca17c6e5511b15168d9181b1e
This commit is contained in:
parent
2e69bf9be0
commit
d62dc4e20e
@ -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
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user