Package org.nutz.lang.Code

Examples of org.nutz.lang.Code.CodeAnalysisResult


    }

    @Test
    public void analysisFile() throws Exception {
        File file = new File(path + "/CodeAnalysisDemo1.ca");
        CodeAnalysisResult analysisResult = Code.countingCode(file, null);
        Assert.assertEquals(4, analysisResult.getImportLines());
        Assert.assertEquals(5, analysisResult.getCommentLines());
        Assert.assertEquals(9, analysisResult.getWhiteLines());
        Assert.assertEquals(14, analysisResult.getNormalLines());
    }
View Full Code Here


    }

    @Test
    public void analysisFile() throws Exception {
        File file = new File(path + "/CodeAnalysisDemo1.ca");
        CodeAnalysisResult analysisResult = Code.countingCode(file, null);
        Assert.assertEquals(4, analysisResult.getImportLines());
        Assert.assertEquals(5, analysisResult.getCommentLines());
        Assert.assertEquals(9, analysisResult.getWhiteLines());
        Assert.assertEquals(14, analysisResult.getNormalLines());
    }
View Full Code Here

TOP

Related Classes of org.nutz.lang.Code.CodeAnalysisResult

Copyright © 2018 www.massapicom. 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.