deno/tests/testdata/coverage/ignore_next_directive.ts

15 lines
329 B
TypeScript

// NOTE: Ensure that source maps are handled correctly by adding a type which
// will be removed during transpilation
type Dummy = {
_: string;
};
export function used(condition: boolean): boolean {
// deno-coverage-ignore
if (condition) return false;
return true;
}
// deno-coverage-ignore
function unused() {}