Skip to content

Commit 43bb1a2

Browse files
committed
fix: removed unused function
1 parent 025e48e commit 43bb1a2

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

listener/apischema/builder_test.go

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,6 @@ type fakeClient struct {
2020

2121
type fakeErrClient struct{}
2222

23-
type fakeRESTMapper struct {
24-
isNamespaced bool
25-
err error
26-
}
27-
2823
func (f *fakeClient) Paths() (map[string]openapi.GroupVersion, error) {
2924
return f.paths, nil
3025
}
@@ -33,17 +28,6 @@ func (f *fakeErrClient) Paths() (map[string]openapi.GroupVersion, error) {
3328
return nil, errors.New("fail Paths")
3429
}
3530

36-
func (f *fakeRESTMapper) RESTMapping(gk metav1.GroupKind, versions ...string) (*meta.RESTMapping, error) {
37-
if f.err != nil {
38-
return nil, f.err
39-
}
40-
scope := meta.RESTScopeRoot
41-
if f.isNamespaced {
42-
scope = meta.RESTScopeNamespace
43-
}
44-
return &meta.RESTMapping{Scope: scope}, nil
45-
}
46-
4731
// TestGetOpenAPISchemaKey tests the getOpenAPISchemaKey function. It checks if the
4832
// function correctly formats the GroupVersionKind into the expected schema key format.
4933
func TestGetOpenAPISchemaKey(t *testing.T) {

0 commit comments

Comments
 (0)