MCPcopy
hub / github.com/compiler-explorer/compiler-explorer / removeFileProtocol

Function removeFileProtocol

lib/assert.ts:45–50  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

43
44// Explicitly export for testing purposes - not part of the public API
45export function removeFileProtocol(path: string) {
46 if (path.startsWith(filePrefix)) {
47 return path.slice(filePrefix.length);
48 }
49 return path;
50}
51
52// Explicitly export for testing purposes - not part of the public API
53export function check_path(parent: string, directory: string) {

Callers 2

get_diagnosticFunction · 0.85
assert-tests.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected