expectNoOverflow function

void expectNoOverflow(
  1. LayoutReport report
)

Fail the current test (with a readable report) if report found any overflow. Passes silently otherwise.

Implementation

void expectNoOverflow(LayoutReport report) {
  if (report.hasOverflow) {
    fail(report.describe());
  }
}