• 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

86.67
/boa3/internal/compiler/codegenerator/__init__.py
1
from boa3.internal.model.expression import IExpression
2✔
2
from boa3.internal.model.symbol import ISymbol
2✔
3
from boa3.internal.neo.vm.opcode.Opcode import Opcode
2✔
4
from boa3.internal.neo.vm.type.Integer import Integer
2✔
5

6

7
def get_bytes(instructions: list[tuple[Opcode, bytes]]) -> bytes:
2✔
UNCOV
8
    return b''.join([opcode + arg for opcode, arg in instructions])
×
9

10

11
def get_bytes_count(instructions: list[tuple[Opcode, bytes]]) -> int:
2✔
12
    return sum([len(opcode) + len(arg) for opcode, arg in instructions])
2✔
13

14

15
def get_storage_key_for_variable(symbol: ISymbol) -> bytes:
2✔
16
    if isinstance(symbol, IExpression):
2✔
17
        symbol_obj = symbol.origin
2✔
18
    else:
UNCOV
19
        symbol_obj = symbol
×
20

21
    origin_hash = Integer(hash(symbol_obj)).to_byte_array()
2✔
22
    symbol_hash = Integer(hash(symbol)).to_byte_array()
2✔
23
    return Integer(hash(origin_hash + symbol_hash)).to_byte_array()
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