Raxol.UI.RendererTestHelper (Raxol v0.5.0)

View Source

Helper module for renderer tests providing common test utilities and fixtures.

Summary

Functions

assert_cell_style(cell, expected_fg, expected_bg, expected_style_attrs \\ [])

create_test_box(x, y, width, height, opts \\ %{})

create_test_element(type, x, y, opts \\ %{})

create_test_panel(x, y, width, height, children \\ [], opts \\ %{})

create_test_table(x, y, headers, data, opts \\ %{})

create_test_text(x, y, text, opts \\ %{})

create_test_theme(name, colors, styles, fonts)

get_cell_at(cells, x, y)

get_cells_with_char(cells, char)