Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 2,175 for failf (0.04 sec)

  1. src/flag/flag.go

    // errParse is returned by Set if a flag's value fails to parse, such as with an invalid integer for Int.
    // It then gets wrapped through failf to provide more information.
    var errParse = errors.New("parse error")
    
    // errRange is returned by Set if a flag's value is out of range.
    // It then gets wrapped through failf to provide more information.
    var errRange = errors.New("value out of range")
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 18:38:24 UTC 2024
    - 39.7K bytes
    - Viewed (0)
  2. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r27/TestLauncherCrossVersionSpec.groovy

        Failed tests:
            Test example.MyFailingTest#fail (Task: :secondTest)
            Test example.MyFailingTest#fail2 (Task: :secondTest)
            Test example.MyFailingTest#fail (Task: :test)
            Test example.MyFailingTest#fail2 (Task: :test)"""
    
            when:
            launchTests { TestLauncher testLauncher ->
                testLauncher.withJvmTestMethods("example.MyFailingTest", "fail")
            }
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 16 10:10:39 UTC 2024
    - 10.9K bytes
    - Viewed (0)
  3. src/internal/trace/testdata/generators/go122-fail-first-gen-first.go

    	// Write an invalid batch event for the next generation.
    	t.RawEvent(go122.EvEventBatch, nil, 2 /*gen*/, 0 /*thread ID*/, 0 /*timestamp*/, 50 /*batch length (invalid)*/)
    
    	// We should fail at the first issue, not the second one.
    	t.ExpectFailure("expected a proc but didn't have one")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 21:15:28 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  4. subprojects/core/src/integTest/groovy/org/gradle/api/internal/model/ObjectFactoryIntegrationTest.groovy

            }
    """
    
            when:
            fails "fail"
    
            then:
            failure.assertHasCause('Could not create an instance of type Thing.')
            failure.assertHasCause('Too many parameters provided for constructor for type Thing. Expected 0, received 1.')
        }
    
        def "object creation fails with ObjectInstantiationException when construction parameters provided for interface"() {
            given:
            buildFile """
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sun Apr 07 02:25:12 UTC 2024
    - 25.4K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiserver/pkg/cel/mutation/env_test.go

    		})
    	if err != nil {
    		t.Fatalf("fail to create env set: %v", err)
    	}
    	env, err := envSet.Env(environment.StoredExpressions)
    	if err != nil {
    		t.Fatalf("fail to setup env: %v", env)
    	}
    	return env
    }
    
    // mustCreateEnvWithOptional creates the default env for testing, with given option,
    // and set up the optional library with default configuration.
    // it fatally fails the test if the env fails to set up.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 10 22:07:40 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  6. istioctl/pkg/proxyconfig/proxyconfig_test.go

    		},
    		{ // supplying valid pod name retrieves Envoy config (fails because we don't check in Envoy config unit tests)
    			execClientConfig: loggingConfig,
    			args:             strings.Split("bootstrap httpbin-794b576b6c-qx6pf", " "),
    			expectedString:   `config dump has no configuration type`,
    			wantException:    true,
    		},
    		{ // supplying valid pod name retrieves Envoy config (fails because we don't check in Envoy config unit tests)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Apr 10 21:51:29 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  7. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/DependencyUnresolvedModuleIntegrationTest.groovy

                        }
    
                        // Try to resolve configuration "fail" - this fails due to the repository being disabled, and the original cause is also printed underneath
                        configurations.fail.files
                    }
                }
            """
    
            when:
            moduleA.pom.expectGetBlocking()
            fails('resolve', '--max-workers=1')
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 29 11:51:18 UTC 2024
    - 20.9K bytes
    - Viewed (0)
  8. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/ConfigurationCacheFlowScopeIntegrationTest.groovy

            when: 'task fails'
            buildFile '''
                tasks.register('fail') {
                    doLast { assert false }
                }
            '''
            configurationCacheFails 'fail'
    
            then: 'flow action reacts to build failure'
            outputContains '(red)'
            configCache.assertStateStored()
    
            when: 'task from cache fails'
            configurationCacheFails 'fail'
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 11.5K bytes
    - Viewed (0)
  9. platforms/core-execution/build-cache-spi/src/main/java/org/gradle/caching/BuildCacheService.java

         * @throws BuildCacheException if the cache fails to store a cache entry for the given key
         */
        void store(BuildCacheKey key, BuildCacheEntryWriter writer) throws BuildCacheException;
    
        /**
         * Clean up any resources held by the cache once it's not used anymore.
         *
         * @throws IOException if the cache fails to close cleanly.
         */
        @Override
        void close() throws IOException;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Feb 09 12:59:40 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  10. 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)
Back to top