Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 4,880 for failf (0.07 sec)

  1. platforms/core-configuration/model-groovy/src/integTest/groovy/org/gradle/model/dsl/internal/transform/ModelDslRuleInputDetectionIntegrationSpec.groovy

                model {
                  foo {
                    $code
                  }
                }
            """
    
            then:
            succeeds "tasks" // succeeds because we don't fail on invalid usage, and don't fail due to unbound inputs
    
            where:
            code << [
                'something.$(1)',
                'this.$("$name")',
                'foo.bar().$("a" + "b")',
            ]
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 13.3K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb/SmbTransportPoolImpl.java

                    Integer fail1 = SmbTransportPoolImpl.this.failCounts.get(o1.getHostAddress());
                    Integer fail2 = SmbTransportPoolImpl.this.failCounts.get(o2.getHostAddress());
                    if ( fail1 == null ) {
                        fail1 = 0;
                    }
                    if ( fail2 == null ) {
                        fail2 = 0;
                    }
    Registered: Wed Jun 12 15:45:55 UTC 2024
    - Last Modified: Sun Dec 20 14:09:34 UTC 2020
    - 12.5K bytes
    - Viewed (0)
  3. pkg/kubelet/container/sync_result.go

    func NewSyncResult(action SyncAction, target interface{}) *SyncResult {
    	return &SyncResult{Action: action, Target: target}
    }
    
    // Fail fails the SyncResult with specific error and message
    func (r *SyncResult) Fail(err error, msg string) {
    	r.Error, r.Message = err, msg
    }
    
    // PodSyncResult is the summary result of SyncPod() and KillPod()
    type PodSyncResult struct {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 19 15:48:08 UTC 2020
    - 4.6K bytes
    - Viewed (0)
  4. platforms/extensibility/test-kit/src/integTest/groovy/org/gradle/testkit/runner/GradleRunnerBuildFailureIntegrationTest.groovy

        /*
            Note: these tests are very granular to ensure coverage for versions that
                  don't support querying the output or tasks.
         */
    
        def "does not throw exception when build fails expectantly"() {
            given:
            buildScript """
                task helloWorld {
                    doLast {
                        throw new GradleException('Expected exception')
                    }
                }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 22:36:52 UTC 2023
    - 5.6K bytes
    - Viewed (0)
  5. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/RepositoriesDeclaredInSettingsIntegrationTest.groovy

                }
            """
    
            when:
            fails ':help'
    
            then:
            result.assertTaskExecuted(':buildSrc:jar')
            result.assertTaskNotExecuted(':help')
            failure.assertHasCause('Cannot resolve external dependency org:module:1.0 because no repositories are defined.')
        }
    
        // fails to delete directory under Windows otherwise
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 09 11:56:27 UTC 2024
    - 25.1K bytes
    - Viewed (0)
  6. platforms/software/build-init/src/integTest/groovy/org/gradle/buildinit/plugins/MavenConversionDynamicPomIntegrationTest.groovy

            !dsl.getBuildFile(targetDir).text.contains("java.targetCompatibility = ")
    
            when:
            fails 'clean', 'build'
    
            then:
            // when tests fail, jar may not exist
            failure.assertHasDescription("Execution failed for task ':test'.")
            failure.assertHasCause("There were failing tests.")
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Apr 06 02:21:33 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  7. platforms/software/testing-base/src/testFixtures/groovy/org/gradle/testing/AbstractTestFrameworkIntegrationTest.groovy

        def "adding and removing tests remove old tests from reports"() {
            given:
            createPassingFailingTest()
            fails("check")
            when:
            renameTests()
            fails("check")
            then:
            testResult.assertTestClassesExecuted('SomeTest', 'NewTest')
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Dec 11 13:37:56 UTC 2023
    - 12.2K bytes
    - Viewed (0)
  8. platforms/core-configuration/model-core/src/integTest/groovy/org/gradle/api/provider/CredentialsProviderIntegrationTest.groovy

                    dependsOn(firstTask)
                    credentials.set(providers.credentials(PasswordCredentials, 'testCredentials'))
                }
            """
    
            when:
            fails 'taskWithCredentials'
    
            then:
            notExecuted(':firstTask', ':taskWithCredentials')
            failure.assertHasDescription("Credentials required for this build could not be resolved.")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 11.6K bytes
    - Viewed (0)
  9. subprojects/core/src/integTest/groovy/org/gradle/api/DynamicObjectIntegrationTest.groovy

            """
    
            expect:
            fails()
            failure.assertHasLineNumber(4)
            failure.assertHasCause("Could not set unknown property 'p1' for root project 'test' of type ${Project.name}.")
        }
    
        def failsWhenInvokingUnknownMethodOnProject() {
            buildFile """
                unknown(12, "things")
            """
    
            expect:
            fails()
            failure.assertHasLineNumber(2)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 17 13:27:33 UTC 2024
    - 32.7K bytes
    - Viewed (0)
  10. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/ToBeFixedForConfigurationCache.java

             */
            DO_NOT_SKIP,
    
            /**
             * Use this reason on unrolled tests in super classes that fail on some subclasses.
             * Spock doesn't allow to override test methods and annotate them.
             */
            UNROLLED_FAILS_IN_SUBCLASS,
    
            /**
             * Use this reason on tests that fail <code>:verifyTestFilesCleanup</code> with configuration cache.
             */
            FAILS_TO_CLEANUP,
    
            /**
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 2.7K bytes
    - Viewed (0)
Back to top