Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
61cb6df4
Commit
61cb6df4
authored
May 09, 2018
by
hangaoshuai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
clean unused code in restmapper_test.go
parent
5ba149e1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
22 deletions
+0
-22
BUILD
staging/src/k8s.io/apimachinery/pkg/api/meta/BUILD
+0
-1
restmapper_test.go
...g/src/k8s.io/apimachinery/pkg/api/meta/restmapper_test.go
+0
-21
No files found.
staging/src/k8s.io/apimachinery/pkg/api/meta/BUILD
View file @
61cb6df4
...
@@ -19,7 +19,6 @@ go_test(
...
@@ -19,7 +19,6 @@ go_test(
"//vendor/github.com/google/gofuzz:go_default_library",
"//vendor/github.com/google/gofuzz:go_default_library",
"//vendor/k8s.io/apimachinery/pkg/apis/meta/v1:go_default_library",
"//vendor/k8s.io/apimachinery/pkg/apis/meta/v1:go_default_library",
"//vendor/k8s.io/apimachinery/pkg/apis/meta/v1beta1:go_default_library",
"//vendor/k8s.io/apimachinery/pkg/apis/meta/v1beta1:go_default_library",
"//vendor/k8s.io/apimachinery/pkg/runtime:go_default_library",
"//vendor/k8s.io/apimachinery/pkg/runtime/schema:go_default_library",
"//vendor/k8s.io/apimachinery/pkg/runtime/schema:go_default_library",
"//vendor/k8s.io/apimachinery/pkg/util/diff:go_default_library",
"//vendor/k8s.io/apimachinery/pkg/util/diff:go_default_library",
],
],
...
...
staging/src/k8s.io/apimachinery/pkg/api/meta/restmapper_test.go
View file @
61cb6df4
...
@@ -17,34 +17,13 @@ limitations under the License.
...
@@ -17,34 +17,13 @@ limitations under the License.
package
meta
package
meta
import
(
import
(
"errors"
"reflect"
"reflect"
"strings"
"strings"
"testing"
"testing"
"k8s.io/apimachinery/pkg/runtime"
"k8s.io/apimachinery/pkg/runtime/schema"
"k8s.io/apimachinery/pkg/runtime/schema"
)
)
type
fakeConvertor
struct
{}
func
(
fakeConvertor
)
Convert
(
in
,
out
,
context
interface
{})
error
{
return
nil
}
func
(
fakeConvertor
)
ConvertToVersion
(
in
runtime
.
Object
,
_
runtime
.
GroupVersioner
)
(
runtime
.
Object
,
error
)
{
return
in
,
nil
}
func
(
fakeConvertor
)
ConvertFieldLabel
(
version
,
kind
,
label
,
value
string
)
(
string
,
string
,
error
)
{
return
label
,
value
,
nil
}
var
validAccessor
=
resourceAccessor
{}
var
validConvertor
=
fakeConvertor
{}
var
unmatchedErr
=
errors
.
New
(
"no version"
)
func
TestRESTMapperVersionAndKindForResource
(
t
*
testing
.
T
)
{
func
TestRESTMapperVersionAndKindForResource
(
t
*
testing
.
T
)
{
testGroup
:=
"test.group"
testGroup
:=
"test.group"
testVersion
:=
"test"
testVersion
:=
"test"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment