Skip to content

Commit ab06f81

Browse files
committed
chore: Remove further unused
1 parent 2548615 commit ab06f81

File tree

3 files changed

+10
-26
lines changed

3 files changed

+10
-26
lines changed

internal/discovery/discovery_test.go

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
/*
2-
Copyright 2023 The Kubernetes Authors All rights reserved.
3-
Licensed under the Apache License, Version 2.0 (the "License");
4-
you may not use this file except in compliance with the License.
5-
You may obtain a copy of the License at
6-
http://www.apache.org/licenses/LICENSE-2.0
7-
Unless required by applicable law or agreed to in writing, software
8-
distributed under the License is distributed on an "AS IS" BASIS,
9-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
10-
See the License for the specific language governing permissions and
11-
limitations under the License.
2+
Copyright 2023 The Kubernetes Authors All rights reserved.
3+
Licensed under the Apache License, Version 2.0 (the "License");
4+
you may not use this file except in compliance with the License.
5+
You may obtain a copy of the License at
6+
http://www.apache.org/licenses/LICENSE-2.0
7+
Unless required by applicable law or agreed to in writing, software
8+
distributed under the License is distributed on an "AS IS" BASIS,
9+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
10+
See the License for the specific language governing permissions and
11+
limitations under the License.
1212
*/
1313

1414
package discovery
@@ -26,7 +26,6 @@ func TestGVKMapsResolveGVK(t *testing.T) {
2626
desc string
2727
gvkmaps *CRDiscoverer
2828
gvk schema.GroupVersionKind
29-
got []groupVersionKindPlural
3029
want []groupVersionKindPlural
3130
}
3231
testcases := []testcase{

internal/store/networkpolicy_test.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,6 @@ func TestNetworkPolicyStore(t *testing.T) {
2929
startTime := 1501569018
3030
metav1StartTime := metav1.Unix(int64(startTime), 0)
3131

32-
const metadata = `
33-
# HELP kube_verticalpodautoscaler_labels Kubernetes labels converted to Prometheus labels.
34-
# TYPE kube_verticalpodautoscaler_labels gauge
35-
`
3632
cases := []generateMetricsTestCase{
3733
{
3834
Obj: &networkingv1.NetworkPolicy{

pkg/metrics_store/metrics_store_test.go

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -29,17 +29,6 @@ import (
2929
"k8s.io/kube-state-metrics/v2/pkg/metric"
3030
)
3131

32-
// Mock metricFamily instead of importing /pkg/metric to prevent cyclic
33-
// dependency.
34-
type metricFamily struct {
35-
value []byte
36-
}
37-
38-
// Implement FamilyByteSlicer interface.
39-
func (f *metricFamily) ByteSlice() []byte {
40-
return f.value
41-
}
42-
4332
func TestObjectsSameNameDifferentNamespaces(t *testing.T) {
4433
serviceIDs := []string{"a", "b"}
4534

0 commit comments

Comments
 (0)