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

CityOfZion / neo3-boa / e084b44c-1a5f-4649-92cd-d3ed06099181

05 Mar 2024 05:58PM UTC coverage: 92.023% (-0.08%) from 92.107%
e084b44c-1a5f-4649-92cd-d3ed06099181

push

circleci

Mirella de Medeiros
CU-86drpnc9z - Drop support to Python 3.10

20547 of 22328 relevant lines covered (92.02%)

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✔
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:
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