Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 723 for testPass (0.15 sec)

  1. pkg/volume/emptydir/empty_dir_test.go

    			shouldFail:     true,
    			expectedResult: "",
    		},
    	}
    
    	for testCaseName, testCase := range testCases {
    		t.Run(testCaseName, func(t *testing.T) {
    			value, err := getPageSizeMountOption(testCase.medium, testCase.pod)
    			if testCase.shouldFail && err == nil {
    				t.Errorf("%s: Unexpected success", testCaseName)
    			} else if !testCase.shouldFail && err != nil {
    				t.Errorf("%s: Unexpected error: %v", testCaseName, err)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 21 10:18:16 UTC 2024
    - 30.7K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/server/options/etcd_test.go

    		},
    	}
    
    	for _, testcase := range testCases {
    		t.Run(testcase.name, func(t *testing.T) {
    			errs := testcase.testOptions.Validate()
    			if len(testcase.expectErr) != 0 && !strings.Contains(utilerrors.NewAggregate(errs).Error(), testcase.expectErr) {
    				t.Errorf("got err: %v, expected err: %s", errs, testcase.expectErr)
    			}
    			if len(testcase.expectErr) == 0 && len(errs) != 0 {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 16.4K bytes
    - Viewed (0)
  3. cmd/admin-handlers-users-race_test.go

    		// Init and run test on ErasureSet backend.
    		{serverType: "ErasureSet", signer: signerV4},
    	}
    	testCases := []*TestSuiteIAM{}
    	for _, bt := range baseTestCases {
    		testCases = append(testCases,
    			newTestSuiteIAM(bt, false),
    			newTestSuiteIAM(bt, true),
    		)
    	}
    	for i, testCase := range testCases {
    		etcdStr := ""
    		if testCase.withEtcdBackend {
    			etcdStr = " (with etcd backend)"
    		}
    		t.Run(
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  4. pkg/kubelet/eviction/helpers_test.go

    		},
    	}
    	for testName, testCase := range testCases {
    		thresholds, err := ParseThresholdConfig(testCase.allocatableConfig, testCase.evictionHard, testCase.evictionSoft, testCase.evictionSoftGracePeriod, testCase.evictionMinReclaim)
    		if testCase.expectErr != (err != nil) {
    			t.Errorf("Err not as expected, test: %v, error expected: %v, actual: %v", testName, testCase.expectErr, err)
    		}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 15 23:14:12 UTC 2024
    - 106.7K bytes
    - Viewed (0)
  5. cmd/object-api-listobjects_test.go

    				resultV, err = obj.ListObjectVersions(context.Background(), testCase.bucketName,
    					testCase.prefix, testCase.marker, "", testCase.delimiter, testCase.maxKeys)
    			} else {
    				t.Log("ListObjects, bucket:", testCase.bucketName, "prefix:",
    					testCase.prefix, "marker:", testCase.marker, "delimiter:",
    					testCase.delimiter, "maxkeys:", testCase.maxKeys)
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed May 01 11:07:40 UTC 2024
    - 73.1K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/base/MoreObjectsTest.java

    import com.google.common.annotations.J2ktIncompatible;
    import com.google.common.testing.NullPointerTester;
    import junit.framework.TestCase;
    
    /** Tests for {@link MoreObjects}. */
    @GwtCompatible(emulated = true)
    public class MoreObjectsTest extends TestCase {
      public void testFirstNonNull_withNonNull() {
        String s1 = "foo";
        String s2 = MoreObjects.firstNonNull(s1, "bar");
        assertSame(s1, s2);
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 22 21:24:55 UTC 2024
    - 2K bytes
    - Viewed (0)
  7. cmd/object-api-utils_test.go

    		{"lalalallalallalalalallalallalala-thestring-size-is-greater-than-63", false},
    	}
    
    	for i, testCase := range testCases {
    		isValidBucketName := IsValidBucketName(testCase.bucketName)
    		if testCase.shouldPass && !isValidBucketName {
    			t.Errorf("Test case %d: Expected \"%s\" to be a valid bucket name", i+1, testCase.bucketName)
    		}
    		if !testCase.shouldPass && isValidBucketName {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 23.4K bytes
    - Viewed (0)
  8. cmd/signature-v4_test.go

    				"Policy": []string{"policy"},
    			},
    			expected: ErrNone,
    		},
    	}
    
    	// Run each test case individually.
    	for i, testCase := range testCases {
    		_, code := doesPolicySignatureMatch(testCase.form)
    		if code != testCase.expected {
    			t.Errorf("(%d) expected to get %s, instead got %s", i, niceError(testCase.expected), niceError(code))
    		}
    	}
    }
    
    func TestDoesPresignedSignatureMatch(t *testing.T) {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Jun 13 22:26:38 UTC 2024
    - 10.5K bytes
    - Viewed (0)
  9. src/cmd/fix/main_test.go

    import (
    	"fmt"
    	"go/ast"
    	"go/parser"
    	"internal/diff"
    	"internal/testenv"
    	"strings"
    	"testing"
    )
    
    type testCase struct {
    	Name    string
    	Fn      func(*ast.File) bool
    	Version string
    	In      string
    	Out     string
    }
    
    var testCases []testCase
    
    func addTestCases(t []testCase, fn func(*ast.File) bool) {
    	// Fill in fn to avoid repetition in definitions.
    	if fn != nil {
    		for i := range t {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 22 05:31:47 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  10. pkg/spiffe/spiffe_test.go

    				"bar.domain.com": {validRootCert},
    			},
    			errContains: "x509: certificate signed by unknown authority",
    		},
    	}
    
    	for _, testCase := range testCases {
    		t.Run(testCase.name, func(t *testing.T) {
    			certMap := make(map[string][]*x509.Certificate)
    			for trustDomain, certStrs := range testCase.certMap {
    				certMap[trustDomain] = []*x509.Certificate{}
    				for _, certStr := range certStrs {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 21:07:03 UTC 2024
    - 18.1K bytes
    - Viewed (0)
Back to top