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

CityOfZion / neo3-boa / 858f5658-b835-4f01-86b4-3a69cebd0b86

16 Oct 2023 06:23PM UTC coverage: 91.625% (+0.004%) from 91.621%
858f5658-b835-4f01-86b4-3a69cebd0b86

push

circleci

Mirella de Medeiros
Bump version: 1.0.1 → 1.1.0

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

19988 of 21815 relevant lines covered (91.63%)

0.92 hits per line

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

87.5
/boa3/internal/compiler/codegenerator/__init__.py
1
from typing import List, Tuple
1✔
2

3
from boa3.internal.model.expression import IExpression
1✔
4
from boa3.internal.model.symbol import ISymbol
1✔
5
from boa3.internal.neo.vm.opcode.Opcode import Opcode
1✔
6
from boa3.internal.neo.vm.type.Integer import Integer
1✔
7

8

9
def get_bytes(instructions: List[Tuple[Opcode, bytes]]) -> bytes:
1✔
10
    return b''.join([opcode + arg for opcode, arg in instructions])
×
11

12

13
def get_bytes_count(instructions: List[Tuple[Opcode, bytes]]) -> int:
1✔
14
    return sum([len(opcode) + len(arg) for opcode, arg in instructions])
1✔
15

16

17
def get_storage_key_for_variable(symbol: ISymbol) -> bytes:
1✔
18
    if isinstance(symbol, IExpression):
1✔
19
        symbol_obj = symbol.origin
1✔
20
    else:
21
        symbol_obj = symbol
×
22

23
    origin_hash = Integer(hash(symbol_obj)).to_byte_array()
1✔
24
    symbol_hash = Integer(hash(symbol)).to_byte_array()
1✔
25
    return Integer(hash(origin_hash + symbol_hash)).to_byte_array()
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