Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for ReportNode (0.1 sec)

  1. subprojects/diagnostics/src/testFixtures/groovy/org/gradle/api/reporting/model/ReportNode.groovy

     *
     * E.g:
     * <pre>
     *      modelReport.reportNode.'**'.primaryCredentials.username.@nodeValue[0] == 'uname'
     *      modelReport.reportNode.'**'.primaryCredentials.username.@type[0] == 'java.lang.String'
     * </pre>
     *
     */
    class ReportNode extends Node {
        Integer depth
    
        ReportNode(name) {
            super(null, name)
        }
    
        ReportNode(ReportNode parent, name) {
            super(parent, name)
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Apr 06 16:25:37 UTC 2020
    - 1.8K bytes
    - Viewed (0)
  2. subprojects/diagnostics/src/testFixtures/groovy/org/gradle/api/reporting/model/ModelReportNodeBuilder.groovy

            return new ReportNode(name)
        }
    
        @Override
        protected Object createNode(Object name, Map attributes) {
            def node = new ReportNode(name, attributes)
            return node
        }
    
        @Override
        protected Object createNode(Object name, Map attributes, Object value) {
            return null
        }
    
        public ReportNode get() {
            return rootNode.children()?.find()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jun 02 09:25:11 UTC 2015
    - 1.7K bytes
    - Viewed (0)
  3. subprojects/diagnostics/src/testFixtures/groovy/org/gradle/api/reporting/model/ModelReportOutput.groovy

         * Each node of the subtree is then verified against the expected structure.
         */
        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"
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Jul 02 20:49:19 UTC 2015
    - 3.5K bytes
    - Viewed (0)
  4. subprojects/diagnostics/src/test/groovy/org/gradle/api/reporting/model/ReportNodeTest.groovy

            setup:
            ReportNode reportNode = new ReportNode('myName')
            def child = new ReportNode('child')
            reportNode.append(child)
    
            expect:
            reportNode.children().size() == 1
        }
    
        def "should find the first matching child node"() {
            setup:
            ReportNode parent = new ReportNode('parent')
            new ReportNode(parent, 'child', [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)
  5. subprojects/diagnostics/src/test/groovy/org/gradle/api/reporting/model/ModelReportParserTest.groovy

            "    | Value:  \tC++ source 'lss:lss'" | false
        }
    
        def "should find a node attributes"() {
            ReportNode reportNode = new ReportNode('test')
            when:
            ModelReportParser.setNodeProperties(line, reportNode)
    
            then:
            reportNode.attribute(expectedAttribute) == expectedValue
            where:
            line                               | expectedAttribute | expectedValue
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 04 22:26:51 UTC 2021
    - 5.1K bytes
    - Viewed (0)
  6. subprojects/diagnostics/src/testFixtures/groovy/org/gradle/api/reporting/model/ModelReportParser.groovy

        }
    
        private static ReportNode parseNodes(List<String> nodeLines) {
            ReportNode root = new ReportNode("model")
            root.depth = 0
            ReportNode prev = root
            nodeLines.each { line ->
                if (lineIsANode(line)) {
                    int depth = getNodeDepth(line)
                    if (depth > prev.getDepth()) {
                        ReportNode node = new ReportNode(prev, getNodeName(line))
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Mar 21 18:45:57 UTC 2018
    - 5.3K bytes
    - Viewed (0)
  7. subprojects/diagnostics/src/testFixtures/groovy/org/gradle/api/reporting/model/ParsedModelReport.groovy

        final List<String> nodeOnlyLines
        final ReportNode reportNode
    
        ParsedModelReport(String title, List<String> reportLines, List<String> nodeOnlyLines, ReportNode reportNode) {
            this.title = title
            this.reportLines = reportLines.asImmutable()
            this.nodeOnlyLines = nodeOnlyLines.asImmutable()
            this.reportNode = reportNode
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Jun 03 06:05:35 UTC 2015
    - 1.1K bytes
    - Viewed (0)
  8. subprojects/diagnostics/src/test/groovy/org/gradle/api/reporting/model/ModelReportNodeBuilderTest.groovy

     */
    
    package org.gradle.api.reporting.model
    
    import spock.lang.Specification
    
    class ModelReportNodeBuilderTest extends Specification {
    
        def "builds a report node structure from a DSL"() {
            ReportNode node = ModelReportNodeBuilder.fromDsl({
                model {
                    childOne()
                    childTwo(aValue: 'someThing', anotherValue: 'somethingElse')
                }
            }).get()
    
            expect:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jan 11 23:49:44 UTC 2019
    - 1.3K bytes
    - Viewed (0)
Back to top