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

rokucommunity / brighterscript / #12930

13 Aug 2024 05:02PM UTC coverage: 86.193% (-1.7%) from 87.933%
#12930

push

web-flow
Merge 58ad447a2 into 0e968f1c3

10630 of 13125 branches covered (80.99%)

Branch coverage included in aggregate %.

6675 of 7284 new or added lines in 99 files covered. (91.64%)

84 existing lines in 18 files now uncovered.

12312 of 13492 relevant lines covered (91.25%)

26865.48 hits per line

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

71.43
/src/types/NamespaceType.ts
1
import { isNamespaceType } from '../astUtils/reflection';
1✔
2
import type { GetTypeOptions, TypeCompatibilityData } from '../interfaces';
3
import { BscType } from './BscType';
1✔
4
import { BscTypeKind } from './BscTypeKind';
1✔
5

6
export class NamespaceType extends BscType {
1✔
7

8
    constructor(public name: string) {
1,544✔
9
        super(name);
1,544✔
10
    }
11

12
    public readonly kind = BscTypeKind.NamespaceType;
1,544✔
13

14
    public toString() {
15
        return this.name;
11,412✔
16
    }
17

18
    public isTypeCompatible(targetType: BscType, data?: TypeCompatibilityData) {
NEW
19
        return this.isEqual(targetType);
×
20
    }
21

22

23
    getMemberType(name: string, options: GetTypeOptions) {
24
        const fullName = this.toString() + '.' + name;
9,972✔
25
        return super.getMemberType(name, { ...options, fullName: fullName, tableProvider: () => this.memberTable });
9,972✔
26
    }
27

28
    isEqual(targetType: BscType): boolean {
NEW
29
        return isNamespaceType(targetType) && targetType.name === this.name;
×
30
    }
31

32
}
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

© 2025 Coveralls, Inc