Skip to content

Commit 7620b68

Browse files
authored
Merge pull request #14499 from YakshitAgarwal/rewrite
changes in content
2 parents 1f63e95 + 9292ba5 commit 7620b68

File tree

1 file changed

+1
-1
lines changed
  • public/content/developers/docs/smart-contracts/testing

1 file changed

+1
-1
lines changed

public/content/developers/docs/smart-contracts/testing/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ Many unit testing frameworks allow you to create assertions—simple statements
130130

131131
##### 3. Measure code coverage
132132

133-
[Code coverage](https://en.m.wikipedia.org/wiki/Code_coverage) is a testing metric that tracks the number of branches, lines, and statements in your code executed during tests. Tests should have good code coverage, otherwise you may get "false negatives" which happen a contract passes all tests, but vulnerabilities still exist in the code. Recording high code coverage, however, gives the assurance all statements/functions in a smart contract were sufficiently tested for correctness.
133+
[Code coverage](https://en.m.wikipedia.org/wiki/Code_coverage) is a testing metric that tracks the number of branches, lines, and statements in your code executed during tests. Tests should have good code coverage to minimize the risk of untested vulnerabilities. Without sufficient coverage, you might falsely assume your contract is secure because all tests pass, while vulnerabilities still exist in untested code paths. Recording high code coverage, however, gives the assurance all statements/functions in a smart contract were sufficiently tested for correctness.
134134

135135
##### 4. Use well-developed testing frameworks
136136

0 commit comments

Comments
 (0)