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

Method test_lshift

test/sql/test_operators.py:1083–1091  ·  test/sql/test_operators.py::ExtensionOperatorTest.test_lshift
(self)

Source from the content-addressed store, hash-verified

1081 op(column(class="st">"q", MyType()), class="st">"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(class="st">"->")(other)
1090
1091 self.assert_compile(Column(class="st">"x", MyType()) << 5, class="st">"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