mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-10 21:50:05 +00:00
clean up unused code fakeRL in requestinfo_test.go
This commit is contained in:
@@ -25,12 +25,6 @@ import (
|
|||||||
"k8s.io/apimachinery/pkg/util/sets"
|
"k8s.io/apimachinery/pkg/util/sets"
|
||||||
)
|
)
|
||||||
|
|
||||||
type fakeRL bool
|
|
||||||
|
|
||||||
func (fakeRL) Stop() {}
|
|
||||||
func (f fakeRL) TryAccept() bool { return bool(f) }
|
|
||||||
func (f fakeRL) Accept() {}
|
|
||||||
|
|
||||||
func TestGetAPIRequestInfo(t *testing.T) {
|
func TestGetAPIRequestInfo(t *testing.T) {
|
||||||
namespaceAll := metav1.NamespaceAll
|
namespaceAll := metav1.NamespaceAll
|
||||||
successCases := []struct {
|
successCases := []struct {
|
||||||
|
Reference in New Issue
Block a user