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

rokucommunity / brighterscript / #15046

03 Oct 2022 01:55PM UTC coverage: 87.532% (-0.3%) from 87.808%
#15046

push

TwitchBronBron
0.59.0

5452 of 6706 branches covered (81.3%)

Branch coverage included in aggregate %.

8259 of 8958 relevant lines covered (92.2%)

1521.92 hits per line

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

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

3
export class DynamicType implements BscType {
1✔
4
    constructor(
5
        public typeText?: string
516✔
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
     * @param targetType
18
     */
19
    public isConvertibleTo(targetType: BscType) {
20
        //everything can be dynamic, so as long as a type is provided, this is true
21
        return !!targetType;
×
22
    }
23

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

28
    public toTypeString(): string {
29
        return this.toString();
8✔
30
    }
31
}
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