buildModelMenuForTest method

  1. @visibleForTesting
List<MenuItem> buildModelMenuForTest(
  1. String filter, {
  2. int width = 80,
})

Test seam driving the TUI model-menu builder in line mode: the same _buildModelMenu the TUI's model picker renders. width is the terminal width the table lays its columns out for (80 = the headless default).

Implementation

@visibleForTesting
List<MenuItem> buildModelMenuForTest(String filter, {int width = 80}) =>
    _buildModelMenu(filter, width);