Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for ForHash (0.12 sec)

  1. staging/src/k8s.io/apimachinery/pkg/util/dump/dump_test.go

    		{map[string]embedwrap{"key": tebw}, "(map[string]dump.embedwrap)map[key:{embed:(dump.embed){s:(string)test} e:(*dump.embed){s:(string)test}}]"},
    	}
    
    	for i, tc := range testCases {
    		s := ForHash(tc.a)
    		if tc.want != s {
    			t.Errorf("[%d]:\n\texpected %q\n\tgot      %q", i, tc.want, s)
    		}
    	}
    }
    
    func TestOneLine(t *testing.T) {
    	tcs := customString("test")
    	tpcs := pCustomString("&test")
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Mar 27 01:24:22 UTC 2023
    - 10.3K bytes
    - Viewed (0)
  2. cmd/kubeadm/app/util/staticpod/utils.go

    // Copied from k8s.io/kubernetes/pkg/util/hash/hash.go#DeepHashObject
    func DeepHashObject(hasher hash.Hash, objectToWrite interface{}) {
    	hasher.Reset()
    	fmt.Fprintf(hasher, "%v", dump.ForHash(objectToWrite))
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Jan 14 13:07:56 UTC 2024
    - 14.1K bytes
    - Viewed (0)
Back to top