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

iTowns / itowns / 9838883567

08 Jul 2024 11:39AM UTC coverage: 89.735% (-0.006%) from 89.741%
9838883567

push

github

Desplandis
feat: introducing workers for LAS parser

2830 of 3731 branches covered (75.85%)

Branch coverage included in aggregate %.

67 of 77 new or added lines in 2 files covered. (87.01%)

2 existing lines in 1 file now uncovered.

24673 of 26918 relevant lines covered (91.66%)

902.24 hits per line

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

87.5
/src/Worker/LASLoaderWorker.js
1
import { expose, Transfer } from 'threads/worker';
3✔
2
import LASLoader from 'Loader/LASLoader';
3✔
3

3✔
4
const loader = new LASLoader();
3✔
5

3✔
6
function transferable(attributes) {
3✔
7
    return Object.values(attributes)
2✔
8
        .filter(ArrayBuffer.isView)
2✔
9
        .map(a => a.buffer);
3✔
10
}
3✔
11

3✔
12
expose({
3✔
13
    lazPerf(path) {
3✔
14
        loader.lazPerf = path;
3✔
NEW
15
    },
×
NEW
16

×
NEW
17
    async parseChunk(data, options) {
×
NEW
18
        const result = await loader.parseChunk(data, options);
×
19
        return Transfer(result, transferable(result.attributes));
3✔
20
    },
3✔
21

3✔
22
    async parseFile(data, options) {
3✔
23
        const result = await loader.parseFile(data, options);
3✔
24
        return Transfer(result, transferable(result.attributes));
1✔
25
    },
1✔
26
});
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