All files / ollama-view/src utils.ts

62.5% Statements 5/8
100% Branches 0/0
0% Functions 0/1
62.5% Lines 5/8

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 91x 1x 1x 1x 1x        
/**
 * Utility to enforce exhaustiveness checks in switch statements at compile time.
 * If you see a compilation error here, it means you missed a case in a switch
 * statement handling a discriminated union.
 */
export function assertNever(x: never): never {
    throw new Error(`Unexpected object: ${x}`);
}