Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 5,243 for myModel (0.26 sec)

  1. subprojects/core/src/integTest/groovy/org/gradle/execution/taskgraph/RuleTaskCreationIntegrationTest.groovy

            buildFile << """
                class MyModel {
                    List<String> tasks = []
                }
    
                class MyPlugin extends RuleSource {
                    @Model
                    MyModel myModel() {
                        new MyModel()
                    }
    
                    @Mutate
                    void addTasks1(ModelMap<Task> tasks, MyModel myModel) {
                        myModel.tasks.each { n ->
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Aug 18 22:50:47 UTC 2020
    - 16.9K bytes
    - Viewed (0)
  2. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/fixtures/ToolingApiSpec.groovy

        }
    
        private void addModelImplementation(String targetBuildName) {
            file("$targetBuildName/src/main/groovy/my/MyModel.groovy") << """
                package my
    
                class MyModel implements java.io.Serializable {
                    private final String message
                    MyModel(String message) { this.message = message }
                    String getMessage() { message }
                    String toString() { message }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 15.1K bytes
    - Viewed (0)
  3. platforms/software/platform-base/src/integTest/groovy/org/gradle/language/base/ComponentModelIntegrationTest.groovy

    }
    
    apply plugin: Rules
    
    model {
        components {
            assert it.toString() == "ComponentSpecContainer 'components'"
            assert it instanceof ComponentSpecContainer
        }
    }
    """
    
            expect:
            succeeds 'tasks'
        }
    
        def "component sources and binaries containers are visible in model report"() {
            when:
            succeeds "model"
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Oct 11 12:16:09 UTC 2023
    - 20.4K bytes
    - Viewed (0)
  4. platforms/software/platform-base/src/integTest/groovy/org/gradle/language/base/CustomComponentBinariesIntegrationTest.groovy

        SampleBinary 'sampleLib:2ndBinary'
            build using task: :sampleLib2ndBinary
    """)
            where:
            ruleInputs << ["SampleLibrary library, CustomModel myModel",  "CustomModel myModel, SampleLibrary library"]
        }
    
        def "@ComponentBinaries rule operates with fully configured component"() {
            given:
            buildFile << """
    @Managed
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Oct 11 12:16:09 UTC 2023
    - 13.8K bytes
    - Viewed (0)
  5. tests/test_jsonable_encoder.py

        model = ModelWithDefault(foo="foo", bar="bar")
        assert jsonable_encoder(model) == {"foo": "foo", "bar": "bar", "bla": "bla"}
        assert jsonable_encoder(model, exclude_unset=True) == {"foo": "foo", "bar": "bar"}
        assert jsonable_encoder(model, exclude_defaults=True) == {"foo": "foo"}
        assert jsonable_encoder(model, exclude_unset=True, exclude_defaults=True) == {
            "foo": "foo"
        }
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 21:56:59 UTC 2024
    - 9K bytes
    - Viewed (0)
  6. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r89/ToolingApiPolymorphismCrossVersionTest.groovy

        private static void assertModelIsPolymorphic(Object model) {
            assert model != null
    
            assert model instanceof BaseModel
    
            assert model instanceof ShallowChildModel
            assert ((ShallowChildModel) model).getShallowMessage() == "shallow poly from 'root'"
    
            assert model instanceof DeepChildModel
            assert ((DeepChildModel) model).getDeepMessage() == "deep poly from 'root'"
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jun 11 11:03:18 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  7. model.go

    package gorm
    
    import "time"
    
    // Model a basic GoLang struct which includes the following fields: ID, CreatedAt, UpdatedAt, DeletedAt
    // It may be embedded into your model or you may build your own model without it
    //
    //	type User struct {
    //	  gorm.Model
    //	}
    type Model struct {
    	ID        uint `gorm:"primarykey"`
    	CreatedAt time.Time
    	UpdatedAt time.Time
    	DeletedAt DeletedAt `gorm:"index"`
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Sat Feb 18 01:06:43 UTC 2023
    - 396 bytes
    - Viewed (0)
  8. pilot/pkg/security/authz/model/model.go

    }
    
    type ruleList struct {
    	rules []*rule
    }
    
    // Model represents a single rule from an authorization policy. The conditions of the rule are consolidated into
    // permission or principal to align with the Envoy RBAC filter API.
    type Model struct {
    	permissions []ruleList
    	principals  []ruleList
    }
    
    // New returns a model representing a single authorization policy.
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Mar 25 10:39:25 UTC 2024
    - 13.8K bytes
    - Viewed (0)
  9. pilot/pkg/xds/v3/model.go

    package v3
    
    import (
    	"istio.io/istio/pkg/model"
    )
    
    const (
    	ClusterType                = model.ClusterType
    	EndpointType               = model.EndpointType
    	ListenerType               = model.ListenerType
    	RouteType                  = model.RouteType
    	SecretType                 = model.SecretType
    	ExtensionConfigurationType = model.ExtensionConfigurationType
    	NameTableType              = model.NameTableType
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Apr 04 20:29:08 UTC 2024
    - 2K bytes
    - Viewed (0)
  10. platforms/ide/tooling-api/src/main/java/org/gradle/tooling/model/Model.java

     * limitations under the License.
     */
    
    package org.gradle.tooling.model;
    
    // TODO:ADAM - Deprecate
    /**
     * A model that is buildable by the Tooling API. Models contain various information regarding the build.
     * Models are typically tailored to a specific domain, for example build environment or IDE.
     *
     * @since 1.0-milestone-8
     */
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 938 bytes
    - Viewed (0)
Back to top