MCPcopy Index your code
hub / github.com/numpy/numpy / f2cmap_f90

Function f2cmap_f90

numpy/f2py/tests/test_f2py2e.py:122–130  ·  view source on GitHub ↗

Generates a single f90 file for testing

(tmpdir_factory)

Source from the content-addressed store, hash-verified

120
121@pytest.fixture(scope="session")
122def f2cmap_f90(tmpdir_factory):
123 """Generates a single f90 file for testing"""
124 fdat = util.getpath("tests", "src", "f2cmap", "isoFortranEnvMap.f90").read_text()
125 f2cmap = util.getpath("tests", "src", "f2cmap", ".f2py_f2cmap").read_text()
126 fn = tmpdir_factory.getbasetemp() / "f2cmap.f90"
127 fmap = tmpdir_factory.getbasetemp() / "mapfile"
128 fn.write_text(fdat, encoding="ascii")
129 fmap.write_text(f2cmap, encoding="ascii")
130 return fn
131
132#########
133# Tests #

Callers

nothing calls this directly

Calls 1

write_textMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…