Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for findFirstByName (0.21 sec)

  1. subprojects/diagnostics/src/test/groovy/org/gradle/api/reporting/model/ReportNodeTest.groovy

            setup:
            ReportNode parent = new ReportNode('parent')
            new ReportNode(parent, 'child', [aVal: 2])
            new ReportNode(parent, 'child', [aVal: 1])
    
            expect:
            parent.findFirstByName('child').attribute('aVal') == 2
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jun 02 09:25:11 UTC 2015
    - 1.3K bytes
    - Viewed (0)
  2. subprojects/diagnostics/src/testFixtures/groovy/org/gradle/api/reporting/model/ReportNode.groovy

        ReportNode(name, Map attributes) {
            super(null, name, attributes)
        }
    
        ReportNode(ReportNode parent, name, Map attributes) {
            super(parent, name, attributes)
        }
    
        ReportNode findFirstByName(String aName) {
            return this.depthFirst().find { ReportNode node -> node.name() == aName }
        }
    
        String getType() {
            return attribute('type')
        }
    
        String getNodeValue() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Apr 06 16:25:37 UTC 2020
    - 1.8K bytes
    - Viewed (0)
  3. subprojects/diagnostics/src/testFixtures/groovy/org/gradle/api/reporting/model/ModelReportOutput.groovy

         */
        void hasNodeStructure(ReportNode expectedNode) {
            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:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Jul 02 20:49:19 UTC 2015
    - 3.5K bytes
    - Viewed (0)
Back to top