• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

rjfarmer / gfModParser / 13875355623

15 Mar 2025 06:06PM UTC coverage: 77.114% (-4.8%) from 81.897%
13875355623

push

github

rjfarmer
Finish of properties

59 of 135 new or added lines in 9 files covered. (43.7%)

529 of 686 relevant lines covered (77.11%)

0.77 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

86.49
/gfModParser/modules/procedures.py
1
# SPDX-License-Identifier: GPL-2.0+
2

3
from .. import utils
1✔
4

5

6
class typebound_proc:
1✔
7
    def __init__(self, proc, *, version):
1✔
8
        self._proc = proc
1✔
9
        self.version = version
1✔
10

11
    @property
1✔
12
    def access(self):
1✔
13
        return self._proc[0]
1✔
14

15
    @property
1✔
16
    def overridable(self):
1✔
17
        return self._proc[1]
1✔
18

19
    # Also sho defered here? see mio_typebound_proc
20

21
    @property
1✔
22
    def nopass(self):
1✔
23
        return self._proc[2] == "NOPASS"
1✔
24

25
    @property
1✔
26
    def is_generic(self):
1✔
27
        return self._proc[3]
1✔
28

29
    @property
1✔
30
    def ppc(self):
1✔
31
        return self._proc[4]
1✔
32

33
    @property
1✔
34
    def pass_arg(self):
1✔
35
        # argument name
36
        return utils.string_clean(self._proc[5])
1✔
37

38
    @property
1✔
39
    def pass_arg_num(self):
1✔
40
        return int(self._proc[6])
1✔
41

42
    # # TODO: Handle is_generic
43
    @property
1✔
44
    def proc_ref(self):
1✔
NEW
45
        return int(self._proc[7])
×
46

47

48
class arglist:
1✔
49
    def __init__(self, args, *, version):
1✔
NEW
50
        self._args = args
×
NEW
51
        self.version = version
×
52

53
    def __len__(self):
1✔
NEW
54
        return len(self._args)
×
55

56
    def __iter__(self):
1✔
NEW
57
        return iter(self._args)
×
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc