Package jscover.report

Examples of jscover.report.ScriptCoverageCount


        for (File file: fileScanner.getFiles(urisAlreadyProcessed)) {
            String uri = ioUtils.getRelativePath(file, config.getDocumentRoot());
            SourceProcessor sourceProcessor = new SourceProcessor(config, uri);
            try {
                sourceProcessor.instrumentSource(ioUtils.loadFromFileSystem(file));
                ScriptCoverageCount script = new ScriptCoverageCount("/"+uri, new ArrayList<Integer>(
                        sourceProcessor.getInstrumenter().getValidLines()),
                        sourceProcessor.getInstrumenter().getNumFunctions(),
                        sourceProcessor.getBranchInstrumentor().getLineConditionMap());
                scripts.add(script);
            } catch (RuntimeException t) {
View Full Code Here


        given(configuration.getReportDir()).willReturn(reportDir);
        given(configuration.getVersion()).willReturn("theVersion");
        given(ioUtils.toStringNoClose(bais, 12)).willReturn("data");
        given(bais.skip(50)).willReturn(50L);
        List<ScriptCoverageCount> unloadedJS = new ArrayList<ScriptCoverageCount>();
        unloadedJS.add(new ScriptCoverageCount("/js/unloaded.js", null, 0, null));
        given(unloadedSourceProcessor.getEmptyCoverageData(anySet())).willReturn(unloadedJS);

        webServer.handlePostOrPut(new HttpRequest(JSCOVERAGE_STORE, bais, null, 50, headers));

        verify(jsonDataSaver).saveJSONData(reportDir, "data", unloadedJS, uriFileTranslator);
View Full Code Here

TOP

Related Classes of jscover.report.ScriptCoverageCount

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.