Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for testVol (0.27 sec)

  1. pkg/volume/csi/csi_mounter_test.go

    	fakecsi "k8s.io/kubernetes/pkg/volume/csi/fake"
    	"k8s.io/kubernetes/pkg/volume/util"
    	volumetypes "k8s.io/kubernetes/pkg/volume/util/types"
    )
    
    var (
    	testDriver  = "test-driver"
    	testVol     = "vol-123"
    	testns      = "test-ns"
    	testPod     = "test-pod"
    	testPodUID  = types.UID("test-pod")
    	testAccount = "test-service-account"
    )
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 50.1K bytes
    - Viewed (0)
  2. pkg/volume/csi/csi_attacher_test.go

    	}{
    		{
    			name:       "test ok 1",
    			nodeName:   "testnode-01",
    			driverName: "testdriver-01",
    			volumeName: "testvol-01",
    			attachID:   getAttachmentName("testvol-01", "testdriver-01", "testnode-01"),
    			spec:       volume.NewSpecFromPersistentVolume(makeTestPV("pv01", 10, "testdriver-01", "testvol-01"), false),
    		},
    		{
    			name:       "test ok 2",
    			nodeName:   "node02",
    			driverName: "driver02",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 18 12:23:16 UTC 2024
    - 58.1K bytes
    - Viewed (0)
  3. cmd/xl-storage_test.go

    		t.Fatalf("Unable to create file, %s", err)
    	}
    
    	testCases := []struct {
    		srcVol      string
    		destVol     string
    		srcPath     string
    		destPath    string
    		expectedErr error
    	}{
    		// TestXLStorage case - 1.
    		{
    			srcVol:      "src-vol",
    			destVol:     "dest-vol",
    			srcPath:     "file1",
    			destPath:    "file-one",
    			expectedErr: nil,
    		},
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Apr 11 17:45:28 UTC 2024
    - 66.7K bytes
    - Viewed (0)
  4. src/regexp/testdata/testregex.c

    				case '?':
    					test |= TEST_VERIFY;
    					test &= ~(TEST_AND|TEST_OR);
    					state.verify = state.passed;
    					continue;
    				case '&':
    					test |= TEST_VERIFY|TEST_AND;
    					test &= ~TEST_OR;
    					continue;
    				case '|':
    					test |= TEST_VERIFY|TEST_OR;
    					test &= ~TEST_AND;
    					continue;
    				case ';':
    					test |= TEST_OR;
    					test &= ~TEST_AND;
    					continue;
    
    				case '{':
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 08 04:08:51 UTC 2014
    - 51.3K bytes
    - Viewed (0)
  5. src/testing/testing.go

    		os.Exit(2)
    	}
    	if *testlog != "" {
    		// Note: Not using toOutputDir.
    		// This file is for use by cmd/go, not users.
    		var f *os.File
    		var err error
    		if m.numRun == 1 {
    			f, err = os.Create(*testlog)
    		} else {
    			f, err = os.OpenFile(*testlog, os.O_WRONLY, 0)
    			if err == nil {
    				f.Seek(0, io.SeekEnd)
    			}
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 76.1K bytes
    - Viewed (0)
  6. src/cmd/go/go_test.go

    func skipIfGccgo(t *testing.T, msg string) {
    	if runtime.Compiler == "gccgo" {
    		t.Skipf("skipping test not supported on gccgo: %s", msg)
    	}
    }
    
    // testgo sets up for a test that runs testgo.
    func testgo(t *testing.T) *testgoData {
    	t.Helper()
    	testenv.MustHaveGoBuild(t)
    	testenv.SkipIfShortAndSlow(t)
    
    	return &testgoData{t: t}
    }
    
    // must gives a fatal error if err is not nil.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 81.1K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/collect/IteratorsTest.java

        list.add("cool");
        assertFalse(Iterators.any(list.iterator(), predicate));
        list.add("pants");
        assertTrue(Iterators.any(list.iterator(), predicate));
      }
    
      public void testAll() {
        List<String> list = Lists.newArrayList();
        Predicate<String> predicate = Predicates.equalTo("cool");
    
        assertTrue(Iterators.all(list.iterator(), predicate));
        list.add("cool");
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri May 03 13:01:51 UTC 2024
    - 55.7K bytes
    - Viewed (0)
  8. src/math/big/int_test.go

    }
    
    func checkMul(a, b []byte) bool {
    	var x, y, z1 Int
    	x.SetBytes(a)
    	y.SetBytes(b)
    	z1.Mul(&x, &y)
    
    	var z2 Int
    	z2.SetBytes(mulBytes(a, b))
    
    	return z1.Cmp(&z2) == 0
    }
    
    func TestMul(t *testing.T) {
    	if err := quick.Check(checkMul, nil); err != nil {
    		t.Error(err)
    	}
    }
    
    var mulRangesZ = []struct {
    	a, b int64
    	prod string
    }{
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 18:42:28 UTC 2024
    - 58.5K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apimachinery/pkg/api/resource/quantity_test.go

    	for i, test := range tests {
    		test.a.Add(test.b)
    		if test.a.Cmp(test.expected) != 0 {
    			t.Errorf("[%d] Expected %q, got %q", i, test.expected.String(), test.a.String())
    		}
    	}
    }
    
    func TestMul(t *testing.T) {
    	tests := []struct {
    		a        Quantity
    		b        int64
    		expected Quantity
    		ok       bool
    	}{
    		{decQuantity(10, 0, DecimalSI), 10, decQuantity(100, 0, DecimalSI), true},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 21:48:10 UTC 2024
    - 49.4K bytes
    - Viewed (0)
  10. src/net/url/url_test.go

    	u1 := new(URL)
    	err = json.Unmarshal(js, u1)
    	if err != nil {
    		t.Fatal(err)
    	}
    	if u1.String() != u.String() {
    		t.Errorf("json decoded to: %s\nwant: %s\n", u1, u)
    	}
    }
    
    func TestGob(t *testing.T) {
    	u, err := Parse("https://www.google.com/x?y=z")
    	if err != nil {
    		t.Fatal(err)
    	}
    	var w bytes.Buffer
    	err = gob.NewEncoder(&w).Encode(u)
    	if err != nil {
    		t.Fatal(err)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 22:52:38 UTC 2024
    - 52.1K bytes
    - Viewed (0)
Back to top