Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 373 for T_nested (0.14 sec)

  1. platforms/core-configuration/model-groovy/src/integTest/groovy/org/gradle/model/dsl/ModelMapDslIntegrationTest.groovy

        String getValue()
        void setValue(String v)
    }
    
    class MyPlugin extends RuleSource {
        @Model
        void things(ModelMap<Thing> things) { }
    }
    
    apply plugin: MyPlugin
    '''
        }
    
        def "nested create rule is executed only as required"() {
            buildFile << '''
    model {
        tasks {
            show(Task) {
                doLast {
                    println "value = " + $.things.test.value
                }
            }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 10.9K bytes
    - Viewed (0)
  2. platforms/extensibility/plugin-development/src/integTest/groovy/org/gradle/plugin/devel/tasks/RuntimePluginValidationIntegrationTest.groovy

                class MyTask extends DefaultTask {
                    @Nested
                    Tree tree = new Tree(
                            left: new Tree([:]),
                            right: new Tree([:])
                        )
    
                    public static class Tree {
                        @Optional @Nested
                        Tree left
    
                        @Optional @Nested
                        Tree right
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 15 14:30:05 UTC 2024
    - 11.1K bytes
    - Viewed (0)
  3. platforms/core-configuration/model-core/src/main/java/org/gradle/api/internal/provider/EvaluationContext.java

             *
             * @return the owner
             */
            @Nullable
            EvaluationOwner getOwner();
    
            /**
             * Opens a nested context. A nested context allows to re-enter evaluation of the objects that are being evaluated in this context.
             * The newly returned nested context has no owner.
             * <p>
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Mar 06 16:54:51 UTC 2024
    - 12.2K bytes
    - Viewed (0)
  4. platforms/extensibility/plugin-development/src/integTest/groovy/org/gradle/plugin/devel/tasks/ValidatePluginsPart2IntegrationTest.groovy

                public class MyTask extends DefaultTask {
                    @Nested
                    public Options getOptions() {
                        return new Options();
                    }
    
                    @Nested
                    public List<Options> getOptionsList() {
                        return Arrays.asList(new Options());
                    }
    
                    @Nested
                    public Iterable<Options> getIterableOptions() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 09:03:53 UTC 2024
    - 40K bytes
    - Viewed (0)
  5. platforms/software/version-control/src/integTest/groovy/org/gradle/vcs/internal/NestedSourceDependencyIntegrationTest.groovy

            outputContains("Hello from root build's plugin")
        }
    
        @ToBeFixedForConfigurationCache
        def "prefers a source mapping defined in the root build to one defined in a nested build when the nested build requests plugins"() {
            given:
            vcsMapping('org.test:first', first)
            // root build does not inject any plugins to second
            vcsMapping('org.test:second', second)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Oct 11 12:16:09 UTC 2023
    - 14.1K bytes
    - Viewed (0)
  6. tests/transaction_test.go

    		t.Fatalf("Should find saved record")
    	}
    }
    
    func TestNestedTransactionWithBlock(t *testing.T) {
    	var (
    		user  = *GetUser("transaction-nested", Config{})
    		user1 = *GetUser("transaction-nested-1", Config{})
    		user2 = *GetUser("transaction-nested-2", Config{})
    	)
    
    	if err := DB.Transaction(func(tx *gorm.DB) error {
    		tx.Create(&user)
    
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Wed May 08 04:07:58 UTC 2024
    - 10.9K bytes
    - Viewed (0)
  7. subprojects/core/src/test/groovy/org/gradle/api/internal/file/BaseDirFileResolverTest.groovy

            def absoluteNestedFile = new File(baseDir, 'child/nested').absoluteFile
            assertEquals("child${File.separator}nested".toString(), baseDirConverter.resolveAsRelativePath(absoluteNestedFile))
            assertEquals("child${File.separator}nested".toString(), baseDirConverter.resolveAsRelativePath(absoluteNestedFile.absolutePath))
    
            assertEquals("child${File.separator}nested".toString(), baseDirConverter.resolveForDisplay(absoluteNestedFile))
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Dec 29 17:15:52 UTC 2023
    - 15.1K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/pruning/algorithm_test.go

              "name": "instance",
              "unspecified": "bar"
            },
            "spec": {
            }
          }
        }
      }
    }
    `, expectedPruned: []string{"nested.spec.embedded.spec.unspecified", "nested.spec.embedded.unspecified", "nested.spec.unspecified", "nested.unspecified", "pruned.spec.unspecified", "pruned.unspecified", "unspecified"}},
    		{name: "x-kubernetes-embedded-resource, with root=true", json: `
    {
      "apiVersion": "foo/v1",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 16 20:13:14 UTC 2024
    - 20.3K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apimachinery/pkg/api/errors/errors_test.go

    		t.Errorf("expected cause when wrapped, got %v: %#v", ok, cause)
    	}
    
    	nested := fmt.Errorf("twice: %w", wrapped)
    	if cause, ok := StatusCause(nested, "SomeCause"); !ok || cause != err.ErrStatus.Details.Causes[0] {
    		t.Errorf("expected cause when nested, got %v: %#v", ok, cause)
    	}
    }
    
    func BenchmarkIsAlreadyExistsWrappedErrors(b *testing.B) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Oct 28 07:31:28 UTC 2023
    - 19.5K bytes
    - Viewed (0)
  10. platforms/core-configuration/kotlin-dsl-integ-tests/src/integTest/kotlin/org/gradle/kotlin/dsl/integration/ProjectSchemaAccessorsIntegrationTest.kt

                containsMultiLineString(
                    """
                    nested: my.Nested.Extension
                    nested{} my.Nested.Extension
                    beans: org.gradle.api.NamedDomainObjectContainer<my.Nested.Extension>
                    beans{} org.gradle.api.NamedDomainObjectContainer<my.Nested.Extension>
                    bar
                    baz
                    """
                )
            )
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Jan 29 11:39:00 UTC 2024
    - 39.6K bytes
    - Viewed (0)
Back to top