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

rokucommunity / brighterscript / #13186

15 Oct 2024 11:38AM UTC coverage: 89.043% (+2.2%) from 86.831%
#13186

push

web-flow
Merge 2b9d8bd39 into 1519a87aa

7212 of 8538 branches covered (84.47%)

Branch coverage included in aggregate %.

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

539 existing lines in 53 files now uncovered.

9619 of 10364 relevant lines covered (92.81%)

1781.3 hits per line

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

91.67
/src/types/DynamicType.ts
1
import type { BscType } from './BscType';
2

3
export class DynamicType implements BscType {
1✔
4
    constructor(
5
        public typeText?: string
825✔
6
    ) { }
7

8
    public static readonly instance = new DynamicType();
1✔
9

10
    public isAssignableTo(targetType: BscType) {
11
        //everything can be dynamic, so as long as a type is provided, this is true
12
        return !!targetType;
4✔
13
    }
14

15
    /**
16
     * The dynamic type is convertible to everything.
17
     */
18
    public isConvertibleTo(targetType: BscType) {
19
        //everything can be dynamic, so as long as a type is provided, this is true
UNCOV
20
        return !!targetType;
×
21
    }
22

23
    public toString() {
24
        return this.typeText ?? 'dynamic';
25✔
25
    }
26

27
    public toTypeString(): string {
28
        return this.toString();
18✔
29
    }
30

31
    public clone() {
32
        return new DynamicType(this.typeText);
2✔
33
    }
34
}
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