Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 4,880 for failf (0.04 sec)

  1. src/cmd/go/testdata/script/test_fuzz.txt

    # Test that running a fuzz target that returns without failing or calling
    # f.Fuzz fails and causes a non-zero exit status.
    ! go test noop_fuzz_test.go
    ! stdout ^ok
    stdout FAIL
    
    # Test that fuzzing a fuzz target that returns without failing or calling
    # f.Fuzz fails and causes a non-zero exit status.
    ! go test -fuzz=Fuzz -fuzztime=1x noop_fuzz_test.go
    ! stdout ^ok
    stdout FAIL
    
    # Test that calling f.Error in a fuzz target causes a non-zero exit status.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 16 16:53:11 UTC 2023
    - 10.2K bytes
    - Viewed (0)
  2. platforms/native/language-native/src/main/java/org/gradle/language/BinaryCollection.java

         *
         * @param action The action to execute for each element becomes known.
         */
        void whenElementKnown(Action<? super T> action);
    
        /**
         * Registers an action to execute when an element of the given type becomes known. The action is only executed for those elements that are required. Fails if any matching element has already been finalized.
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 5.6K bytes
    - Viewed (0)
  3. platforms/jvm/code-quality/src/integTest/groovy/org/gradle/api/plugins/quality/pmd/PmdPluginVersionIntegrationTest.groovy

        }
    
        private customCode() {
            // class that would fail default rule set but doesn't fail custom rule set
            file("src/main/java/org/gradle/Class1.java") <<
                "package org.gradle; public class Class1 { public void doit() { boolean x = true; if (x) {} } }" // empty then-block
            // class that wouldn't fail default rule set but does fail custom rule set
            file("src/main/java/org/gradle/Class2.java") <<
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Mar 28 18:47:00 UTC 2024
    - 13.5K bytes
    - Viewed (0)
  4. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/attributes/LazyAttributesIntegrationTest.groovy

                }
                """.stripIndent()
    
            expect:
            fails "outgoingVariants"
            failure.assertHasCause("Unexpected type for attribute 'org.gradle.usage' provided. Expected a value of type org.gradle.api.attributes.Usage but found a value of type java.lang.Integer.")
        }
    
        def "providers used as attribute values with mismatched Attribute types fail properly"() {
            buildFile << """
                plugins {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 3.9K bytes
    - Viewed (0)
  5. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/CachedTaskIntegrationTest.groovy

                    def outTxt = file('out.txt')
                    outputs.file(outTxt)
                    outputs.cacheIf { true }
                    def fail = providers.gradleProperty('fail')
                    doLast {
                        outTxt << "xxx"
                        if (fail.isPresent()) {
                            throw new RuntimeException("Boo!")
                        }
                    }
                }
            """
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Feb 20 17:51:57 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  6. platforms/enterprise/enterprise/src/integTest/groovy/org/gradle/internal/enterprise/DevelocityPluginEndOfBuildCallbackIntegrationTest.groovy

        }
    
        def "end of build listener may fail with an exception"() {
            when:
            fails succeedingTaskName, "-Dbuild-listener-failure"
    
            then:
            plugin.assertEndOfBuildWithFailure(output, null)
            failure.assertHasDescription("broken")
    
            when:
            fails succeedingTaskName, "-Dbuild-listener-failure"
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 21 11:17:11 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  7. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/ResolvePOMIntegrationTest.groovy

        def "resolving a @pom artifact from an included build replacing an external library fails the build"() {
            given:
            mainProjectDir.file("app/build.gradle") << """
                tasks.register("resolve", Resolve) {
                    artifactFiles.from(configurations.getByName("compileClasspath"))
                }
            """
    
            expect:
            fails "build"
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 02 20:50:18 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  8. platforms/software/resources-s3/src/integTest/groovy/org/gradle/integtests/resource/s3/maven/MavenPublishS3ErrorsIntegrationTest.groovy

            }
        }
        """
    
            when:
            def module = mavenS3Repo.module("org.gradle", "publishS3Test", "1.45")
            module.artifact.expectPutAuthenticationError()
    
            then:
            fails 'publish'
    
            failure.assertHasDescription("Execution failed for task ':publishPubPublicationToMavenRepository'.")
            failure.assertHasCause("Failed to publish publication 'pub' to repository 'maven'")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 12 19:38:08 UTC 2023
    - 3.9K bytes
    - Viewed (0)
  9. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/locking/AbstractValidatingLockingIntegrationTest.groovy

            when:
            fails 'checkDeps'
    
            then:
            failure.assertHasCause("Could not resolve all files for configuration ':lockedConf'.")
            failure.assertHasCause("Resolved 'org:bar:1.0' which is not part of the dependency lock state")
    
            where:
            unique << [true, false]
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 9K bytes
    - Viewed (0)
  10. platforms/jvm/language-groovy/src/testFixtures/groovy/org/gradle/groovy/compile/AbstractBasicGroovyCompilerIntegrationSpec.groovy

        }
    
        def "compileBadCode"() {
            expect:
            fails("compileGroovy")
            failure.assertHasErrorOutput 'unable to resolve class Unknown1'
            failure.assertHasErrorOutput 'unable to resolve class Unknown2'
            failure.assertHasCause(compilationFailureMessage)
        }
    
        def "compileBadJavaCode"() {
            expect:
            fails("compileGroovy")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 09:08:49 UTC 2023
    - 27K bytes
    - Viewed (0)
Back to top