MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_lshift

Method test_lshift

test/sql/test_operators.py:1083–1091  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1081 op(column("q", MyType()), "test")
1082
1083 def test_lshift(self):
1084 class MyType(UserDefinedType):
1085 cache_ok = True
1086
1087 class comparator_factory(UserDefinedType.Comparator):
1088 def __lshift__(self, other):
1089 return self.op("->")(other)
1090
1091 self.assert_compile(Column("x", MyType()) << 5, "x -> :x_1")
1092
1093 def test_rlshift(self):
1094 class MyType(UserDefinedType):

Callers

nothing calls this directly

Calls 3

ColumnClass · 0.90
assert_compileMethod · 0.80
MyTypeClass · 0.70

Tested by

no test coverage detected