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

CityOfZion / neo3-boa / 0f033062-832e-4352-844e-60026154ee10

28 Nov 2023 08:29PM UTC coverage: 92.019% (+0.02%) from 92.002%
0f033062-832e-4352-844e-60026154ee10

push

circleci

web-flow
Merge pull request #1151 from CityOfZion/CU-2ewf14b

CU-2ewf14b - Add support to String Interpolation (f-string)

99 of 109 new or added lines in 10 files covered. (90.83%)

110 existing lines in 4 files now uncovered.

20547 of 22329 relevant lines covered (92.02%)

1.84 hits per line

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

76.19
/boa3/internal/model/builtin/method/strsequencemethod.py
1
from typing import Dict, Any, Optional
2✔
2

3
from boa3.internal.model.builtin.method import IBuiltinMethod
2✔
4
from boa3.internal.model.builtin.method.strmethod import StrMethod
2✔
5
from boa3.internal.model.type.itype import IType
2✔
6
from boa3.internal.model.type.type import Type
2✔
7
from boa3.internal.model.variable import Variable
2✔
8

9

10
class StrSequenceMethod(StrMethod):
2✔
11

12
    def __init__(self, arg_value: Optional[IType] = None):
2✔
13
        if arg_value is None:
2✔
14
            arg_value = Type.sequence
2✔
15

16
        args: Dict[str, Variable] = {
2✔
17
            'object': Variable(arg_value),
18
        }
19

20
        super().__init__(args)
2✔
21

22
    def build(self, value: Any) -> IBuiltinMethod:
2✔
NEW
23
        if 'object' in self.args and self.args['object'].type is not Type.any:
×
NEW
24
            return self
×
25

NEW
26
        if Type.sequence.is_type_of(value):
×
NEW
27
            return StrSequenceMethod(value)
×
28

NEW
29
        return super().build(value)
×
30

31
    def generate_internal_opcodes(self, code_generator):
2✔
32
        from boa3.internal.model.builtin.interop.interop import Interop
2✔
33

34
        code_generator.convert_builtin_method_call(Interop.JsonSerialize, is_internal=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