Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 16 for testKey1 (0.16 sec)

  1. cmd/xl-storage-format_test.go

    	}
    	xlMeta.Stat = StatInfo{
    		Size:    int64(20),
    		ModTime: UTCNow(),
    	}
    	// Set meta data.
    	xlMeta.Meta = make(map[string]string)
    	xlMeta.Meta["testKey1"] = "val1"
    	xlMeta.Meta["testKey2"] = "val2"
    	return xlMeta
    }
    
    func (m *xlMetaV1Object) AddTestObjectCheckSum(partNumber int, algorithm BitrotAlgorithm, hash string) {
    	checksum, err := hex.DecodeString(hash)
    	if err != nil {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Feb 22 06:26:06 UTC 2024
    - 17.6K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/storage/etcd3/store_test.go

    	testCases := []struct {
    		key                 string
    		expectAttachedCount int64
    	}{
    		{
    			key:                 "testkey1",
    			expectAttachedCount: 1,
    		},
    		{
    			key:                 "testkey2",
    			expectAttachedCount: 2,
    		},
    		{
    			key: "testkey3",
    			// We assume each time has 1 object attached to the lease
    			// so after granting a new lease, the recorded count is set to 1
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 11 12:45:33 UTC 2024
    - 26.5K bytes
    - Viewed (0)
  3. plugin/pkg/admission/podtolerationrestriction/admission_test.go

    			namespaceTolerations:      []api.Toleration{{Key: "testKey", Operator: "Equal", Value: "testValue", Effect: "NoSchedule"}},
    			podTolerations:            []api.Toleration{{Key: "testKey", Operator: "Equal", Value: "testValue1", Effect: "NoSchedule"}},
    			mergedTolerations:         []api.Toleration{{Key: "testKey", Operator: "Equal", Value: "testValue", Effect: "NoSchedule"}, {Key: "testKey", Operator: "Equal", Value: "testValue1", Effect: "NoSchedule"}},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 06 00:00:21 UTC 2024
    - 16K bytes
    - Viewed (0)
  4. src/os/env_test.go

    		}
    	}(Environ())
    
    	if err := Setenv(testKey, testValue); err != nil {
    		t.Fatalf("Setenv(%q, %q) failed: %v", testKey, testValue, err)
    	}
    	if _, ok := LookupEnv(testKey); !ok {
    		t.Errorf("Setenv(%q, %q) didn't set $%s", testKey, testValue, testKey)
    	}
    	Clearenv()
    	if val, ok := LookupEnv(testKey); ok {
    		t.Errorf("Clearenv() didn't clear $%s, remained with value %q", testKey, val)
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jul 04 15:31:54 UTC 2023
    - 5K bytes
    - Viewed (0)
  5. cmd/sftp-server_test.go

    	if err != nil {
    		c.Fatalf("could not read test key file: %s", err)
    	}
    
    	testKey, _, _, _, err := ssh.ParseAuthorizedKey(keyBytes)
    	if err != nil {
    		c.Fatalf("could not parse test key file: %s", err)
    	}
    
    	newSSHCon := newSSHConnMock("dillon=ldap")
    	_, err = sshPubKeyAuth(newSSHCon, testKey)
    	if err == nil || !errors.Is(err, errAuthentication) {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed Jun 05 07:51:13 UTC 2024
    - 8K bytes
    - Viewed (0)
  6. src/cmd/go/testdata/script/test_cache_inputs.txt

    # should invalidate cached test results.
    env TESTKEY=x
    go test testcache -run=TestLookupEnv
    go test testcache -run=TestLookupEnv
    stdout '\(cached\)'
    
    # GODEBUG is always read
    env GODEBUG=asdf=1
    go test testcache -run=TestLookupEnv
    ! stdout '\(cached\)'
    go test testcache -run=TestLookupEnv
    stdout '\(cached\)'
    env GODEBUG=
    
    env TESTKEY=y
    go test testcache -run=TestLookupEnv
    ! stdout '\(cached\)'
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Mar 09 22:23:53 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  7. test/typeparam/mapsimp.dir/main.go

    package main
    
    import (
    	"./a"
    	"fmt"
    	"math"
    	"sort"
    )
    
    var m1 = map[int]int{1: 2, 2: 4, 4: 8, 8: 16}
    var m2 = map[int]string{1: "2", 2: "4", 4: "8", 8: "16"}
    
    func TestKeys() {
    	want := []int{1, 2, 4, 8}
    
    	got1 := a.Keys(m1)
    	sort.Ints(got1)
    	if !a.SliceEqual(got1, want) {
    		panic(fmt.Sprintf("a.Keys(%v) = %v, want %v", m1, got1, want))
    	}
    
    	got2 := a.Keys(m2)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 24 02:14:15 UTC 2022
    - 3.6K bytes
    - Viewed (0)
  8. cni/pkg/repair/repair_test.go

    				InitExitCode:       126,
    				InitTerminationMsg: "Died for some reason",
    				LabelKey:           "testkey",
    				LabelValue:         "testval",
    			},
    			wantLabels: map[string]string{workingPod.Name: "", workingPodDiedPreviously.Name: "", brokenPodWaiting.Name: "testkey=testval"},
    			wantCount:  1,
    			wantTags:   map[string]string{"result": resultSuccess, "type": labelType},
    		},
    		{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Oct 24 03:31:28 UTC 2023
    - 10.6K bytes
    - Viewed (0)
  9. maven-toolchain-builder/src/test/java/org/apache/maven/toolchain/building/DefaultToolchainsBuilderTest.java

        @Test
        void testEnvironmentVariablesAreInterpolated() throws Exception {
            Properties props = new Properties();
            props.put("key", "${env.testKey}");
            Xpp3Dom configurationChild = new Xpp3Dom("jdkHome");
            configurationChild.setValue("${env.testKey}");
            Xpp3Dom configuration = new Xpp3Dom("configuration");
            configuration.addChild(configurationChild);
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Mon Mar 25 10:50:01 UTC 2024
    - 14.4K bytes
    - Viewed (0)
  10. src/maps/iter_test.go

    			if !ok || v != v1 {
    				t.Errorf("at iteration %d got %d, %d want %d, %d", cnt, i, v, i, v1)
    			}
    			cnt++
    		}
    		if cnt != size {
    			t.Errorf("read %d values expected %d", cnt, size)
    		}
    	}
    }
    
    func TestKeys(t *testing.T) {
    	for size := 0; size < 10; size++ {
    		var want []int
    		m := make(map[int]int)
    		for i := range size {
    			m[i] = i
    			want = append(want, i)
    		}
    
    		var got []int
    		for k := range Keys(m) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:44:19 UTC 2024
    - 1.9K bytes
    - Viewed (0)
Back to top