Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 2,971 for Assert1 (0.34 sec)

  1. src/internal/types/testdata/fixedbugs/issue62157.go

    // Simplified test case from issue
    
    type Matcher[T any] func(T) bool
    
    func Produces[T any](T) Matcher[<-chan T] { return nil }
    
    func Assert1[T any](Matcher[T], T) {}
    func Assert2[T any](T, Matcher[T]) {}
    
    func _() {
    	var ch chan string
    	Assert1(Produces(""), ch)
    	Assert2(ch, Produces(""))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 29 23:22:35 UTC 2023
    - 3.2K bytes
    - Viewed (0)
  2. src/internal/types/testdata/check/builtins0.go

    	// basic types have size guarantees
    	assert(unsafe.Sizeof(byte(0)) == 1)
    	assert(unsafe.Sizeof(uint8(0)) == 1)
    	assert(unsafe.Sizeof(int8(0)) == 1)
    	assert(unsafe.Sizeof(uint16(0)) == 2)
    	assert(unsafe.Sizeof(int16(0)) == 2)
    	assert(unsafe.Sizeof(uint32(0)) == 4)
    	assert(unsafe.Sizeof(int32(0)) == 4)
    	assert(unsafe.Sizeof(float32(0)) == 4)
    	assert(unsafe.Sizeof(uint64(0)) == 8)
    	assert(unsafe.Sizeof(int64(0)) == 8)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 29.3K bytes
    - Viewed (0)
  3. pkg/test/util/assert/assert.go

    		t.Fatalf("found diff: %v\nGot: %v\nWant: %v", cmp.Diff(a, expected, opts(expected)...), a, expected)
    	}
    }
    
    // Error asserts the provided err is non-nil
    func Error(t test.Failer, err error) {
    	t.Helper()
    	if err == nil {
    		t.Fatal("expected error but got nil")
    	}
    }
    
    // NoError asserts the provided err is nil
    func NoError(t test.Failer, err error) {
    	t.Helper()
    	if err != nil {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Dec 18 17:21:50 UTC 2023
    - 4.4K bytes
    - Viewed (0)
  4. okhttp/src/test/java/okhttp3/RecordedResponse.kt

     * limitations under the License.
     */
    package okhttp3
    
    import assertk.assertThat
    import assertk.assertions.contains
    import assertk.assertions.containsExactly
    import assertk.assertions.isBetween
    import assertk.assertions.isEqualTo
    import assertk.assertions.isFalse
    import assertk.assertions.isNotNull
    import assertk.assertions.isNull
    import assertk.assertions.isTrue
    import java.io.IOException
    import java.text.SimpleDateFormat
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  5. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/CompilationOutputsFixture.groovy

        }
    
        //asserts file changed/added since last snapshot
        void recompiledFile(String fileName) {
            recompiledFiles(fileName)
        }
    
        //asserts files changed/added since last snapshot
        void recompiledFiles(String... fileNames) {
            def expectedNames = fileNames.collect({ removeExtension(it) }) as Set
            assert changedFileNames == expectedNames
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  6. cmd/kubeadm/test/kubeconfig/util.go

    	// Asserts the clientCert has expected expectedUserName as CommonName
    	certstestutil.AssertCertificateHasCommonName(t, currentClientCert, expectedClientName)
    
    	// Asserts the clientCert has expected Organizations
    	certstestutil.AssertCertificateHasOrganizations(t, currentClientCert, expectedOrganizations...)
    }
    
    // AssertKubeConfigCurrentAuthInfoWithToken is a utility function for kubeadm testing that asserts if the CurrentAuthInfo in
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 01 16:01:49 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  7. testing/internal-testing/src/main/groovy/org/gradle/integtests/fixtures/UrlValidator.groovy

            assert url.text.contains(contents)
        }
    
        /**
         * Asserts that the content at the specified url matches the content in the provided String
         */
        static void assertUrlContent(URL url, String contents) {
            assert TextUtil.normaliseLineSeparators(url.text) == TextUtil.normaliseLineSeparators(contents)
        }
    
        /**
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  8. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/isolated/IsolatedProjectsFixture.groovy

            assert configuredProjects.collect { fullPath(it) }.toSet() == details.projects
    
            // Scripts - one or more for settings, and one for each project build script
            def scripts = buildOperations.all(ApplyScriptPluginBuildOperationType)
            assert !scripts.empty
            def sortedScripts = scripts.toSorted { it -> it.startTime }
            assert sortedScripts.first().details.targetType == "settings"
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 17.2K bytes
    - Viewed (0)
  9. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/configurationcache/ConfigurationCacheFixture.groovy

        }
    
        /**
         * Asserts that the configuration cache was not enabled.
         */
        void assertNotEnabled() {
            spec.outputDoesNotContain(ISOLATED_PROJECTS_MESSAGE)
            spec.outputDoesNotContain(CONFIGURE_ON_DEMAND_MESSAGE)
            configurationCacheBuildOperations.assertNoConfigurationCache()
            assertHasNoProblems()
        }
    
        /**
         * Asserts that the cache entry was written with no problems.
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 15.1K bytes
    - Viewed (0)
  10. platforms/documentation/docs/src/snippets/native-binaries/cunit/groovy/libs/cunit/2.1-2/include/CUnit/CUnit.h

     */
    
    /*
     *  ASSERT Macro definitions and general CUnit configuration definitions.
     *
     *  09/Aug/2001   ASSERT definitions. (AK)
     *
     *  12/Mar/2003   New Assert definitions. (AK)
     *
     *  27/Jul/2003   Modified ASSERT_XXX Macro definitions. (AK)
     *
     *  15-Jul-2004   New interface, changed action on assert failure to not
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 18.6K bytes
    - Viewed (0)
Back to top