pingcap / failpoint

An implementation of failpoints for Golang.
Apache License 2.0
817 stars 63 forks source link

failpoint: add unit test for WithHook #7

Closed lonng closed 5 years ago

lonng commented 5 years ago

Signed-off-by: Lonng chris@lonng.org

What problem does this PR solve?

Add more unit test for failpoint.

What is changed and how it works?

Add unit test for WithHook

Check List

Tests

Side effects

N/A

Related changes

N/A

codecov[bot] commented 5 years ago

Codecov Report

Merging #7 into master will decrease coverage by 0.0593%. The diff coverage is n/a.

@@               Coverage Diff                @@
##             master         #7        +/-   ##
================================================
- Coverage   54.9277%   54.8684%   -0.0594%     
================================================
  Files             8          8                
  Lines           761        760         -1     
================================================
- Hits            418        417         -1     
  Misses          265        265                
  Partials         78         78
lonng commented 5 years ago

PTAL @amyangfei

lonng commented 5 years ago

@kennytm PTAL again