Keyboard

↓ ↑
move between the rows you can see
→
open a feature, then step into it
←
close a feature, or step out to the one above
Enter
go to the page in focus
Tab
the same rows, plus everything else on the page
/
search the whole report
m
open or close the navigation drawer
Esc
leave the search box, or close the drawer
?
this list

Extracts only a real annotation argument

All 8 scenarios hold

The formatter leaves alone text that merely looks like an annotated table. It would otherwise rewrite the example in a comment, or the fixture a test feeds to a tool.

The last row holds the same table written for real. The rule is about where the text sits, and not about how the author writes it.

expected outcome broken scenario
ScenarioSource linesTable forms?
Inside a line comment
  • // @TableTest("""
  • // name | age
  • // Alice | 30
  • // """)
[]
Inside a block comment
  • /*
  • * @TableTest("""
  • * name | age
  • * """)
  • */
[]
String array inside a comment
  • // @TableTest({"name|age", "Alice|30"})
[]
Inside a plain string literal
  • @TableTest("name | age\nAlice | 30")
  • void test() {}
[]
Inside a text-block fixture
  • var fixture = """
  • @TableTest(\"""
  • name | age
  • \""")
  • """;
[]
On a different annotation
  • @CsvSource("""
  • name, age
  • Alice, 30
  • """)
  • void test() {}
[]
Unterminated text block
  • @TableTest("""
  • name | age
  • Alice | 30
[]
The same table, for real
  • @TableTest("""
  • name | age
  • Alice | 30
  • """)
  • void test() {}
  • TEXT_BLOCK