MCPcopy Index your code
hub / github.com/pathwaycom/pathway / test_compute_and_print

Function test_compute_and_print

python/pathway/tests/test_py_object_wrapper.py:162–178  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

160
161
162def test_compute_and_print():
163 @pw.udf
164 def create_simple(a: int) -> pw.PyObjectWrapper[Simple]:
165 return pw.PyObjectWrapper(Simple(a))
166
167 t = pw.debug.table_from_markdown(
168 """
169 a
170 1
171 2
172 2
173 3
174 1
175 """
176 ).with_columns(simple=create_simple(pw.this.a))
177
178 pw.debug.compute_and_print(t)
179
180
181@dataclass

Callers

nothing calls this directly

Calls 3

create_simpleFunction · 0.85
with_columnsMethod · 0.80
table_from_markdownMethod · 0.80

Tested by

no test coverage detected