private void processFunctions(FileData coverageData, StringBuilder lcov) {
        int total = 0;
        int hit = 0;
        for (int functionNumber = 0; functionNumber < coverageData.getFunctions().size(); functionNumber++) {
            total++;
            Integer functionHits = coverageData.getFunctions().get(functionNumber);
            if (functionHits > 0)
                hit++;

            String functionName = "" + functionNumber;
            lcov.append(format(functionData, functionHits, functionName));
        }

        lcov.append(format(functionFound, total));
        lcov.append(format(functionHit, hit));
    }