MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_bitwise

Method test_bitwise

lib/sqlalchemy/testing/suite/test_select.py:2102–2112  ·  view source on GitHub ↗
(self, case, expected, connection)

Source from the content-addressed store, hash-verified

2100 argnames="case, expected",
2101 )
2102 def test_bitwise(self, case, expected, connection):
2103 tbl = self.tables.bitwise
2104
2105 a = tbl.c.a
2106
2107 op = testing.resolve_lambda(case, a=a)
2108
2109 stmt = select(tbl).where(op > 0).order_by(a)
2110
2111 res = connection.execute(stmt).mappings().all()
2112 eq_(res, [self.inserted_data[i] for i in expected])

Callers

nothing calls this directly

Calls 7

selectFunction · 0.90
eq_Function · 0.85
order_byMethod · 0.45
whereMethod · 0.45
allMethod · 0.45
mappingsMethod · 0.45
executeMethod · 0.45

Tested by

no test coverage detected