pingcap / failpoint

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

code: add TypeSwitchStmt support in rewriter #14

Closed amyangfei closed 5 years ago

amyangfei commented 5 years ago

What problem does this PR solve?

ast.TypeSwitchStmt is not supported now

What is changed and how it works?

add support to ast.TypeSwitchStmt

Check List

Tests

codecov[bot] commented 5 years ago

Codecov Report

Merging #14 into master will increase coverage by 0.0547%. The diff coverage is 57.8947%.

@@               Coverage Diff                @@
##             master        #14        +/-   ##
================================================
+ Coverage   55.4231%   55.4778%   +0.0547%     
================================================
  Files             8          8                
  Lines           839        858        +19     
================================================
+ Hits            465        476        +11     
- Misses          286        290         +4     
- Partials         88         92         +4
amyangfei commented 5 years ago

PTAL @lonng @kennytm

lonng commented 5 years ago

LGTM