MCPcopy
hub / github.com/dbcli/pgcli / test_row_limit_with_LIMIT_clause

Function test_row_limit_with_LIMIT_clause

tests/test_rowlimit.py:57–65  ·  view source on GitHub ↗
(LIMIT, over_limit, stmt)

Source from the content-addressed store, hash-verified

55 ],
56)
57def test_row_limit_with_LIMIT_clause(LIMIT, over_limit, stmt):
58 cli = PGCli(row_limit=LIMIT)
59
60 result = cli._should_limit_output(stmt, over_limit)
61 assert result is False
62
63 cli = PGCli(row_limit=0)
64 result = cli._should_limit_output(stmt, over_limit)
65 assert result is False
66
67
68@pytest.mark.parametrize(

Callers

nothing calls this directly

Calls 2

_should_limit_outputMethod · 0.95
PGCliClass · 0.90

Tested by

no test coverage detected