Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for checkModel (0.19 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. subprojects/diagnostics/src/testFixtures/groovy/org/gradle/api/reporting/model/ModelReportOutput.groovy

            def parsedNodes = parsedModelReport.reportNode
            def actualNode = parsedNodes.findFirstByName(expectedNode.name())
            assert actualNode: "Could not find the first node to begin comparison"
            checkNodes(actualNode, expectedNode)
        }
    
        /**
         * A fuzzy assertion which recursively asserts that:
         * - {@code excepted} has, at a minimum, has the same number of and node names as {@actual}
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Jul 02 20:49:19 UTC 2015
    - 3.5K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apimachinery/pkg/runtime/codec_check.go

    	"k8s.io/apimachinery/pkg/util/json"
    )
    
    // CheckCodec makes sure that the codec can encode objects like internalType,
    // decode all of the external types listed, and also decode them into the given
    // object. (Will modify internalObject.) (Assumes JSON serialization.)
    // TODO: verify that the correct external version is chosen on encode...
    func CheckCodec(c Codec, internalType Object, externalTypes ...schema.GroupVersionKind) error {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jul 27 07:07:03 UTC 2022
    - 1.8K bytes
    - Viewed (0)
Back to top