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

rokucommunity / brighterscript / #11418

08 Jan 2024 02:59PM UTC coverage: 88.089% (+0.02%) from 88.072%
#11418

push

web-flow
Prevent publishing of empty files (#997)

* Added file exclusion for empty files

* Added unit tests

* address comments

* fix unit tests for windows

* change use of verb from publish to prune and invert logic

* ensure uriAttributeValue is a string

* add test case for empty brs file

* Apply suggestions from code review

---------

Co-authored-by: Bronley Plumb <bronley@gmail.com>

5752 of 7005 branches covered (0.0%)

Branch coverage included in aggregate %.

8610 of 9299 relevant lines covered (92.59%)

1657.91 hits per line

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

46.15
/src/types/InvalidType.ts
1
import type { BscType } from './BscType';
2
import { DynamicType } from './DynamicType';
1✔
3

4
export class InvalidType implements BscType {
1✔
5
    constructor(
6
        public typeText?: string
52✔
7
    ) { }
8

9
    public isAssignableTo(targetType: BscType) {
10
        return (
2✔
11
            targetType instanceof InvalidType ||
3✔
12
            targetType instanceof DynamicType
13
        );
14
    }
15

16
    public isConvertibleTo(targetType: BscType) {
17
        return this.isAssignableTo(targetType);
×
18
    }
19

20
    public toString() {
21
        return this.typeText ?? 'invalid';
×
22
    }
23

24
    public toTypeString(): string {
25
        return this.toString();
×
26
    }
27
}
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