Skip to content

Commit

Permalink
Protect a line of code that wasn't mutation-proof.
Browse files Browse the repository at this point in the history
Improves branch coverage.

PiperOrigin-RevId: 309431227
  • Loading branch information
fangism authored and hzeller committed May 4, 2020
1 parent 8177dd8 commit dec5e6a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions verilog/formatting/formatter_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1585,6 +1585,13 @@ static const std::initializer_list<FormatterTestCase> kFormatterTestCases = {
" input logic z\n"
");\n"
"endinterface\n"},
{// interface declaration with multiple ports
" interface if1( input\tlogic z, output logic a)\n;endinterface\t\t",
"interface if1 (\n"
" input logic z,\n" // should be one-per-line, even it it fits
" output logic a\n"
");\n"
"endinterface\n"},
{// interface declaration with parameters and ports
" interface if1#( parameter int W= 8 )(input logic z);endinterface\t\t",
// doesn't fit on one line
Expand Down

0 comments on commit dec5e6a

Please sign in to comment.