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

rokucommunity / brighterscript / #13308

22 Nov 2024 02:25PM UTC coverage: 86.801%. Remained the same
#13308

push

web-flow
Merge 332332a1f into 2a6afd921

11833 of 14419 branches covered (82.07%)

Branch coverage included in aggregate %.

191 of 205 new or added lines in 26 files covered. (93.17%)

201 existing lines in 18 files now uncovered.

12868 of 14038 relevant lines covered (91.67%)

32022.22 hits per line

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

83.33
/src/types/InvalidType.ts
1
import { isDynamicType, isInvalidType, isObjectType } from '../astUtils/reflection';
1✔
2
import { BscType } from './BscType';
1✔
3
import { BscTypeKind } from './BscTypeKind';
1✔
4
import { isUnionTypeCompatible } from './helpers';
1✔
5
import { BuiltInInterfaceAdder } from './BuiltInInterfaceAdder';
1✔
6

7
export class InvalidType extends BscType {
1✔
8
    constructor(
9
        public typeText?: string
7✔
10
    ) {
11
        super();
7✔
12
    }
13

14
    public readonly kind = BscTypeKind.InvalidType;
7✔
15

16
    public static instance = new InvalidType('invalid');
1✔
17

18
    public isBuiltIn = true;
7✔
19

20
    public isTypeCompatible(targetType: BscType) {
21
        return (
2✔
22
            isInvalidType(targetType) ||
3!
23
            isDynamicType(targetType) ||
24
            isObjectType(targetType) ||
25
            isUnionTypeCompatible(this, targetType)
26
        );
27
    }
28

29
    public toString() {
30
        return this.typeText ?? 'invalid';
47!
31
    }
32

33
    public toTypeString(): string {
UNCOV
34
        return this.toString();
×
35
    }
36

37
    isEqual(targetType: BscType): boolean {
38
        return isInvalidType(targetType);
2✔
39
    }
40
}
41

42
BuiltInInterfaceAdder.primitiveTypeInstanceCache.set('invalid', InvalidType.instance);
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