MCPcopy Index your code
hub / github.com/code-pushup/cli / answerBoolean

Function answerBoolean

packages/utils/src/lib/plugin-answers.ts:38–43  ·  view source on GitHub ↗
(
  answers: Record<string, PluginAnswer>,
  key: string,
)

Source from the content-addressed store, hash-verified

36
37/** Extracts a boolean from a plugin answer, defaulting to `true`. */
38export function answerBoolean(
39 answers: Record<string, PluginAnswer>,
40 key: string,
41): boolean {
42 return answers[key] !== false;
43}

Callers 6

parseAnswersFunction · 0.90
parseAnswersFunction · 0.90
parseAnswersFunction · 0.90
parseAnswersFunction · 0.90
parseAnswersFunction · 0.90
parseAnswersFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected