-
Notifications
You must be signed in to change notification settings - Fork 113
/
negative_tests.go
56 lines (41 loc) · 1023 Bytes
/
negative_tests.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
package checker_test
// Deprecated: part of the old API; use API v2
func ProperDeprecationComment() {}
// This is not a Deprecated: comment at all.
func FalsePositive1() {}
// This is not a Deprecated?
func FalsePositive2() {}
// Deprecated is a function name.
func Deprecated() {}
// deprecated is a type name.
type deprecated struct{}
// Derpecated is a type name.
type Derpecated struct{}
// Note that this one is not deprecated.
func f() {}
var (
// Dep: ...
_ = 0
// deprec
_ = 0
// dePreca
_ = 0
)
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// ComponentStatus (and ComponentStatus) holds the cluster validation info.
// Deprecated: This API is deprecated in v1.19+
type ComponentStatus struct {
foo string
// +optional
bar string
// +optional
fooBard []string
}
// ComponentStatusList represents the list of component statuses
// Deprecated: This API is deprecated in v1.19+
type ComponentStatusList struct {
string
// +optional
int
Items []ComponentStatus
}