Search Options

Results per page
Sort
Preferred Languages
Advance

Results 91 - 100 of 287 for finalizer (0.16 sec)

  1. platforms/core-configuration/model-core/src/test/groovy/org/gradle/model/internal/inspect/ModelRuleExtractorTest.groovy

                strings << 3
            }
    
            @Finalize
            static void finalize1(List<String> strings) {
                strings << "2"
            }
    
            @Mutate
            static void mutate1(List<String> strings) {
                strings << "1"
            }
        }
    
        def "finalize rules are registered"() {
            given:
            def registry = Mock(ModelRegistry)
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 24 13:45:02 UTC 2024
    - 30.4K bytes
    - Viewed (0)
  2. platforms/core-configuration/model-core/src/integTest/groovy/org/gradle/api/provider/MapPropertyIntegrationTest.groovy

            when:
            fails()
    
            then:
            failure.assertHasCause('The value for this property cannot be changed any further.')
        }
    
        def "task @Input property is implicitly finalized when task starts execution"() {
            given:
            buildFile << '''
                class SomeTask extends DefaultTask {
                    @Input
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Jan 04 15:28:53 UTC 2024
    - 24.5K bytes
    - Viewed (0)
  3. platforms/core-configuration/model-core/src/test/groovy/org/gradle/model/internal/registry/RuleBindingsTest.groovy

            def rule1 = rule("path", ModelNode.State.Finalized)
            def rule2 = rule(Long, ModelNode.State.Finalized)
            def rule3 = rule("path", ModelNode.State.Finalized)
            def rule4 = rule(Long, ModelNode.State.Finalized)
            def rule5 = rule(Long, ModelNode.State.Finalized)
            def rule6 = rule("path", ModelNode.State.Finalized)
    
            given:
            bindings.add(rule1)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 26.8K bytes
    - Viewed (0)
  4. platforms/core-configuration/model-core/src/integTest/groovy/org/gradle/api/provider/CollectionPropertyIntegrationTest.groovy

    """
    
            when:
            fails()
    
            then:
            failure.assertHasCause("The value for this property cannot be changed any further.")
        }
    
        def "task @Input property is implicitly finalized when task starts execution"() {
            given:
            buildFile """
    class SomeTask extends DefaultTask {
        @Input
        final ListProperty<String> prop = project.objects.listProperty(String)
    
        @OutputFile
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jan 12 19:57:00 UTC 2024
    - 15K bytes
    - Viewed (0)
  5. tests/test_dependency_contextmanager.py

            state["/async_raise"] = "asyncgen raise finalized"
    
    
    def generator_state_try(state: Dict[str, str] = Depends(get_state)):
        state["/sync_raise"] = "generator raise started"
        try:
            yield state["/sync_raise"]
        except SyncDependencyError:
            errors.append("/sync_raise")
            raise
        finally:
            state["/sync_raise"] = "generator raise finalized"
    
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sat Feb 24 23:06:37 UTC 2024
    - 11.6K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apimachinery/pkg/api/validation/objectmeta_test.go

    		ExpectedErr string
    	}{
    		"invalid adding finalizers": {
    			Old:         metav1.ObjectMeta{Name: "test", ResourceVersion: "1", DeletionTimestamp: &metav1.Time{}, Finalizers: []string{"x/a"}},
    			New:         metav1.ObjectMeta{Name: "test", ResourceVersion: "1", DeletionTimestamp: &metav1.Time{}, Finalizers: []string{"x/a", "y/b"}},
    			ExpectedErr: "y/b",
    		},
    		"invalid changing finalizers": {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Sep 07 03:12:31 UTC 2022
    - 17.8K bytes
    - Viewed (0)
  7. plugin/pkg/auth/authorizer/rbac/bootstrappolicy/controller_policy.go

    			// The controller needs to be able to set a service's finalizers to be able to create an EndpointSlice
    			// resource that is owned by the service and sets blockOwnerDeletion=true in its ownerRef.
    			rbacv1helpers.NewRule("update").Groups(legacyGroup).Resources("services/finalizers").RuleOrDie(),
    			// The controller needs to be able to set a service's finalizers to be able to create an EndpointSlice
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 08 19:25:10 UTC 2024
    - 28.9K bytes
    - Viewed (0)
  8. pkg/controller/controller_ref_manager.go

    	canAdopt func(ctx context.Context) error,
    	finalizers ...string,
    ) *PodControllerRefManager {
    	return &PodControllerRefManager{
    		BaseControllerRefManager: BaseControllerRefManager{
    			Controller:   controller,
    			Selector:     selector,
    			CanAdoptFunc: canAdopt,
    		},
    		controllerKind: controllerKind,
    		podControl:     podControl,
    		finalizers:     finalizers,
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jul 12 12:57:29 UTC 2023
    - 21.5K bytes
    - Viewed (0)
  9. subprojects/core/src/integTest/groovy/org/gradle/api/ProducerTaskCommandLineOrderIntegrationTest.groovy

                result.assertTaskOrder(generateBar.fullPath, cleanBar.fullPath, clean.fullPath)
            }
        }
    
        def "producer task finalized by a task in another project will run before destroyer tasks when ordered first"() {
            def foo = subproject(':foo')
            def bar = subproject(':bar')
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 17 13:27:34 UTC 2024
    - 19.4K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/quantization/tensorflow/calibrator/calibration_statistics_saver_op_test.cc

      TF_CHECK_OK(NodeDefBuilder("op", "CalibrationStatisticsSaver")
                      .Input(inputs)
                      .Attr("ids", ids)
                      .Attr("calibration_methods", calibration_methods)
                      .Finalize(node_def()));
      ASSERT_THAT(InitOp(),
                  StatusIs(tsl::error::INVALID_ARGUMENT,
                           HasSubstr("NodeDef missing attr 'output_file_path'")));
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon May 13 01:31:23 UTC 2024
    - 11.4K bytes
    - Viewed (0)
Back to top