Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for ExpectSuccess (0.15 sec)

  1. android/guava-tests/test/com/google/common/primitives/UnsignedIntegerTest.java

        long max = (1L << 32) - 1;
        for (long value : TEST_LONGS) {
          boolean expectSuccess = value >= min && value <= max;
          try {
            assertThat(UnsignedInteger.valueOf(value).longValue()).isEqualTo(value);
            assertThat(expectSuccess).isTrue();
          } catch (IllegalArgumentException e) {
            assertThat(expectSuccess).isFalse();
          }
        }
      }
    
      public void testValueOfBigInteger() {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Jun 01 09:32:35 UTC 2023
    - 9.6K bytes
    - Viewed (0)
  2. testing/internal-integ-testing/src/main/groovy/org/gradle/test/fixtures/SingleArtifactResolutionResultSpec.groovy

    @CompileStatic
    class SingleArtifactResolutionResultSpec<T extends Module> {
        private final T module
    
        SingleArtifactResolutionResultSpec(T module) {
            this.module = module
        }
    
        boolean expectSuccess = true
        List<String> expectedFileNames = []
        List<Closure<?>> failureExpectations = []
    
        void expectFiles(String... fileNames) {
            expectFiles(fileNames as List<String>)
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/primitives/UnsignedIntegerTest.java

        long max = (1L << 32) - 1;
        for (long value : TEST_LONGS) {
          boolean expectSuccess = value >= min && value <= max;
          try {
            assertThat(UnsignedInteger.valueOf(value).longValue()).isEqualTo(value);
            assertThat(expectSuccess).isTrue();
          } catch (IllegalArgumentException e) {
            assertThat(expectSuccess).isFalse();
          }
        }
      }
    
      public void testValueOfBigInteger() {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Jun 01 09:32:35 UTC 2023
    - 9.6K bytes
    - Viewed (0)
  4. tests/integration/security/ca_custom_root/secure_naming_test.go

    						destinationRule string
    						expectSuccess   bool
    					}{
    						{
    							name:            "connection fails when DR doesn't match SA",
    							destinationRule: defaultIdentityDR,
    							expectSuccess:   false,
    						},
    						{
    							name:            "connection succeeds when DR matches SA",
    							destinationRule: correctIdentityDR,
    							expectSuccess:   true,
    						},
    						{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Apr 08 22:02:59 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  5. pkg/volume/csi/csi_metrics_test.go

    )
    
    func TestGetMetrics(t *testing.T) {
    	tests := []struct {
    		name          string
    		volumeID      string
    		targetPath    string
    		expectSuccess bool
    	}{
    		{
    			name:          "with valid name and volume id",
    			expectSuccess: true,
    			volumeID:      "foobar",
    			targetPath:    "/mnt/foo",
    		},
    	}
    
    	for _, tc := range tests {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Sep 11 06:07:40 UTC 2023
    - 5.8K bytes
    - Viewed (0)
  6. pkg/kubelet/pod/mirror_client_test.go

    		desc          string
    		node          *v1.Node
    		nodeErr       error
    		expectSuccess bool
    	}{{
    		desc:          "cannot get node",
    		nodeErr:       errors.New("expected: cannot get node"),
    		expectSuccess: false,
    	}, {
    		desc: "node missing UID",
    		node: &v1.Node{
    			ObjectMeta: metav1.ObjectMeta{
    				Name: testNodeName,
    			},
    		},
    		expectSuccess: false,
    	}, {
    		desc: "successfully fetched node",
    		node: &v1.Node{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Jan 08 12:44:09 UTC 2023
    - 4.2K bytes
    - Viewed (0)
  7. platforms/software/resources-http/src/test/groovy/org/gradle/internal/resource/transport/http/HttpClientHelperSSLTest.groovy

            client = new HttpClientHelper(new DocumentationRegistry(), settings)
        }
    
        private def performRequest(boolean expectSuccess = true, boolean needClientAuth = false) {
            createClient()
    
            server.configure(keyStore, needClientAuth)
            server.start()
            if (expectSuccess) {
                server.expect("/test")
            }
    
            client.performGet("${server.getUri()}/test", false)
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Nov 07 05:29:07 UTC 2023
    - 9.7K bytes
    - Viewed (0)
  8. platforms/software/maven/src/testFixtures/groovy/org/gradle/integtests/fixtures/publish/maven/AbstractMavenPublishIntegTest.groovy

                    additionalArtifacts: additionalArtifacts?.asImmutable(),
                    variant: variant,
                    resolveModuleMetadata: withModuleMetadata,
                    expectFailure: !expectationSpec.expectSuccess,
                    optionalFeatureCapabilities: optionalFeatureCapabilities,
                )
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 12 14:02:46 UTC 2023
    - 8.1K bytes
    - Viewed (0)
  9. src/internal/trace/testtrace/expectation.go

    	"strings"
    )
    
    // Expectation represents the expected result of some operation.
    type Expectation struct {
    	failure      bool
    	errorMatcher *regexp.Regexp
    }
    
    // ExpectSuccess returns an Expectation that trivially expects success.
    func ExpectSuccess() *Expectation {
    	return new(Expectation)
    }
    
    // Check validates whether err conforms to the expectation. Returns
    // an error if it does not conform.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  10. tests/integration/security/util/reachability/context.go

    								// TODO(https://github.com/istio/istio/issues/37629) go back to 5s
    								opts.Timeout = time.Second * 10
    
    								expectSuccess := c.ExpectSuccess(from, opts)
    								expectMTLS := c.ExpectMTLS(from, opts)
    								var tpe string
    								if expectSuccess {
    									tpe = "positive"
    									opts.Check = check.And(
    										check.OK(),
    										check.ReachedTargetClusters(t))
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Aug 23 21:20:43 UTC 2022
    - 8.6K bytes
    - Viewed (0)
Back to top