Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 156 for _Equal (0.16 sec)

  1. src/math/big/bits_test.go

    		want := fmt.Sprintf("%v", test.want)
    		if got != want {
    			t.Errorf("%v * %v = %s; want %s", test.x, test.y, got, want)
    		}
    
    	}
    }
    
    // norm returns the normalized bits for x: It removes multiple equal entries
    // by treating them as an addition (e.g., Bits{5, 5} => Bits{6}), and it sorts
    // the result list for reproducible results.
    func (x Bits) norm() Bits {
    	m := make(map[int]bool)
    	for _, b := range x {
    		for m[b] {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  2. analysis/analysis-api-platform-interface/src/org/jetbrains/kotlin/analysis/api/platform/KotlinProjectMessageBusProvider.kt

     *
     * [KotlinMessageBusProvider] exists so that this default may change in the future without breaking the API. Hence, it should not be assumed
     * that the message bus provided by [KotlinMessageBusProvider] will always be equal to the project's message bus.
     */
    public class KotlinProjectMessageBusProvider(private val project: Project) : KotlinMessageBusProvider {
        override fun getMessageBus(): MessageBus = project.messageBus
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Thu Jun 06 17:44:50 UTC 2024
    - 952 bytes
    - Viewed (0)
  3. pkg/kubelet/util/util_unix_test.go

    	for _, test := range tests {
    		fullPath, err := LocalEndpoint(test.path, test.file)
    		if test.expectError {
    			assert.NotNil(t, err, "expected error")
    			continue
    		}
    		assert.Nil(t, err, "expected no error")
    		assert.Equal(t, test.expectedFullPath, fullPath)
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 14 08:58:18 UTC 2024
    - 1.3K bytes
    - Viewed (0)
  4. cni/pkg/log/uds_test.go

    		delete(parsedLog, "time")
    		want := map[string]any{
    			"level": cases[i].level,
    			"msg":   cases[i].msg,
    		}
    		if k := cases[i].key; k != nil {
    			want["key"] = *k
    		}
    		assert.Equal(t, want, parsedLog)
    		i++
    	}
    }
    
    func TestParseCniLog(t *testing.T) {
    	wantT := &time.Time{}
    	assert.NoError(t, wantT.UnmarshalText([]byte("2020-01-01T00:00:00.356374Z")))
    	cases := []struct {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jun 12 16:26:28 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiserver/pkg/cel/lazy/lazy_test.go

    	})
    
    	exp := "variables.foo == 'foo-string'"
    	v, err := compileAndRun(env, activation, exp)
    	if err != nil {
    		t.Fatalf("%q: %v", exp, err)
    	}
    	if !v.Value().(bool) {
    		t.Errorf("expected equal but got non-equal")
    	}
    
    	evalCounter := 0
    	// add dict as a map constructed from an expression
    	variablesType.Fields["dict"] = apiservercel.NewDeclField("dict", apiservercel.DynType, true, nil, nil)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 10 22:07:40 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  6. src/crypto/x509/oid.go

    	if !ok {
    		return errInvalidOID
    	}
    	*o = oid
    	return nil
    }
    
    // Equal returns true when oid and other represents the same Object Identifier.
    func (oid OID) Equal(other OID) bool {
    	// There is only one possible DER encoding of
    	// each unique Object Identifier.
    	return bytes.Equal(oid.der, other.der)
    }
    
    func parseBase128Int(bytes []byte, initOffset int) (ret, offset int, failed bool) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 19:10:38 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  7. cmd/kubeadm/app/util/certs/util.go

    // with seconds as the maximum precision.
    func AssertCertificateHasNotBefore(t *testing.T, cert *x509.Certificate, expectedNotBefore time.Time) {
    	truncated := expectedNotBefore.Truncate(time.Second)
    	if !cert.NotBefore.Equal(truncated) {
    		t.Errorf("cert has NotBefore %v, expected %v", cert.NotBefore, truncated)
    	}
    }
    
    // AssertCertificateHasNotAfter is a utility function for kubeadm testing that asserts if a given certificate has
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 01 16:01:49 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  8. pilot/pkg/security/authz/matcher/template_test.go

    				PathTemplate: "/*/*/foo/**/bar",
    			},
    		},
    	}
    
    	for _, tc := range testCases {
    		t.Run(tc.name, func(t *testing.T) {
    			got := PathTemplateMatcher(tc.path)
    			if !cmp.Equal(got, tc.want, protocmp.Transform()) {
    				t.Errorf("want %v but got %v", tc.want, got)
    			}
    		})
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sat Apr 20 01:58:53 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  9. pilot/pkg/serviceregistry/kube/controller/endpoint_builder_test.go

    				networkManager: &networkManager{
    					clusterID: c.ctl.cluster,
    					network:   c.ctl.network,
    				},
    				opts: Options{ClusterID: c.ctl.cluster},
    			}
    			eb := cc.NewEndpointBuilder(&pod)
    
    			assert.Equal(t, eb.labels, c.expected)
    		})
    	}
    }
    
    func TestNewEndpointBuilderFromMetadataTopologyLabels(t *testing.T) {
    	cases := []struct {
    		name     string
    		ctl      testController
    		proxy    *model.Proxy
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 21:07:03 UTC 2024
    - 7.8K bytes
    - Viewed (0)
  10. pkg/test/framework/components/echo/match/matchers.go

    	return i.Config().IsExternal()
    }
    
    // NotExternal is equivalent to Not(External)
    var NotExternal = Not(External)
    
    // Naked matches instances with any subset marked with SidecarInject equal to false.
    var Naked Matcher = func(i echo.Instance) bool {
    	return i.Config().IsNaked()
    }
    
    // AllNaked matches instances where every subset has SidecarInject set to false.
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 02 21:29:40 UTC 2024
    - 5.6K bytes
    - Viewed (0)
Back to top