Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 15 for checkModel (0.17 sec)

  1. platforms/software/platform-base/src/integTest/groovy/org/gradle/language/base/CustomBinaryIntegrationTest.groovy

                }
                apply plugin: Rules
    '''
    
            then:
            succeeds "checkModel"
        }
    
        def "can configure binary defined by rule method using rule DSL"() {
            when:
            buildWithCustomBinaryPlugin()
    
            and:
            buildFile << '''
    model {
        tasks {
            checkModel(Task) {
                doLast {
                    def binaries = $.binaries
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Oct 11 12:16:09 UTC 2023
    - 11K bytes
    - Viewed (0)
  2. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/isolated/IsolatedProjectsToolingApiKotlinDslIntegrationTest.groovy

            assert actual instanceof KotlinDslScriptsModel
    
            checkModel(actual, expected, [
                [{ it.scriptModels }, { a, e -> checkKotlinDslScriptModel(a, e) }]
            ])
        }
    
        static void checkKotlinDslScriptModel(actual, expected) {
            assert expected instanceof KotlinDslScriptModel
            assert actual instanceof KotlinDslScriptModel
    
            checkModel(actual, expected, [
                { it.classPath },
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  3. platforms/ide/tooling-api/src/testFixtures/groovy/org/gradle/integtests/tooling/fixture/ToolingApiModelChecker.groovy

                checkCollection(actual, expected) { actualItem, expectedItem ->
                    checkModel(actualItem, expectedItem, specs)
                }
                return
            }
    
            if (expected instanceof Map) {
                assert actual instanceof Map
                checkMap(actual, expected) { actualItem, expectedItem ->
                    checkModel(actualItem, expectedItem, specs)
                }
                return
            }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Dec 15 10:26:50 UTC 2023
    - 5.3K bytes
    - Viewed (0)
  4. platforms/ide/tooling-api/src/test/groovy/org/gradle/integtests/tooling/fixture/ToolingApiModelCheckerTest.groovy

            }
    
            when:
            ToolingApiModelChecker.checkModel(
                actual,
                dummyModel("someValue"),
                [
                    { it.value }
                ]
            )
    
            then:
            noExceptionThrown()
        }
    
        def "fails with not equal values"() {
            when:
            ToolingApiModelChecker.checkModel(
                dummyModel("someValue"),
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Dec 15 10:26:50 UTC 2023
    - 9.1K bytes
    - Viewed (0)
  5. platforms/software/platform-base/src/integTest/groovy/org/gradle/language/base/CustomComponentPluginIntegrationTest.groovy

    }
    '''
            then:
            succeeds "checkModel"
        }
    
        def "can configure component declared by model rule method using model rules DSL"() {
            when:
            buildWithCustomComponentPlugin()
    
            and:
            buildFile << """
    model {
        components {
            sampleLib {
                version = '12'
            }
        }
        tasks {
            create("checkModel") {
                doLast {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Oct 11 12:16:09 UTC 2023
    - 10.9K bytes
    - Viewed (0)
  6. platforms/software/platform-base/src/integTest/groovy/org/gradle/language/base/CustomManagedBinaryIntegrationTest.groovy

                }
            }
        }
    }
    '''
            then:
            succeeds "checkModel"
        }
    
        def "can configure managed binary defined by rule method using rule DSL"() {
            when:
            buildWithCustomBinaryPlugin()
    
            and:
            buildFile << '''
    model {
        tasks {
            checkModel(Task) {
                doLast {
                    def binaries = $.binaries
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Oct 11 12:16:09 UTC 2023
    - 3.9K bytes
    - Viewed (0)
  7. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/isolated/IsolatedProjectsToolingApiIdeaProjectIntegrationTest.groovy

        private static void checkContentRoot(IdeaContentRoot actual, IdeaContentRoot expected) {
            checkModel(actual, expected, [
                { it.rootDirectory },
                { it.excludeDirectories },
            ])
        }
    
        private static void checkDependency(IdeaDependency actual, IdeaDependency expected) {
            checkModel(actual, expected, [
                { it.scope.scope },
                { it.exported },
            ])
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 20.9K bytes
    - Viewed (0)
  8. platforms/software/platform-base/src/integTest/groovy/org/gradle/language/base/CustomBinaryTasksIntegrationTest.groovy

            model {
                tasks {
                    checkModel(Task) {
                        doLast {
                            def binaries = $.binaries
                            assert binaries.size() == 2
                        }
                    }
                }
            }
    '''
            expect:
            fails "checkModel"
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Oct 11 12:16:09 UTC 2023
    - 9.2K bytes
    - Viewed (0)
  9. platforms/software/platform-base/src/integTest/groovy/org/gradle/language/base/CustomComponentBinariesIntegrationTest.groovy

        def "can register binaries using @ComponentBinaries rule"() {
            when:
            buildFile << withSimpleComponentBinaries()
            buildFile << '''
    
            model {
                tasks {
                    checkModel(Task) {
                        doLast {
                            def binaries = $.binaries
                            assert binaries.size() == 2
                            def sampleBinary = binaries.sampleLibBinary
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Oct 11 12:16:09 UTC 2023
    - 13.8K bytes
    - Viewed (0)
  10. src/go/printer/printer_test.go

    var fset = token.NewFileSet()
    
    type checkMode uint
    
    const (
    	export checkMode = 1 << iota
    	rawFormat
    	normNumber
    	idempotent
    	allowTypeParams
    )
    
    // format parses src, prints the corresponding AST, verifies the resulting
    // src is syntactically correct, and returns the resulting src or an error
    // if any.
    func format(src []byte, mode checkMode) ([]byte, error) {
    	// parse src
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 03 14:56:25 UTC 2024
    - 20.4K bytes
    - Viewed (0)
Back to top