MCPcopy
hub / github.com/x-motemen/gore / Clear

Method Clear

session.go:688–693  ·  view source on GitHub ↗

Clear the temporary directory.

()

Source from the content-addressed store, hash-verified

686
687// Clear the temporary directory.
688func (s *Session) Clear() error {
689 if s.completer != nil {
690 _ = s.completer.close()
691 }
692 return os.RemoveAll(s.tempDir)
693}

Callers 15

TestSession_completeWordFunction · 0.95
TestAction_TypeFunction · 0.95
TestAction_DocFunction · 0.95
TestAction_ImportFunction · 0.95
TestAction_ClearFunction · 0.95
TestAction_HelpFunction · 0.95
TestAction_QuitFunction · 0.95
TestSessionEval_importFunction · 0.95

Calls 1

closeMethod · 0.80

Tested by 15

TestSession_completeWordFunction · 0.76
TestAction_TypeFunction · 0.76
TestAction_DocFunction · 0.76
TestAction_ImportFunction · 0.76
TestAction_ClearFunction · 0.76
TestAction_HelpFunction · 0.76
TestAction_QuitFunction · 0.76
TestSessionEval_importFunction · 0.76