test_class.declarator: BASE_DIR = "/org/sonar/plugins/php/phpunit/sensor/"
test_class.modifier: private static final
test_class.original_string: private static final String BASE_DIR = "/org/sonar/plugins/php/phpunit/sensor/";
test_class.type: String
test_class.var_name: BASE_DIR
test_class.declarator: MONKEY_FILE_NAME = "src/Monkey.php"
test_class.modifier: private static final
test_class.original_string: private static final String MONKEY_FILE_NAME = "src/Monkey.php";
test_class.type: String
test_class.var_name: MONKEY_FILE_NAME
test_class.declarator: BANANA_FILE_NAME = "src/Banana.php"
test_class.modifier: private static final
test_class.original_string: private static final String BANANA_FILE_NAME = "src/Banana.php";
test_class.type: String
test_class.var_name: BANANA_FILE_NAME
test_class.declarator: SRC_TEST_RESOURCES = "src/test/resources/"
test_class.modifier: private static final
test_class.original_string: private static final String SRC_TEST_RESOURCES = "src/test/resources/";
test_class.type: String
test_class.var_name: SRC_TEST_RESOURCES
test_class.declarator: MONKEY_FILE = new File(SRC_TEST_RESOURCES + BASE_DIR + MONKEY_FILE_NAME)
test_class.modifier: private static final
test_class.original_string: private static final File MONKEY_FILE = new File(SRC_TEST_RESOURCES + BASE_DIR + MONKEY_FILE_NAME);
test_class.type: File
test_class.var_name: MONKEY_FILE
test_class.declarator: BANANA_FILE = new File(SRC_TEST_RESOURCES + BASE_DIR + BANANA_FILE_NAME)
test_class.modifier: private static final
test_class.original_string: private static final File BANANA_FILE = new File(SRC_TEST_RESOURCES + BASE_DIR + BANANA_FILE_NAME);
test_class.type: File
test_class.var_name: BANANA_FILE
test_class.declarator: thrown = ExpectedException.none()
test_class.modifier: @Rule
    public
test_class.original_string: @Rule
    public ExpectedException thrown = ExpectedException.none();
test_class.type: ExpectedException
test_class.var_name: thrown
test_class.declarator: folder = new TemporaryFolder()
test_class.modifier: @Rule
    public
test_class.original_string: @Rule
    public TemporaryFolder folder = new TemporaryFolder();
test_class.type: TemporaryFolder
test_class.var_name: folder
test_class.declarator: importer
test_class.modifier: private
test_class.original_string: private CoverageResultImporter importer;
test_class.type: CoverageResultImporter
test_class.var_name: importer
test_class.declarator: context
test_class.modifier: private
test_class.original_string: private SensorContextTester context;
test_class.type: SensorContextTester
test_class.var_name: context
test_class.file: sonar-php-plugin/src/test/java/org/sonar/plugins/php/phpunit/CoverageResultImporterTest.java
test_class.identifier: CoverageResultImporterTest
test_case.body: @Test
    public void should_generate_coverage_measures() throws Exception {
      String componentKey = "moduleKey:" + MONKEY_FILE_NAME;
  
      importer.importReport(getReportsWithAbsolutePath("phpunit.coverage.xml"), context);
  
      assertReport(componentKey);
    }
