MCPcopy
hub / github.com/chartbrew/chartbrew / planFixture

Function planFixture

server/tests/unit/sourceAiHarness.test.js:135–140  ·  view source on GitHub ↗
(fixture)

Source from the content-addressed store, hash-verified

133}
134
135async function planFixture(fixture) {
136 if (fixture.setup) await fixture.setup();
137 const source = getSourceById(fixture.sourceId);
138 const plan = await source.backend.ai.planDataset(fixture.payload);
139 return { source, plan };
140}
141
142async function validateFixturePlan({ source, sourceId, payload, plan }) {
143 if (["googleAnalytics", "jira", "stripeOfficial"].includes(sourceId)) {

Callers 1

Calls 1

getSourceByIdFunction · 0.85

Tested by

no test coverage detected