MCPcopy Create free account
hub / github.com/Dart-Code/Dart-Code / isTestFolder

Function isTestFolder

src/extension/utils.ts:117–123  ·  view source on GitHub ↗
(path: string | undefined)

Source from the content-addressed store, hash-verified

115}
116
117export function isTestFolder(path: string | undefined): boolean {
118 return !!path
119 && (
120 isInsideFolderNamed(path, "test")
121 || isInsideFolderNamed(path, "integration_test")
122 ) && existsAndIsDirectorySync(path);
123}
124
125export function projectCanUsePackageTest(folder: string, config: WorkspaceConfig): boolean {
126 // Handle explicit flags.

Calls 2

existsAndIsDirectorySyncFunction · 0.90
isInsideFolderNamedFunction · 0.85

Tested by

no test coverage detected