Package statechum.analysis.CodeCoverage

Examples of statechum.analysis.CodeCoverage.CodeCoverageMap


                            for (Trace p : paths) {
                                //System.out.println("Generating coverage for " + path + "-" + p);
                                Collection<Trace> onlyPath = new LinkedList<Trace>();
                                onlyPath.add(p);
                                Pair<Trace, Trace> prefixSuffix = ErlangOracleVisualiser.getPrefixSuffixPair(allPrefixTraces, onlyPath);
                                CodeCoverageMap map = ErlangOracleVisualiser.getCoverageMap(prefixSuffix.firstElem, prefixSuffix.secondElem);
                                //System.out.println("Generated coverage " + prefixSuffix[0] + "-" + prefixSuffix[1] + ": " + map.toString());
                                erlCoverage.coverage.add(map);
                            }
                        }
                    }
View Full Code Here


                Pair<Trace, Trace> index = new Pair<Trace, Trace>(new Trace(), new Trace(toks[0].trim()));
                String map = toks[1].trim();
                map = map.substring(1, map.length() - 1);

                CodeCoverageMap mapObject = new CodeCoverageMap();
                if (map.length() > 0) {
                    // Create the parsed coverage map object
                    String[] maplets = (map.trim()).split("\\},\\{");
                    // Trim the {} off the first and last items...
                    maplets[0] = maplets[0].substring(1);
                    maplets[maplets.length - 1] = maplets[maplets.length - 1].substring(0, maplets[maplets.length - 1].length() - 1);
                    for (String m : maplets) {
                        // Maplets have the form {line, count} but should be missing the {} from the way we split the string.
                        String[] parts = m.split(",");
                        mapObject.add(parts[0], Integer.parseInt(parts[1]));
                    }

                }
                coverageMaps.put(index, mapObject);
                //System.out.println("Loading coverage map for \"" + index.secondElem + "\" = " + coverageMaps.get(index) + " (" + (coverageMaps.get(index) == null) + ")");
View Full Code Here

        Pair<Trace, Trace> index = new Pair<Trace, Trace>(new Trace(),
            Trace.fromString(toks[0].trim()));
        String map = toks[1].trim();
        map = map.substring(1, map.length() - 1);

        CodeCoverageMap mapObject = new CodeCoverageMap();
        if (map.length() > 0) {
          // Create the parsed coverage map object
          String[] maplets = (map.trim()).split("\\},\\{");
          // Trim the {} off the first and last items...
          maplets[0] = maplets[0].substring(1);
          maplets[maplets.length - 1] = maplets[maplets.length - 1]
              .substring(0,
                  maplets[maplets.length - 1].length() - 1);
          for (String m : maplets) {
            // Maplets have the form {line, count} but should be
            // missing the {} from the way we split the string.
            String[] parts = m.split(",");
            mapObject.add(parts[0], Integer.parseInt(parts[1]));
          }

        }
        coverageMaps.put(index, mapObject);
        // System.out.println("Loading coverage map for \"" +
View Full Code Here

        Pair<Trace, Trace> index = new Pair<Trace, Trace>(new Trace(),
            Trace.fromString(toks[0].trim()));
        String map = toks[1].trim();
        map = map.substring(1, map.length() - 1);

        CodeCoverageMap mapObject = new CodeCoverageMap();
        if (map.length() > 0) {
          // Create the parsed coverage map object
          String[] maplets = (map.trim()).split("\\},\\{");
          // Trim the {} off the first and last items...
          maplets[0] = maplets[0].substring(1);
          maplets[maplets.length - 1] = maplets[maplets.length - 1]
              .substring(0,
                  maplets[maplets.length - 1].length() - 1);
          for (String m : maplets) {
            // Maplets have the form {line, count} but should be
            // missing the {} from the way we split the string.
            String[] parts = m.split(",");
            mapObject.add(parts[0], Integer.parseInt(parts[1]));
          }

        }
        coverageMaps.put(index, mapObject);
        // System.out.println("Loading coverage map for \"" +
View Full Code Here

        Pair<Trace, Trace> index = new Pair<Trace, Trace>(new Trace(),
            Trace.fromString(toks[0].trim()));
        String map = toks[1].trim();
        map = map.substring(1, map.length() - 1);

        CodeCoverageMap mapObject = new CodeCoverageMap();
        if (map.length() > 0) {
          // Create the parsed coverage map object
          String[] maplets = (map.trim()).split("\\},\\{");
          // Trim the {} off the first and last items...
          maplets[0] = maplets[0].substring(1);
          maplets[maplets.length - 1] = maplets[maplets.length - 1]
              .substring(0,
                  maplets[maplets.length - 1].length() - 1);
          for (String m : maplets) {
            // Maplets have the form {line, count} but should be
            // missing the {} from the way we split the string.
            String[] parts = m.split(",");
            mapObject.add(parts[0], Integer.parseInt(parts[1]));
          }

        }
        coverageMaps.put(index, mapObject);
        // System.out.println("Loading coverage map for \"" +
View Full Code Here

                            for (Trace p : paths) {
                                //System.out.println("Generating coverage for " + path + "-" + p);
                                Collection<Trace> onlyPath = new LinkedList<Trace>();
                                onlyPath.add(p);
                                Pair<Trace, Trace> prefixSuffix = ErlangOracleVisualiser.getPrefixSuffixPair(allPrefixTraces, onlyPath);
                                CodeCoverageMap map = ErlangOracleVisualiser.getCoverageMap(prefixSuffix.firstElem, prefixSuffix.secondElem);
                                //System.out.println("Generated coverage " + prefixSuffix[0] + "-" + prefixSuffix[1] + ": " + map.toString());
                                erlCoverage.coverage.add(map);
                            }
                        }
                    }
View Full Code Here

                            for (Trace p : paths) {
                                //System.out.println("Generating coverage for " + path + "-" + p);
                                Collection<Trace> onlyPath = new LinkedList<Trace>();
                                onlyPath.add(p);
                                Pair<Trace, Trace> prefixSuffix = ErlangOracleVisualiser.getPrefixSuffixPair(allPrefixTraces, onlyPath);
                                CodeCoverageMap map = ErlangOracleVisualiser.getCoverageMap(prefixSuffix.firstElem, prefixSuffix.secondElem);
                                //System.out.println("Generated coverage " + prefixSuffix[0] + "-" + prefixSuffix[1] + ": " + map.toString());
                                coverage.add(map);
                            }
                        }
                        v.addUserDatum(JUConstants.PATH, allPrefixTraces, UserData.SHARED);
View Full Code Here

                            for (Trace p : paths) {
                                //System.out.println("Generating coverage for " + path + "-" + p);
                                Collection<Trace> onlyPath = new LinkedList<Trace>();
                                onlyPath.add(p);
                                Pair<Trace, Trace> prefixSuffix = ErlangOracleVisualiser.getPrefixSuffixPair(allPrefixTraces, onlyPath);
                                CodeCoverageMap map = ErlangOracleVisualiser.getCoverageMap(prefixSuffix.firstElem, prefixSuffix.secondElem);
                                //System.out.println("Generated coverage " + prefixSuffix[0] + "-" + prefixSuffix[1] + ": " + map.toString());
                                erlCoverage.coverage.add(map);
                            }
                        }
                    }
View Full Code Here

TOP

Related Classes of statechum.analysis.CodeCoverage.CodeCoverageMap

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.