Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 129 for DoNothing (0.32 sec)

  1. platforms/core-runtime/base-services/src/test/groovy/org/gradle/internal/ActionsTest.groovy

    import static org.gradle.internal.Actions.doNothing
    import static org.gradle.internal.Actions.filter
    import static org.gradle.internal.Actions.toAction
    
    class ActionsTest extends Specification {
    
        def "do nothing indeed does nothing"() {
            given:
            def thing = Mock(Object)
    
            when:
            doNothing().execute(thing)
    
            then:
            0 * thing._(*_)
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:48:02 UTC 2023
    - 5K bytes
    - Viewed (0)
  2. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/configurations/DefaultConfigurationContainer.java

        }
    
        @Override
        public NamedDomainObjectProvider<ResolvableConfiguration> resolvable(String name) {
            assertMutable("resolvable(String)");
            return registerResolvableConfiguration(name, Actions.doNothing());
        }
    
        @Override
        public NamedDomainObjectProvider<ResolvableConfiguration> resolvable(String name, Action<? super ResolvableConfiguration> action) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Mar 05 00:10:35 UTC 2024
    - 17.8K bytes
    - Viewed (0)
  3. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/result/DefaultResolutionResult.java

            final Set<ResolvedComponentResult> out = new LinkedHashSet<>();
            eachElement(getRoot(), Actions.doNothing(), Actions.doNothing(), out);
            return out;
        }
    
        @Override
        public void allComponents(final Action<? super ResolvedComponentResult> action) {
            eachElement(getRoot(), action, Actions.doNothing(), new HashSet<>());
        }
    
        @Override
        @SuppressWarnings("rawtypes")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 23 17:36:01 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  4. platforms/software/dependency-management/src/test/groovy/org/gradle/api/internal/artifacts/ivyservice/resolutionstrategy/DefaultResolutionStrategySpec.groovy

            when:
            strategy.dependencySubstitutionRule.execute(details)
    
            then:
            _ * dependencySubstitutions.ruleAction >> Actions.doNothing()
            _ * globalDependencySubstitutions.ruleAction >> Actions.doNothing()
            _ * details.getRequested() >> DefaultModuleComponentSelector.newSelector(mid, new DefaultMutableVersionConstraint("1.0"))
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Mar 05 02:50:41 UTC 2024
    - 12.1K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/util/concurrent/RunnablesTest.java

     *
     * @author Olivier Pernet
     */
    @GwtCompatible
    public class RunnablesTest extends TestCase {
      public void testDoNothingRunnableIsSingleton() {
        assertSame(Runnables.doNothing(), Runnables.doNothing());
      }
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Apr 21 02:27:51 UTC 2017
    - 986 bytes
    - Viewed (0)
  6. clause/on_conflict.go

    package clause
    
    type OnConflict struct {
    	Columns      []Column
    	Where        Where
    	TargetWhere  Where
    	OnConstraint string
    	DoNothing    bool
    	DoUpdates    Set
    	UpdateAll    bool
    }
    
    func (OnConflict) Name() string {
    	return "ON CONFLICT"
    }
    
    // Build build onConflict clause
    func (onConflict OnConflict) Build(builder Builder) {
    	if onConflict.OnConstraint != "" {
    		builder.WriteString("ON CONSTRAINT ")
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Fri Oct 07 05:46:20 UTC 2022
    - 1.3K bytes
    - Viewed (0)
  7. cmd/kubeadm/app/util/template_test.go

    			errExpected: false,
    		},
    		{
    			name:     "should noop if there aren't any {{ .foo }} present",
    			template: doNothing,
    			data: struct{ ImageRepository, Arch string }{
    				ImageRepository: "registry.k8s.io",
    				Arch:            "amd64",
    			},
    			output:      doNothing,
    			errExpected: false,
    		},
    		{
    			name:        "invalid syntax, passing nil",
    			template:    invalidTmpl1,
    			data:        nil,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 24 07:02:51 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  8. subprojects/core/src/test/groovy/org/gradle/api/internal/AbstractNamedDomainObjectContainerSpec.groovy

                "create(String, Action)": { container.create("b", Actions.doNothing()) },
                "register(String)": { container.register("b") },
                "register(String, Action)": { container.register("b", Actions.doNothing()) },
                "NamedDomainObjectProvider.configure(Action)": { container.named("a").configure(Actions.doNothing()) }
            ]
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 08 13:46:07 UTC 2024
    - 4K bytes
    - Viewed (0)
  9. platforms/native/platform-native/src/test/groovy/org/gradle/nativeplatform/toolchain/internal/swift/SwiftLinkerTest.groovy

            1 * operationLogger.getLogLocation() >> LOG_LOCATION
            1 * buildOperationExecutor.runAll(commandLineTool, _) >> { worker, action -> action.execute(queue) }
            1 * invocationContext.getArgAction() >> Actions.doNothing()
            1 * invocationContext.createInvocation("linking lib", outputFile.parentFile, expectedArgs, operationLogger) >> invocation
            1 * queue.add(invocation)
            1 * queue.setLogLocation(LOG_LOCATION)
            0 * _
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 9K bytes
    - Viewed (0)
  10. src/cmd/go/testdata/script/vendor_test_issue14613.txt

    -- $GOPATH/src/github.com/clsung/go-vendor-issue-14613/./vendor_test.go --
    package main
    
    import (
    	"testing"
    
    	"github.com/clsung/fake"
    )
    
    func TestVendor(t *testing.T) {
    	ret := fake.DoNothing()
    	expected := "Ok"
    	if expected != ret {
    		t.Errorf("fake returned %q, expected %q", ret, expected)
    	}
    }
    
    -- $GOPATH/src/github.com/clsung/go-vendor-issue-14613/./vendor/mylibtesttest/myapp/myapp_test.go --
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Aug 16 14:41:02 UTC 2023
    - 1.2K bytes
    - Viewed (0)
Back to top