MCPcopy Create free account
hub / github.com/TestSprite/testsprite-cli / runGet

Function runGet

src/commands/test.ts:3155–3162  ·  view source on GitHub ↗
(opts: GetOptions, deps: TestDeps = {})

Source from the content-addressed store, hash-verified

3153}
3154
3155export async function runGet(opts: GetOptions, deps: TestDeps = {}): Promise<CliTest> {
3156 const out = makeOutput(opts.output, deps);
3157 const client = makeClient(opts, deps);
3158
3159 const test = await client.get<CliTest>(`/tests/${encodeURIComponent(opts.testId)}`);
3160 out.print(test, data => renderTestText(data as CliTest));
3161 return test;
3162}
3163
3164interface CodeGetOptions extends CommonOptions {
3165 testId: string;

Callers 3

test.test.tsFile · 0.70
createTestCommandFunction · 0.70
project.test.tsFile · 0.70

Calls 4

renderTestTextFunction · 0.85
printMethod · 0.80
makeOutputFunction · 0.70
makeClientFunction · 0.70

Tested by

no test coverage detected