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

apowers313 / roc / 6021090558

30 Aug 2023 05:51AM UTC coverage: 45.149% (-50.2%) from 95.34%
6021090558

push

github

apowers313
interim commit for gym interface

178 of 178 new or added lines in 2 files covered. (100.0%)

349 of 773 relevant lines covered (45.15%)

0.45 hits per line

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

36.36
/roc/component.py
1
from abc import ABC
×
2

3

4
class Component(ABC):
×
5
    """An abstract component class for building pieces of ROC that will talk to each other."""
6

7
    def __init__(self, name: str, type: str):
×
8
        """Component constructor.
9

10
        Args:
11
            name (str): Name of the component. Mostly used for eventing.
12
            type (str): Type of the component. Will be set by the concrete class. Mostly used for \
13
                eventing.
14
        """
15
        self._name = name
1✔
16
        self._type = type
1✔
17

18
    @property
×
19
    def name(self) -> str:
×
20
        """Getter for the name of the component
21

22
        Returns:
23
            str: the name of the component
24

25
        Example:
26
            >>> c = Component("foo", "bar")
27
            >>> print(c.name)
28
            foo
29
        """
30
        return self._name
1✔
31

32
    @property
×
33
    def type(self) -> str:
×
34
        """Getter for the type of the component
35

36
        Returns:
37
            str: the type of the component
38

39
        Example:
40
            >>> c = Component("foo", "bar")
41
            >>> print(c.type)
42
            bar
43
        """
44
        return self._type
1✔
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc