Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 3,750 for Assert1 (0.53 sec)

  1. platforms/documentation/docs/src/snippets/native-binaries/google-test/groovy/libs/googleTest/1.7.0/include/gtest/gtest.h

    //
    //    * {ASSERT|EXPECT}_EQ(expected, actual): Tests that expected == actual
    //    * {ASSERT|EXPECT}_NE(v1, v2):           Tests that v1 != v2
    //    * {ASSERT|EXPECT}_LT(v1, v2):           Tests that v1 < v2
    //    * {ASSERT|EXPECT}_LE(v1, v2):           Tests that v1 <= v2
    //    * {ASSERT|EXPECT}_GT(v1, v2):           Tests that v1 > v2
    //    * {ASSERT|EXPECT}_GE(v1, v2):           Tests that v1 >= v2
    //
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 86.4K bytes
    - Viewed (0)
  2. android/guava-testlib/src/com/google/common/collect/testing/Helpers.java

     */
    
    package com.google.common.collect.testing;
    
    import static java.util.Collections.sort;
    import static junit.framework.Assert.assertEquals;
    import static junit.framework.Assert.assertFalse;
    import static junit.framework.Assert.assertTrue;
    import static junit.framework.Assert.fail;
    
    import com.google.common.annotations.GwtCompatible;
    import com.google.common.annotations.GwtIncompatible;
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Jun 11 16:13:05 UTC 2024
    - 17.4K bytes
    - Viewed (0)
  3. guava-testlib/src/com/google/common/collect/testing/Helpers.java

     */
    
    package com.google.common.collect.testing;
    
    import static java.util.Collections.sort;
    import static junit.framework.Assert.assertEquals;
    import static junit.framework.Assert.assertFalse;
    import static junit.framework.Assert.assertTrue;
    import static junit.framework.Assert.fail;
    
    import com.google.common.annotations.GwtCompatible;
    import com.google.common.annotations.GwtIncompatible;
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Jun 11 16:13:05 UTC 2024
    - 17.4K bytes
    - Viewed (0)
  4. platforms/jvm/plugins-jvm-test-suite/src/integTest/groovy/org/gradle/testing/testsuites/TestSuitesIntegrationTest.groovy

                }
    
                tasks.test {
                    doLast {
                        assert test.testFramework instanceof ${JUnitPlatformTestFramework.canonicalName}
                        assert classpath.size() == 8
                        assert classpath.any { it.name =~ /junit-platform-launcher-.*.jar/ }
                        assert classpath.any { it.name == "junit-jupiter-${JUnitJupiterTestToolchain.DEFAULT_VERSION}.jar" }
                    }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Sep 13 20:36:32 UTC 2023
    - 35.8K bytes
    - Viewed (0)
  5. platforms/jvm/language-java/src/integTest/groovy/org/gradle/api/tasks/compile/JavaCompileProblemsIntegrationTest.groovy

            }
        }
    
        /**
         * Assert if a compilation problems looks like how we expect it to look like.
         * <p>
         * In addition, the method will update the {@link #possibleFileLocations} with the location found in the problem.
         * This could be used to assert that all expected files have been visited.
         *
         * @param problem the problem to assert
         * @param severity the expected severity of the problem
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Jun 06 16:15:29 UTC 2024
    - 24K bytes
    - Viewed (0)
  6. cmd/kubeadm/app/phases/certs/certs_test.go

    	}
    
    	assert.ElementsMatch(t, certConfig.Organization, csr.Subject.Organization, "organizations not equal")
    
    	if csr.Subject.CommonName != certConfig.CommonName {
    		t.Errorf("expected common name %q, got %q", certConfig.CommonName, csr.Subject.CommonName)
    	}
    
    	assert.ElementsMatch(t, certConfig.AltNames.DNSNames, csr.DNSNames, "dns names not equal")
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jan 31 21:49:21 UTC 2024
    - 23.3K bytes
    - Viewed (0)
  7. cmd/server_test.go

    	c.Assert(err, nil)
    	response, err = s.client.Do(request)
    	c.Assert(err, nil)
    	c.Assert(response.StatusCode, http.StatusOK)
    
    	deleteResp = DeleteObjectsResponse{}
    	delRespBytes, err = io.ReadAll(response.Body)
    	c.Assert(err, nil)
    	err = xml.Unmarshal(delRespBytes, &deleteResp)
    	c.Assert(err, nil)
    	c.Assert(len(deleteResp.DeletedObjects), len(delObjReq.Objects))
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 115.3K bytes
    - Viewed (0)
  8. src/internal/pkgbits/decoder.go

    	r := strings.NewReader(input)
    
    	assert(binary.Read(r, binary.LittleEndian, &pr.version) == nil)
    
    	switch pr.version {
    	default:
    		panic(fmt.Errorf("unsupported version: %v", pr.version))
    	case 0:
    		// no flags
    	case 1:
    		var flags uint32
    		assert(binary.Read(r, binary.LittleEndian, &flags) == nil)
    		pr.sync = flags&flagSyncMarkers != 0
    	}
    
    	assert(binary.Read(r, binary.LittleEndian, pr.elemEndsEnds[:]) == nil)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 27 20:58:46 UTC 2022
    - 13.2K bytes
    - Viewed (0)
  9. pkg/monitoring/monitortest/test.go

    			return fmt.Errorf("want %v samples, got %v", count, *d.SampleCount)
    		}
    		if *d.SampleSum != sum {
    			return fmt.Errorf("want %v sum, got %v", count, *d.SampleSum)
    		}
    		return nil
    	}
    }
    
    // Buckets asserts a distribution has the number of buckets
    func Buckets(count int) func(any) error {
    	return func(f any) error {
    		d := f.(*dto.Histogram)
    		if len(d.Bucket) != count {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Sep 13 16:04:48 UTC 2023
    - 7.2K bytes
    - Viewed (0)
  10. pkg/kube/controllers/example_test.go

    	_ = retry.Until(func() bool {
    		return controller.events.Load() == 2
    	})
    	// In a typical test, using helpers like assert.EventuallyEqual or retry.UntilSuccessOrFail are preferred
    	// assert.EventuallyEqual(t, controller.events.Load, 2)
    
    	// Output:
    	// pod has IP 127.0.0.1
    	// pod has IP 127.0.0.2
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 23 17:08:31 UTC 2023
    - 7K bytes
    - Viewed (0)
Back to top