MCPcopy
hub / github.com/ucbepic/docetl / test_memory_dataset_codegen

Method test_memory_dataset_codegen

tests/test_builder.py:186–191  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

184 compile(code, "<test>", "exec")
185
186 def test_memory_dataset_codegen(self):
187 frame = from_list([{"x": 1}]).map(prompt="p")
188 code = frame.to_python()
189 assert "from_list(" in code
190 assert "type=" not in code or "type='memory'" not in code
191 compile(code, "<test>", "exec")
192
193 def test_csv_reader_codegen(self):
194 from docetl.frame import read_csv

Callers

nothing calls this directly

Calls 3

from_listFunction · 0.90
to_pythonMethod · 0.80
mapMethod · 0.45

Tested by

no test coverage detected