MCPcopy Create free account
hub / github.com/BerriAI/litellm / create

Function create

tests/rust-python-harness/conftest.py:20–25  ·  view source on GitHub ↗
(package: str, source: str)

Source from the content-addressed store, hash-verified

18@pytest.fixture
19def cargo_project(tmp_path: Path) -> Callable[[str, str], Path]:
20 def create(package: str, source: str) -> Path:
21 manifest: Final = tmp_path / "Cargo.toml"
22 manifest.write_text(f'[package]\nname = "{package}"\nversion = "0.1.0"\nedition = "2021"\n[workspace]\n')
23 (tmp_path / "src").mkdir()
24 (tmp_path / "src/lib.rs").write_text(source)
25 return manifest
26
27 return create

Callers 3

sendFunction · 0.50
check_asyncFunction · 0.50
_until_reasoning_emittedFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected