summaryrefslogtreecommitdiff
path: root/doc/rst/legacy/code_coverage/index.rst
blob: 5db3763a97eec7b8208a063939b8d164d7e3fec8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
.. _mozilla_projects_nss_code_coverage:

NSS Code Coverage
=================

.. _nss_-_code_coverage:

`NSS - Code Coverage <#nss_-_code_coverage>`__
----------------------------------------------

.. container::

.. _results_link:

`Results link <#results_link>`__
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

.. container::

   -  `2007-08-14 - Solaris/Sparc
      platform <ftp://ftp.mozilla.org/pub/mozilla.org/security/nss/coverage/20070814-sparc/nss.html>`__

.. _results_explanation:

`Results explanation <#results_explanation>`__
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

.. container::

   .. rubric:: Files
      :name: files

   -  Results from every C file are on new line.
   -  If file was tested, link points to annotated source file (in TCOV directory), otherwise to
      original source file (CVS directory).

   .. rubric:: Colors
      :name: colors

   -  Green: 70-100% of blocks tested.
   -  Yellow: 40-70% of blocks tested.
   -  Orange: 0-40% of blocks tested.
   -  Red: file not tested. File is not part of any binary or library used by test suite.

   .. rubric:: Numbers in tested files
      :name: numbers_in_tested_files

   -  Example: 72.69% (165/227/731)

      -  72.69% - ratio of tested blocks and total blocks in file (generated by TCOV).
      -  165 - tested blocks in file (generated by TCOV).
      -  227 - total blocks in file (generated by TCOV).
      -  31 - total lines in file (by wc -l command).

   .. rubric:: Numbers in not tested files
      :name: numbers_in_not_tested_files

   -  Example: Not tested (0/?/878).

      -  0 - tested blocks in file (always 0).
      -   ? - total blocks in file (there is no trivial method to get this number without TCOV).
      -  878 - total lines in file (by wc -l command).

   .. rubric:: Numbers in total count
      :name: numbers_in_total_count

   -  Example: Total: 42% (574/1351).

      -  42% - ratio of tested blocks and total blocks in file.
      -  165 - tested blocks in all files in directory (sum of numbers generated by TCOV).
      -  227 - total blocks in all files in directory (sum of numbers generated by TCOV).

   -  These numbers doesn't count blocks in files which are not tested (marked with red color),
      because we don't know number of blocks there.
   -  Total count at the end of report counts blocks in all tested files in all directories.