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

rokucommunity / brighterscript / #13319

25 Nov 2024 02:52PM UTC coverage: 86.872%. Remained the same
#13319

push

web-flow
Merge d9b225566 into 2a6afd921

11934 of 14527 branches covered (82.15%)

Branch coverage included in aggregate %.

300 of 316 new or added lines in 31 files covered. (94.94%)

240 existing lines in 20 files now uncovered.

12960 of 14129 relevant lines covered (91.73%)

32480.01 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