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

rokucommunity / brighterscript / #14176

10 Apr 2025 04:25PM UTC coverage: 87.117% (-2.0%) from 89.104%
#14176

push

web-flow
Merge 2bd224618 into 2b6cc17a0

13313 of 16151 branches covered (82.43%)

Branch coverage included in aggregate %.

7993 of 8671 new or added lines in 102 files covered. (92.18%)

84 existing lines in 22 files now uncovered.

14385 of 15643 relevant lines covered (91.96%)

19746.54 hits per line

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

95.24
/src/types/DoubleType.ts
1
import { isDoubleTypeLike, isDynamicType, isNumberType, isObjectType } from '../astUtils/reflection';
1✔
2
import { BscType } from './BscType';
1✔
3
import { BscTypeKind } from './BscTypeKind';
1✔
4
import { isEnumTypeCompatible, isNativeInterfaceCompatibleNumber, isUnionTypeCompatible } from './helpers';
1✔
5

6
import { BuiltInInterfaceAdder } from './BuiltInInterfaceAdder';
1✔
7
import type { TypeCompatibilityData } from '../interfaces';
8

9
export class DoubleType extends BscType {
1✔
10
    public readonly kind = BscTypeKind.DoubleType;
12✔
11

12
    public static instance = new DoubleType();
1✔
13

14
    public isBuiltIn = true;
12✔
15

16
    public isTypeCompatible(targetType: BscType, data?: TypeCompatibilityData) {
17
        return (
12✔
18
            isDynamicType(targetType) ||
40✔
19
            isObjectType(targetType) ||
20
            isNumberType(targetType) ||
21
            isUnionTypeCompatible(this, targetType, data) ||
22
            isEnumTypeCompatible(this, targetType, data) ||
23
            isNativeInterfaceCompatibleNumber(this, targetType, data)
24
        );
25
    }
26
    public toString() {
27
        return 'double';
33✔
28
    }
29

30
    public toTypeString(): string {
UNCOV
31
        return this.toString();
×
32
    }
33

34
    public isEqual(targetType: BscType): boolean {
35
        return isDoubleTypeLike(targetType);
14✔
36
    }
37

38
    readonly binaryOpPriorityLevel = 1;
12✔
39
}
40

41
BuiltInInterfaceAdder.primitiveTypeInstanceCache.set('double', DoubleType.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