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

streetsidesoftware / cspell / 16377100492

18 Jul 2025 05:55PM UTC coverage: 92.433% (-0.001%) from 92.434%
16377100492

Pull #7639

github

web-flow
Merge eae71ecf1 into 64931c3c9
Pull Request #7639: fix: Support url based cache entries

13114 of 15508 branches covered (84.56%)

6 of 6 new or added lines in 3 files covered. (100.0%)

14 existing lines in 4 files now uncovered.

16112 of 17431 relevant lines covered (92.43%)

29576.87 hits per line

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

75.0
/packages/cspell/src/util/cache/fileEntryCache.ts
1
import * as path from 'node:path';
2
import { fileURLToPath, pathToFileURL } from 'node:url';
3

4
import type { FileEntryCache } from './file-entry-cache/index.js';
5
import * as fec from './file-entry-cache/index.js';
6

7
export type { FileDescriptor, FileEntryCache } from './file-entry-cache/index.js';
8

9
export function createFromFile(
10
    pathToCache: string,
11
    useCheckSum: boolean,
12
    useRelative: boolean,
13
): Promise<FileEntryCache> {
14
    const cacheFileUrl = pathToFileURL(pathToCache);
41✔
15
    return fec.createFromFile(
41✔
16
        cacheFileUrl,
17
        useCheckSum,
18
        useRelative ? fileURLToPath(new URL('./', cacheFileUrl)) : undefined,
41✔
19
    );
20
}
21

22
export function normalizePath(filePath: string): string {
23
    if (path.sep === '/') return filePath;
3,741!
UNCOV
24
    return filePath.split(path.sep).join('/');
×
25
}
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