Code coverage - tutorial

Code coverage Definition from Wikipedia: In computer science, test coverage is a measure (in percent) of the degree to which the source code of a program is executed when a particular test suite is run. Types: Function coverage – has each function (or subroutine) in the program been called? Statement coverage – has each statement in the program been executed? Edge coverage – has every edge in the control-flow graph been executed?