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

rokucommunity / brighterscript / #12717

14 Jun 2024 08:20PM UTC coverage: 85.629% (-2.3%) from 87.936%
#12717

push

web-flow
Merge 94311dc0a into 42db50190

10808 of 13500 branches covered (80.06%)

Branch coverage included in aggregate %.

6557 of 7163 new or added lines in 96 files covered. (91.54%)

83 existing lines in 17 files now uncovered.

12270 of 13451 relevant lines covered (91.22%)

26531.66 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,525✔
9
        super(name);
1,525✔
10
    }
11

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

14
    public toString() {
15
        return this.name;
11,397✔
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,957✔
25
        return super.getMemberType(name, { ...options, fullName: fullName, tableProvider: () => this.memberTable });
9,957✔
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

© 2026 Coveralls, Inc