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

streetsidesoftware / cspell / 12457971703

22 Dec 2024 09:54PM UTC coverage: 93.54% (-0.5%) from 94.057%
12457971703

Pull #6702

github

web-flow
Merge 729f6b53a into 3d16857fe
Pull Request #6702: fix: reduce size when bundled

11604 of 13369 branches covered (86.8%)

15147 of 16193 relevant lines covered (93.54%)

30926.8 hits per line

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

90.91
/packages/cspell-io/src/VirtualFS/CVFileSystem.ts
1
import { VFileSystem, VFileSystemCore, VFindUpPredicate, VFindUpURLOptions } from '../VFileSystem.js';
2
import { findUpFromUrl } from './findUpFromUrl.js';
3

4
export class CVFileSystem implements VFileSystem {
×
5
    #core: VFileSystemCore;
6

7
    readFile: VFileSystem['readFile'];
8
    writeFile: VFileSystem['writeFile'];
9
    stat: VFileSystem['stat'];
10
    readDirectory: VFileSystem['readDirectory'];
11
    getCapabilities: VFileSystem['getCapabilities'];
12

13
    constructor(core: VFileSystemCore) {
14
        this.#core = core;
53✔
15
        this.readFile = this.#core.readFile.bind(this.#core);
53✔
16
        this.writeFile = this.#core.writeFile.bind(this.#core);
53✔
17
        this.stat = this.#core.stat.bind(this.#core);
53✔
18
        this.readDirectory = this.#core.readDirectory.bind(this.#core);
53✔
19
        this.getCapabilities = this.#core.getCapabilities.bind(this.#core);
53✔
20
    }
21

22
    get providerInfo(): VFileSystem['providerInfo'] {
23
        return this.#core.providerInfo;
5✔
24
    }
25

26
    get hasProvider(): VFileSystem['hasProvider'] {
27
        return this.#core.hasProvider;
7✔
28
    }
29

30
    findUp(
31
        name: string | string[] | VFindUpPredicate,
32
        from: URL,
33
        options: VFindUpURLOptions = {},
1✔
34
    ): Promise<URL | undefined> {
35
        const opts = { ...options, fs: this.#core };
1✔
36
        return findUpFromUrl(name, from, opts);
1✔
37
    }
38
}
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