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

Function isTestFileOrFolder

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

Source from the content-addressed store, hash-verified

90}
91
92export function isTestFileOrFolder(path: string | undefined): boolean {
93 return !!path && (isTestFile(path) || isTestFolder(path));
94}
95
96export function isTestFile(file: string): boolean {
97 // To be a test, you must be _test.dart AND inside a test folder (unless allowTestsOutsideTestFolder).

Calls 2

isTestFileFunction · 0.85
isTestFolderFunction · 0.85

Tested by

no test coverage detected