summaryrefslogtreecommitdiffstats
path: root/security/nss/doc/rst/legacy/code_coverage/index.rst
diff options
context:
space:
mode:
Diffstat (limited to 'security/nss/doc/rst/legacy/code_coverage/index.rst')
-rw-r--r--security/nss/doc/rst/legacy/code_coverage/index.rst73
1 files changed, 73 insertions, 0 deletions
diff --git a/security/nss/doc/rst/legacy/code_coverage/index.rst b/security/nss/doc/rst/legacy/code_coverage/index.rst
new file mode 100644
index 0000000000..1bafb3f6c1
--- /dev/null
+++ b/security/nss/doc/rst/legacy/code_coverage/index.rst
@@ -0,0 +1,73 @@
+.. _mozilla_projects_nss_code_coverage:
+
+NSS Code Coverage
+=================
+
+.. _nss_-_code_coverage:
+
+`NSS - Code Coverage <#nss_-_code_coverage>`__
+----------------------------------------------
+
+.. _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. \ No newline at end of file