MCPcopy Create free account
hub / github.com/Graphify-Labs/graphify / test_powershell_import_module_emits_edge

Function test_powershell_import_module_emits_edge

tests/test_languages.py:1708–1713  ·  view source on GitHub ↗

Import-Module Foo at top level emits an imports_from edge.

()

Source from the content-addressed store, hash-verified

1706# ── PowerShell: Import-Module + dot-source (#1331) ───────────────────────────
1707
1708def test_powershell_import_module_emits_edge():
1709 """Import-Module Foo at top level emits an imports_from edge."""
1710 r = extract_powershell(FIXTURES / "sample_import.ps1")
1711 assert "error" not in r
1712 targets = {e["target"] for e in r["edges"] if e["relation"] == "imports_from"}
1713 assert any("foo" in t for t in targets), f"Missing Import-Module Foo edge; targets={targets}"
1714
1715
1716def test_powershell_import_module_with_name_param():

Callers

nothing calls this directly

Calls 1

extract_powershellFunction · 0.90

Tested by

no test coverage detected