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

Function registerFixtureRepositoryCleanup

acceptance/acceptance_test.go:628–638  ·  view source on GitHub ↗
(t *testing.T, skip bool, fixtureRepositories *fixtureRepositoryManager)

Source from the content-addressed store, hash-verified

626}
627
628func registerFixtureRepositoryCleanup(t *testing.T, skip bool, fixtureRepositories *fixtureRepositoryManager) {
629 t.Helper()
630 if skip {
631 return
632 }
633 t.Cleanup(func() {
634 if err := fixtureRepositories.cleanup(); err != nil {
635 t.Errorf("cleaning up fixture repositories: %v", err)
636 }
637 })
638}
639
640func validateAcceptanceScripts(t *testing.T, tsEnv testScriptEnv, groups []string) {
641 t.Helper()

Callers 2

TestAcceptanceFunction · 0.85

Calls 3

cleanupMethod · 0.80
HelperMethod · 0.65
ErrorfMethod · 0.65

Tested by

no test coverage detected