CSC 4110 Lecture Notes - Lecture 22: Code Coverage, While Loop, If And Only If

23 views10 pages

Document Summary

Csc 4110 lecture 22: code coverage, code coverage is a measure used to describe the degree to which the source code of a program is tested by a particular test suite. Statement coverage: have all statements in a method been executed? program are executed at least once: method coverage. A measure of how complete your test cases are. Can identify paths through the code that you may have missed. The assumption that you are done testing if you have high coverage is incorrect. Coverage tools only tell you if you"ve covered what"s there. There may be requirements that you have missed! Don"t write test cases only to make your coverage tool happy. Inspect surrounding code for other potential errors, perhaps requirements you"ve missed: code coverage tools, djunit- http://works. dgic. co. jp/djunit/ Block coverage roughly corresponds to condition coverage. Control flow graph (cfg) is a directed graph in which the nodes represent basic blocks and the edges represent control flow paths.

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents