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

iTowns / itowns / 17292947856

28 Aug 2025 10:21AM UTC coverage: 86.774% (-0.2%) from 86.927%
17292947856

Pull #2593

github

web-flow
Merge 3396d4fd1 into 737a8f3de
Pull Request #2593: Refactoring sources

2792 of 3749 branches covered (74.47%)

Branch coverage included in aggregate %.

459 of 531 new or added lines in 18 files covered. (86.44%)

10 existing lines in 5 files now uncovered.

26155 of 29610 relevant lines covered (88.33%)

1094.86 hits per line

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

76.92
/packages/Main/src/Source/URLSource.js
1
import Source from './Source';
1✔
2

1✔
3
class URLSource extends Source {
1✔
4
    constructor(source) {
1✔
5
        super(source);
32✔
6

32✔
7
        if (!source.url) {
32!
NEW
8
            throw new Error('[URLSource]: url is required');
×
NEW
9
        }
×
10

32✔
11
        if (!source.fetcher) {
32!
NEW
12
            throw new Error('[URLSource]: fetcher is required');
×
NEW
13
        }
×
14

32✔
15
        if (!source.parser) {
32!
NEW
16
            throw new Error('[URLSource]: parser is required');
×
NEW
17
        }
×
18

32✔
19
        this.url = source.url;
32✔
20
        this.fetcher = source.fetcher;
32✔
21
        this.parser = source.parser;
32✔
22
        this.networkOptions = source.networkOptions || { crossOrigin: 'anonymous' };
32✔
23
    }
32✔
24

1✔
25
    loadData(extent, out) {
1✔
26
        return this.fetcher(this.urlFromExtent(extent), this.networkOptions)
8✔
27
            .then(file => this.parser(file, { out, in: this, extent }))
8✔
28
            .catch(err => this.handlingError(err));
8✔
29
    }
8✔
30
}
1✔
31

1✔
32
export default URLSource;
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