Releases: rillig/gobco
1.3.4
v1.3.3
1.3.2
1.3.0
1.2.2
Fix the placement of comments in the instrumented code, except for some edge cases in expression switch statements and type switch statements.
Fix instrumentation of parenthesized nil, struct types and interface types in type switch statements.
Fix instrumentation of black box tests (those with 'package X_test').
In the instrumented conditions for expression switch statements and type switch statements, omit parentheses where possible.
Generate simpler code when instrumenting expression switch statements.
1.2.1
Changes since 1.1.0:
Feature: In expressions with the operators '!', '&&', '||', only the terminal conditions are instrumented. The intermediate expressions are not instrumented, as that would be redundant.
Feature: Instrument the code in declaration order. Previously, the order of the conditions in the output was deterministic but unintuitive, especially for long chains of '&&' or '||', which were output mostly from right to left.
Bugfix: Generate proper code for switch statements that don't compare their tag expression to anything. Such statements are not expected to occur in practice.
Bugfix: Instrument comparisons that are nested in comparisons, such as the 'b > 0' in 'a == m[b > 0]'.
Cleanup: When instrumenting expression and type switch statements, generate simpler code. For example, only assign to '_' when necessary. Remove redundant switch statements from the generated code.
1.1.0
Changes since 1.0.3:
In chains of '&&' and '||', only instrument the terminal conditions, to reduce redundancy in the output.
Instrument send statements, inc/dec statements, range statements, variable declarations, call expressions, slice expressions, type assertion expressions, star expressions, binary expressions, selection expressions and comparisons inside comparisons.