MCPcopy Create free account
hub / github.com/cli/cli / cleanupSuite

Function cleanupSuite

evals/src/core/suite.ts:88–93  ·  view source on GitHub ↗
(
  suite: Suite, journal: Journal, journalPath: string, credentials: CleanupCredentials,
)

Source from the content-addressed store, hash-verified

86
87/** Runs a suite's cleanup, or deletes only its sandbox repository when the suite defines none. */
88export function cleanupSuite(
89 suite: Suite, journal: Journal, journalPath: string, credentials: CleanupCredentials,
90): Promise<void> {
91 if (suite.cleanup) return suite.cleanup(journal, journalPath, credentials);
92 return cleanupSandbox(new GitHub(credentials.fixtureToken, credentials.request), journal, journalPath);
93}
94
95/** Suites by name. */
96export type SuiteRegistry = Readonly<Record<string, Suite>>;

Callers 3

harness.test.tsFile · 0.85
mainFunction · 0.85
resourcesMethod · 0.85

Calls 2

cleanupSandboxFunction · 0.85
cleanupMethod · 0.65

Tested by

no test coverage detected