Examples of RcovFileResult


Examples of hudson.plugins.rubyMetrics.rcov.model.RcovFileResult

        }
        return (TableTag) reportNode.elements().nextNode();
    }

    private RcovFileResult parseRow(TableRow row) throws ParserException, IOException {
          final RcovFileResult file = new RcovFileResult();

          NodeList nodeList = new NodeList();
          row.collectInto(nodeList, new TagNameFilter("a"));
          String linkPath = null;
          if (nodeList.size() > 0) {
              LinkTag link = (LinkTag) nodeList.elementAt(0);
              linkPath = link.getLink();
              file.setHref(link.getLink().replaceAll(".html", ""));
              file.setName(link.getLinkText());
          }

        TableColumn[] columns = row.getColumns();
        file.setTotalLines(getTextFromTT(columns[1]));
        file.setCodeLines(getTextFromTT(columns[2]));
        file.setTotalCoverage(getTextFromTT(columns[3]));
        file.setCodeCoverage(getTextFromTT(columns[4]));

        return file;
    }
View Full Code Here

Examples of hudson.plugins.rubyMetrics.rcov.model.RcovFileResult

        assertIsAValidNode(result.getTotalLines());
        assertIsAValidNode(result.getCodeCoverage());
        assertIsAValidNode(result.getCodeLines());

        //Check first file
        RcovFileResult fileResult = result.getFiles().iterator().next();

        assertIsAValidNode(fileResult.getTotalCoverage());
        assertIsAValidNode(fileResult.getTotalLines());
        assertIsAValidNode(fileResult.getCodeCoverage());
        assertIsAValidNode(fileResult.getCodeLines());
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.