- Sort Score
- Result 10 results
- Languages All
Results 191 - 200 of 1,023 for Cmp (0.03 sec)
-
test/bigmap.go
r[i] = byte(x + i*y) } return r } func cmp(x, y [1000]byte) { for i := 0; i < len(x); i++ { if x[i] != y[i] { panic("BUG mismatch") } } } func main() { m := make(map[int][1000]byte) m[1] = seq(11, 13) m[2] = seq(2, 9) m[3] = seq(3, 17) cmp(m[1], seq(11, 13)) cmp(m[2], seq(2, 9)) cmp(m[3], seq(3, 17)) { type T [1]byte type V [1]byte
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 25 02:41:07 UTC 2012 - 2.5K bytes - Viewed (0) -
staging/src/k8s.io/cli-runtime/pkg/printers/json_test.go
See the License for the specific language governing permissions and limitations under the License. */ package printers import ( "bytes" "reflect" "testing" "github.com/google/go-cmp/cmp" v1 "k8s.io/api/core/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/runtime" "k8s.io/apimachinery/pkg/util/json" "k8s.io/client-go/kubernetes/scheme" ) var testData = TestStruct{
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 12 15:46:12 UTC 2023 - 4K bytes - Viewed (0) -
pilot/pkg/security/authn/utils/utils_test.go
// limitations under the License. package utils import ( "testing" tls "github.com/envoyproxy/go-control-plane/envoy/extensions/transport_sockets/tls/v3" "github.com/google/go-cmp/cmp" "google.golang.org/protobuf/testing/protocmp" meshconfig "istio.io/api/mesh/v1alpha1" model "istio.io/istio/pilot/pkg/model" "istio.io/istio/pilot/pkg/networking" ) func TestGetMinTLSVersion(t *testing.T) {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Jul 10 20:24:43 UTC 2023 - 3.1K bytes - Viewed (0) -
pilot/cmd/pilot-agent/config/config_test.go
// See the License for the specific language governing permissions and // limitations under the License. package config import ( "testing" "time" "github.com/google/go-cmp/cmp" "google.golang.org/protobuf/testing/protocmp" "google.golang.org/protobuf/types/known/durationpb" meshconfig "istio.io/api/mesh/v1alpha1" "istio.io/istio/pkg/config/mesh" )
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Mar 13 11:53:23 UTC 2023 - 3.8K bytes - Viewed (0) -
operator/pkg/apis/istio/v1alpha1/deepcopy_test.go
// See the License for the specific language governing permissions and // limitations under the License. package v1alpha1_test import ( "os" "testing" "github.com/google/go-cmp/cmp" "google.golang.org/protobuf/testing/protocmp" "sigs.k8s.io/yaml" v1alpha12 "istio.io/api/operator/v1alpha1" "istio.io/istio/operator/pkg/apis/istio" install "istio.io/istio/operator/pkg/apis/istio/v1alpha1" )
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Dec 05 23:34:13 UTC 2022 - 3.4K bytes - Viewed (0) -
operator/pkg/util/progress/progress.go
cmpName := name.ComponentName(component) cliName := name.UserFacingComponentName(cmpName) p.mu.Lock() defer p.mu.Unlock() cmp := p.components[component] // The component has completed cmp.mu.Lock() finished := cmp.finished cmpErr := cmp.err cmp.mu.Unlock() successIcon := "✅" if icon, found := name.IstioComponentSuccessIcons[cmpName]; found { successIcon = icon }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue May 14 19:23:44 UTC 2024 - 6.2K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/admission/plugin/webhook/request/admissionreview_test.go
t.Errorf("unexpected: %v", cmp.Diff(e, a)) } if e, a := tc.expectAllowed, result.Allowed; !reflect.DeepEqual(e, a) { t.Errorf("unexpected: %v", cmp.Diff(e, a)) } if e, a := tc.expectPatch, result.Patch; !reflect.DeepEqual(e, a) { t.Errorf("unexpected: %v", cmp.Diff(e, a)) } if e, a := tc.expectPatchType, result.PatchType; !reflect.DeepEqual(e, a) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Mar 07 16:56:12 UTC 2023 - 20.1K bytes - Viewed (0) -
src/cmd/compile/internal/ssa/_gen/ARM64.rules
(NE (InvertFlags cmp) yes no) => (NE cmp yes no) (FLT (InvertFlags cmp) yes no) => (FGT cmp yes no) (FGT (InvertFlags cmp) yes no) => (FLT cmp yes no) (FLE (InvertFlags cmp) yes no) => (FGE cmp yes no) (FGE (InvertFlags cmp) yes no) => (FLE cmp yes no) (LTnoov (InvertFlags cmp) yes no) => (GTnoov cmp yes no) (GEnoov (InvertFlags cmp) yes no) => (LEnoov cmp yes no)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 15:49:20 UTC 2024 - 113.1K bytes - Viewed (0) -
src/cmd/compile/internal/walk/compare.go
ncs = n.Y case ir.IsConst(n.Y, constant.String): cs = n.Y ncs = n.X } if cs != nil { cmp := n.Op() // Our comparison below assumes that the non-constant string // is on the left hand side, so rewrite "" cmp x to x cmp "". // See issue 24817. if ir.IsConst(n.X, constant.String) { cmp = brrev(cmp) } // maxRewriteLen was chosen empirically. // It is the value that minimizes cmd/go file size
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 24 21:55:14 UTC 2023 - 16.2K bytes - Viewed (0) -
src/math/big/prime.go
x = x.random(rand, nm3, nm3Len) x = x.add(x, natTwo) } y = y.expNN(x, q, n, false) if y.cmp(natOne) == 0 || y.cmp(nm1) == 0 { continue } for j := uint(1); j < k; j++ { y = y.sqr(y) quotient, y = quotient.div(y, y, n) if y.cmp(nm1) == 0 { continue NextRandom } if y.cmp(natOne) == 0 { return false } } return false } return true }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Nov 02 14:43:52 UTC 2022 - 10.4K bytes - Viewed (0)