MCPcopy Create free account
hub / github.com/denoland/std / handleKind

Function handleKind

assert/unstable_never_test.ts:16–27  ·  view source on GitHub ↗
(kind: Kinds)

Source from the content-addressed store, hash-verified

14 }
15
16 function handleKind(kind: Kinds) {
17 switch (kind) {
18 case "A":
19 doA();
20 break;
21 case "B":
22 doB();
23 break;
24 default:
25 assertNever(kind);
26 }
27 }
28
29 handleKind("A");
30 handleKind("B");

Callers 1

Calls 3

assertNeverFunction · 0.90
doAFunction · 0.85
doBFunction · 0.85

Tested by

no test coverage detected