Closed amyangfei closed 5 years ago
Merging #9 into master will increase coverage by
0.0681%
. The diff coverage is69.2307%
.
@@ Coverage Diff @@
## master #9 +/- ##
================================================
+ Coverage 54.5918% 54.6599% +0.0681%
================================================
Files 8 8
Lines 784 794 +10
================================================
+ Hits 428 434 +6
- Misses 273 275 +2
- Partials 83 85 +2
What problem does this PR solve?
rewrite will fail if we have an assign statement in
select case
, such as the following code snippetWhat is changed and how it works?
*ast.CommClause.Comm
is*ast.AssignStmt
, applyrewriteAssign
to itAssignStmt
can be an*ast.UnaryExpr
, rewrite it as possiblec.Assert
, as the function is declared asfunc (c *C) Assert(obtained interface{}, checker Checker, args ...interface{})
Check List
Tests