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

Function test_interface_extends_same_file

tests/test_ts_inheritance.py:33–38  ·  view source on GitHub ↗
(tmp_path)

Source from the content-addressed store, hash-verified

31
32
33def test_interface_extends_same_file(tmp_path):
34 f = _write(tmp_path / "src" / "a.ts",
35 "export interface Base { x: number; }\n"
36 "export interface Derived extends Base { y: number; }\n")
37 result = extract([f], cache_root=tmp_path)
38 assert _has_inherits(result, "src/a.ts", "Derived", "src/a.ts", "Base")
39
40
41def test_interface_extends_multiple_same_file(tmp_path):

Callers

nothing calls this directly

Calls 3

extractFunction · 0.90
_has_inheritsFunction · 0.85
_writeFunction · 0.70

Tested by

no test coverage detected