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

CityOfZion / neo3-boa / 0aff654d-b027-49a1-9d97-558d9a2a52ff

05 Mar 2024 04:57PM UTC coverage: 91.985% (-0.1%) from 92.106%
0aff654d-b027-49a1-9d97-558d9a2a52ff

push

circleci

web-flow
Merge pull request #1215 from CityOfZion/CU-86drpndkk

CU-86drpndkk - Refactor test_interop/test_blockchain.py to use BoaTestConstructor

1 of 1 new or added line in 1 file covered. (100.0%)

658 existing lines in 143 files now uncovered.

20635 of 22433 relevant lines covered (91.99%)

1.84 hits per line

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

89.47
/boa3/internal/model/type/classes/contractinterfaceclass.py
1
from boa3.internal.model.callable import Callable
2✔
2
from boa3.internal.model.type.classes.classtype import ClassType
2✔
3
from boa3.internal.model.type.classes.contractinterfacehash import ContractHashProperty
2✔
4
from boa3.internal.model.type.classes.userclass import UserClass
2✔
5
from boa3.internal.neo3.core.types import UInt160
2✔
6

7

8
class ContractInterfaceClass(UserClass):
2✔
9
    def __init__(self, identifier: str, contract_hash: UInt160, decorators: list[Callable] = None,
2✔
10
                 bases: list[ClassType] = None):
11
        from boa3.internal.model.builtin.builtin import Builtin, ContractDecorator
2✔
12

13
        if not isinstance(decorators, list):
2✔
UNCOV
14
            decorators = [Builtin.ContractInterface]
×
15
        elif not any(isinstance(decorator, ContractDecorator) for decorator in decorators):
2✔
16
            decorators.append(Builtin.ContractInterface)
×
17

18
        super().__init__(identifier, decorators, bases)
2✔
19
        self.contract_hash = contract_hash
2✔
20

21
        contract_hash_property = ContractHashProperty(f'-{identifier}_hash', contract_hash.to_array())
2✔
22
        self.include_property('hash', contract_hash_property)
2✔
23

24
    @property
2✔
25
    def is_interface(self) -> bool:
2✔
26
        return True
2✔
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