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

rokucommunity / brighterscript / #13978

10 Mar 2025 01:00PM UTC coverage: 86.759% (-2.4%) from 89.113%
#13978

push

web-flow
Merge 96004e807 into 700183e7d

12688 of 15459 branches covered (82.08%)

Branch coverage included in aggregate %.

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

924 existing lines in 53 files now uncovered.

13614 of 14857 relevant lines covered (91.63%)

19945.24 hits per line

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

95.24
/src/types/FloatType.ts
1
import { isDynamicType, isFloatTypeLike, 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
import { BuiltInInterfaceAdder } from './BuiltInInterfaceAdder';
1✔
6
import type { TypeCompatibilityData } from '../interfaces';
7

8
export class FloatType extends BscType {
1✔
9

10
    public readonly kind = BscTypeKind.FloatType;
5✔
11

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

14
    public isBuiltIn = true;
5✔
15

16
    public isTypeCompatible(targetType: BscType, data?: TypeCompatibilityData) {
17
        return (
626✔
18
            isDynamicType(targetType) ||
1,940✔
19
            isObjectType(targetType) ||
20
            isNumberType(targetType) ||
21
            isUnionTypeCompatible(this, targetType, data) ||
22
            isEnumTypeCompatible(this, targetType, data) ||
23
            isNativeInterfaceCompatibleNumber(this, targetType, data)
24
        );
25

26
    }
27

28
    public toString() {
29
        return 'float';
2,652✔
30
    }
31

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

36
    public isEqual(targetType: BscType): boolean {
37
        return isFloatTypeLike(targetType);
1,140✔
38
    }
39

40
    readonly binaryOpPriorityLevel = 2;
5✔
41
}
42

43
BuiltInInterfaceAdder.primitiveTypeInstanceCache.set('float', FloatType.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