Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 1,705 for Assert1 (0.14 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. 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)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. testing/internal-testing/src/main/groovy/org/gradle/test/fixtures/archive/JarTestFixture.groovy

                 assertManifestPresentAndFirstEntry()
             }
         }
    
        /**
         * Asserts that the given service is defined in this jar file.
         */
        def hasService(String serviceName, String serviceImpl) {
            assertFilePresent("META-INF/services/$serviceName", serviceImpl)
        }
    
        /**
         * Asserts that the manifest file is present and first entry in this jar file.
         */
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Apr 15 14:13:17 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  8. testing/internal-testing/src/main/groovy/org/gradle/test/fixtures/archive/ArchiveTestFixture.groovy

            assert modes.size() == 1
            assertThat(modes.get(0), equalTo(fileMode))
            this
        }
    
        def assertContainsFile(String relativePath) {
            assert filesByRelativePath.keySet().contains(relativePath)
            this
        }
    
        def assertNotContainsFile(String relativePath) {
            assert !filesByRelativePath.keySet().contains(relativePath)
            this
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  9. platforms/jvm/testing-jvm-infrastructure/src/test/groovy/org/gradle/api/internal/tasks/testing/failure/mappers/AssertjMultipleAssertionsErrorMapperTest.groovy

            then:
            assert mappedFailure.causes.size() == 3
            assert mappedFailure.rawFailure instanceof MultipleAssertionsError
        }
    
        def "maps inner assertion failures correctly"() {
            when:
            def innerErrors = mapper.mapInnerFailures(error, rootMapper)
    
            then:
            innerErrors.eachWithIndex { tf, i ->
                assert tf.causes.size() == 0
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  10. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/executer/ExecutionResult.java

        /**
         * Asserts that exactly the given set of tasks have been executed in any order.
         */
        ExecutionResult assertTasksExecuted(Object... taskPaths);
    
        /**
         * Asserts that the given task has been executed.
         */
        ExecutionResult assertTaskExecuted(String taskPath);
    
        /**
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 7.7K bytes
    - Viewed (0)
Back to top