Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/modelcontextprotocol/servers
/ lib.test.ts
File
lib.test.ts
src/filesystem/__tests__/lib.test.ts:None–None ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
import
{ describe, it, expect, beforeEach, afterEach, vi } from
'vitest'
;
2
import
fs from
'fs/promises'
;
3
import
path from
'path'
;
4
import
os from
'os'
;
Callers
nothing calls this directly
Calls
12
setAllowedDirectories
Function · 0.85
formatSize
Function · 0.85
normalizeLineEndings
Function · 0.85
createUnifiedDiff
Function · 0.85
validatePath
Function · 0.85
getFileStats
Function · 0.85
readFileContent
Function · 0.85
writeFileContent
Function · 0.85
searchFilesWithValidation
Function · 0.85
applyFileEdits
Function · 0.85
tailFile
Function · 0.85
headFile
Function · 0.85
Tested by
no test coverage detected