test_case.class_method_signature: CoverageResultImporterTest.should_generate_coverage_measures()
test_case.full_signature: @Test public void should_generate_coverage_measures()
test_case.identifier: should_generate_coverage_measures
test_case.invocations: importReport getReportsWithAbsolutePath assertReport
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void should_generate_coverage_measures()
focal_class.declarator: LOG = Loggers.get(CoverageResultImporter.class)
focal_class.modifier: private static final
focal_class.original_string: private static final Logger LOG = Loggers.get(CoverageResultImporter.class);
focal_class.type: Logger
focal_class.var_name: LOG
focal_class.declarator: WRONG_LINE_EXCEPTION_MESSAGE = "Line with number %s doesn't belong to file %s"
focal_class.modifier: private static final
focal_class.original_string: private static final String WRONG_LINE_EXCEPTION_MESSAGE = "Line with number %s doesn't belong to file %s";
focal_class.type: String
focal_class.var_name: WRONG_LINE_EXCEPTION_MESSAGE
focal_class.file: sonar-php-plugin/src/main/java/org/sonar/plugins/php/phpunit/CoverageResultImporter.java
focal_class.identifier: CoverageResultImporter
focal_class.class_method_signature: CoverageResultImporter.CoverageResultImporter(String reportPathKey, String msg)
focal_class.full_signature:   CoverageResultImporter(String reportPathKey, String msg)
focal_class.identifier: CoverageResultImporter
focal_class.parameters: (String reportPathKey, String msg)
focal_class.signature:  CoverageResultImporter(String reportPathKey, String msg)
focal_class.class_method_signature: CoverageResultImporter.multiCoverageImporter()
focal_class.full_signature: public static ReportImporter multiCoverageImporter()
focal_class.identifier: multiCoverageImporter
focal_class.modifiers: public static
focal_class.parameters: ()
focal_class.return: ReportImporter
focal_class.signature: ReportImporter multiCoverageImporter()
focal_class.class_method_signature: CoverageResultImporter.importReport(File coverageReportFile, SensorContext context)
focal_class.full_signature: @Override protected void importReport(File coverageReportFile, SensorContext context)
focal_class.identifier: importReport
focal_class.modifiers: @Override protected
focal_class.parameters: (File coverageReportFile, SensorContext context)
focal_class.return: void
focal_class.signature: void importReport(File coverageReportFile, SensorContext context)
focal_class.class_method_signature: CoverageResultImporter.parseFile(File coverageReportFile, SensorContext context)
focal_class.full_signature: private static void parseFile(File coverageReportFile, SensorContext context)
focal_class.identifier: parseFile
focal_class.modifiers: private static
focal_class.parameters: (File coverageReportFile, SensorContext context)
focal_class.return: void
focal_class.signature: void parseFile(File coverageReportFile, SensorContext context)
focal_class.class_method_signature: CoverageResultImporter.parsePackagesNodes(@Nullable List<PackageNode> packages, List<String> unresolvedPaths, SensorContext context)
focal_class.full_signature: private static void parsePackagesNodes(@Nullable List<PackageNode> packages, List<String> unresolvedPaths, SensorContext context)
focal_class.identifier: parsePackagesNodes
focal_class.modifiers: private static
focal_class.parameters: (@Nullable List<PackageNode> packages, List<String> unresolvedPaths, SensorContext context)
focal_class.return: void
focal_class.signature: void parsePackagesNodes(@Nullable List<PackageNode> packages, List<String> unresolvedPaths, SensorContext context)
focal_class.class_method_signature: CoverageResultImporter.parseFileNodes(@Nullable List<FileNode> fileNodes, List<String> unresolvedPaths, SensorContext context)
focal_class.full_signature: private static void parseFileNodes(@Nullable List<FileNode> fileNodes, List<String> unresolvedPaths, SensorContext context)
focal_class.identifier: parseFileNodes
focal_class.modifiers: private static
focal_class.parameters: (@Nullable List<FileNode> fileNodes, List<String> unresolvedPaths, SensorContext context)
focal_class.return: void
focal_class.signature: void parseFileNodes(@Nullable List<FileNode> fileNodes, List<String> unresolvedPaths, SensorContext context)
focal_class.class_method_signature: CoverageResultImporter.saveCoverageMeasure(FileNode fileNode, List<String> unresolvedPaths, SensorContext context)
focal_class.full_signature: private static void saveCoverageMeasure(FileNode fileNode, List<String> unresolvedPaths, SensorContext context)
focal_class.identifier: saveCoverageMeasure
focal_class.modifiers: private static
focal_class.parameters: (FileNode fileNode, List<String> unresolvedPaths, SensorContext context)
focal_class.return: void
focal_class.signature: void saveCoverageMeasure(FileNode fileNode, List<String> unresolvedPaths, SensorContext context)
focal_class.class_method_signature: CoverageResultImporter.saveCoverageLineHitsData(FileNode fileNode, InputFile inputFile, SensorContext context)
focal_class.full_signature: private static void saveCoverageLineHitsData(FileNode fileNode, InputFile inputFile, SensorContext context)
focal_class.identifier: saveCoverageLineHitsData
focal_class.modifiers: private static
focal_class.parameters: (FileNode fileNode, InputFile inputFile, SensorContext context)
focal_class.return: void
focal_class.signature: void saveCoverageLineHitsData(FileNode fileNode, InputFile inputFile, SensorContext context)
focal_class.class_method_signature: CoverageResultImporter.getCoverage(File coverageReportFile)
focal_class.full_signature: private static CoverageNode getCoverage(File coverageReportFile)
focal_class.identifier: getCoverage
focal_class.modifiers: private static
focal_class.parameters: (File coverageReportFile)
focal_class.return: CoverageNode
focal_class.signature: CoverageNode getCoverage(File coverageReportFile)
focal_class.class_method_signature: CoverageResultImporter.parseCoverageNode(SMHierarchicCursor cursor)
focal_class.full_signature: private static CoverageNode parseCoverageNode(SMHierarchicCursor cursor)
focal_class.identifier: parseCoverageNode
focal_class.modifiers: private static
focal_class.parameters: (SMHierarchicCursor cursor)
focal_class.return: CoverageNode
focal_class.signature: CoverageNode parseCoverageNode(SMHierarchicCursor cursor)
focal_class.class_method_signature: CoverageResultImporter.parseProjectNode(SMInputCursor cursor)
focal_class.full_signature: private static ProjectNode parseProjectNode(SMInputCursor cursor)
focal_class.identifier: parseProjectNode
focal_class.modifiers: private static
focal_class.parameters: (SMInputCursor cursor)
focal_class.return: ProjectNode
focal_class.signature: ProjectNode parseProjectNode(SMInputCursor cursor)
focal_class.class_method_signature: CoverageResultImporter.parsePackageNode(SMInputCursor cursor)
focal_class.full_signature: private static PackageNode parsePackageNode(SMInputCursor cursor)
focal_class.identifier: parsePackageNode
focal_class.modifiers: private static
focal_class.parameters: (SMInputCursor cursor)
focal_class.return: PackageNode
focal_class.signature: PackageNode parsePackageNode(SMInputCursor cursor)
focal_class.class_method_signature: CoverageResultImporter.parseFileNode(SMInputCursor cursor)
focal_class.full_signature: private static FileNode parseFileNode(SMInputCursor cursor)
focal_class.identifier: parseFileNode
focal_class.modifiers: private static
focal_class.parameters: (SMInputCursor cursor)
focal_class.return: FileNode
focal_class.signature: FileNode parseFileNode(SMInputCursor cursor)
focal_class.class_method_signature: CoverageResultImporter.parseLineNode(SMInputCursor cursor)
focal_class.full_signature: private static LineNode parseLineNode(SMInputCursor cursor)
focal_class.identifier: parseLineNode
focal_class.modifiers: private static
focal_class.parameters: (SMInputCursor cursor)
focal_class.return: LineNode
focal_class.signature: LineNode parseLineNode(SMInputCursor cursor)
focal_class.class_method_signature: CoverageResultImporter.attributeIntValue(SMInputCursor cursor, String name)
focal_class.full_signature: private static int attributeIntValue(SMInputCursor cursor, String name)
focal_class.identifier: attributeIntValue
focal_class.modifiers: private static
focal_class.parameters: (SMInputCursor cursor, String name)
focal_class.return: int
focal_class.signature: int attributeIntValue(SMInputCursor cursor, String name)
focal_class.superclass: extends SingleFileReportImporter
focal_method.body: @Override
    protected void importReport(File coverageReportFile, SensorContext context) {
      LOG.debug("Parsing file: " + coverageReportFile.getAbsolutePath());
      parseFile(coverageReportFile, context);
    }
focal_method.class_method_signature: CoverageResultImporter.importReport(File coverageReportFile, SensorContext context)
focal_method.full_signature: @Override protected void importReport(File coverageReportFile, SensorContext context)
focal_method.identifier: importReport
focal_method.invocations: debug getAbsolutePath parseFile
focal_method.modifiers: @Override protected
focal_method.parameters: (File coverageReportFile, SensorContext context)
focal_method.return: void
focal_method.signature: void importReport(File coverageReportFile, SensorContext context)