1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-01-10 08:09:06 -05:00
denoland-deno/tests/testdata/coverage/ignore_next_directive.ts

16 lines
339 B
TypeScript
Raw Normal View History

// 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-next
if (condition) return false;
return true;
}
// deno-coverage-ignore-next
function unused() {}