(
title: string,
type: "line" | "bar",
data: { x: number | string; y: string }[],
labels?: { x: string; y: string },
)
| 208 | .join("\n\n"); |
| 209 | |
| 210 | function plot( |
| 211 | title: string, |
| 212 | type: "line" | "bar", |
| 213 | data: { x: number | string; y: string }[], |
| 214 | labels?: { x: string; y: string }, |
| 215 | ) { |
| 216 | builtinFunctionCalls.push({ |
| 217 | type: "plot", |
| 218 | args: { title, type, data, labels }, |
| 219 | }); |
| 220 | } |
| 221 | // Wrap in an async function and call it to |
| 222 | // const code = ` |
| 223 | const code = `${fnDefinitions} |
nothing calls this directly
no outgoing calls
no test coverage detected