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

streetsidesoftware / cspell / 16335422841

17 Jul 2025 03:23AM UTC coverage: 92.436% (+0.01%) from 92.422%
16335422841

push

github

web-flow
ci: Workflow Bot -- Update ALL Dependencies (main) (#7630)

13111 of 15502 branches covered (84.58%)

16095 of 17412 relevant lines covered (92.44%)

29614.18 hits per line

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

83.33
/packages/cspell/src/util/cache/fileEntryCache.ts
1
import { mkdirSync } from 'node:fs';
2
import * as path from 'node:path';
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 absPathToCache = path.resolve(pathToCache);
41✔
15
    const relDir = path.dirname(absPathToCache);
41✔
16
    mkdirSync(relDir, { recursive: true });
41✔
17
    return fec.createFromFile(absPathToCache, useCheckSum, useRelative ? relDir : undefined);
41✔
18
}
19

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