| 1 | /* |
| 2 | Copyright 2019 The Kubernetes Authors. |
| 3 | |
| 4 | Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | you may not use this file except in compliance with the License. |
| 6 | You may obtain a copy of the License at |
| 7 | |
| 8 | http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | |
| 10 | Unless required by applicable law or agreed to in writing, software |
| 11 | distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | See the License for the specific language governing permissions and |
| 14 | limitations under the License. |
| 15 | */ |
| 16 | |
| 17 | package semanticscip-go gomod k8s.io/utils . `k8s.io/utils/semantic`/ |
| 18 | |
| 19 | import ( |
| 20 | "testingscip-go gomod github.com/golang/go/src go1.23 testing/" |
| 21 | ) |
| 22 | |
| 23 | var mod2Equalscip-go gomod k8s.io/utils . `k8s.io/utils/semantic`/mod2Equal. = EqualitiesOrDiescip-go gomod k8s.io/utils . `k8s.io/utils/semantic`/EqualitiesOrDie().(func(ascip-go gomod k8s.io/utils . `k8s.io/utils/semantic`/mod2Equal:a., bscip-go gomod k8s.io/utils . `k8s.io/utils/semantic`/mod2Equal:b. int) bool { |
| 24 | return ascip-go gomod k8s.io/utils . `k8s.io/utils/semantic`/mod2Equal:a.%2 == bscip-go gomod k8s.io/utils . `k8s.io/utils/semantic`/mod2Equal:b.%2 |
| 25 | }) |
| 26 | |
| 27 | func TestEqualitiesscip-go gomod k8s.io/utils . `k8s.io/utils/semantic`/TestEqualities().(t *testingscip-go gomod github.com/golang/go/src go1.23 testing/.Tscip-go gomod github.com/golang/go/src go1.23 testing/T#) { |
| 28 | if !mod2Equalscip-go gomod k8s.io/utils . `k8s.io/utils/semantic`/mod2Equal..DeepEqualscip-go gomod k8s.io/utils . `k8s.io/utils/third_party/forked/golang/reflect`/Equalities#DeepEqual().(3, 5) { |
| 29 | t.Errorscip-go gomod github.com/golang/go/src go1.23 testing/common#Error().("expected 3 and 5 to be equal mod 2") |
| 30 | } |
| 31 | } |