Examples of CodeStatisticsResult


Examples of org.nutz.lang.Code.CodeStatisticsResult

    }

    @Test
    public void analysisFolder() throws Exception {
        File src = new File(path);
        CodeStatisticsResult statisticsResult = Code.countingCode(src, "ca", false, null);
        Assert.assertEquals(2, statisticsResult.getFileCount());
        Assert.assertEquals(8, statisticsResult.getImportLines());
        Assert.assertEquals(10, statisticsResult.getCommentLines());
        Assert.assertEquals(18, statisticsResult.getWhiteLines());
        Assert.assertEquals(28, statisticsResult.getNormalLines());
    }
View Full Code Here

Examples of org.nutz.lang.Code.CodeStatisticsResult

    }

    @Test
    public void analysisFolderAndSubFolder() throws Exception {
        File src = new File(path);
        CodeStatisticsResult statisticsResult = Code.countingCode(src, "ca", true, null);
        Assert.assertEquals(4, statisticsResult.getFileCount());
        Assert.assertEquals(16, statisticsResult.getImportLines());
        Assert.assertEquals(20, statisticsResult.getCommentLines());
        Assert.assertEquals(36, statisticsResult.getWhiteLines());
        Assert.assertEquals(56, statisticsResult.getNormalLines());

    }
View Full Code Here

Examples of org.nutz.lang.Code.CodeStatisticsResult

    }

    @Test
    public void analysisFolderAndSubFolder() throws Exception {
        File src = new File(path);
        CodeStatisticsResult statisticsResult = Code.countingCode(src,
                                                                  "ca",
                                                                  true,
                                                                  null);
        Assert.assertEquals(4, statisticsResult.getFileCount());
        Assert.assertEquals(16, statisticsResult.getImportLines());
        Assert.assertEquals(20, statisticsResult.getCommentLines());
        Assert.assertEquals(36, statisticsResult.getWhiteLines());
        Assert.assertEquals(56, statisticsResult.getNormalLines());

    }
View Full Code Here

Examples of org.nutz.lang.Code.CodeStatisticsResult

    }

    @Test
    public void analysisFolder() throws Exception {
        File src = new File(path);
        CodeStatisticsResult statisticsResult = Code.countingCode(src,
                                                                  "ca",
                                                                  false,
                                                                  null);
        Assert.assertEquals(2, statisticsResult.getFileCount());
        Assert.assertEquals(8, statisticsResult.getImportLines());
        Assert.assertEquals(10, statisticsResult.getCommentLines());
        Assert.assertEquals(18, statisticsResult.getWhiteLines());
        Assert.assertEquals(28, statisticsResult.getNormalLines());
    }
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.