MCPcopy
hub / github.com/dosco/graphjin / closeTestService

Function closeTestService

serv/codesql_test.go:817–828  ·  view source on GitHub ↗
(s *graphjinService)

Source from the content-addressed store, hash-verified

815}
816
817func closeTestService(s *graphjinService) {
818 if s.gj != nil {
819 s.gj.Close()
820 }
821 closed := s.closeManagedDBs(nil)
822 for name, db := range s.dbs {
823 if _, ok := closed[name]; ok {
824 continue
825 }
826 db.Close() //nolint:errcheck
827 }
828}

Calls 2

closeManagedDBsMethod · 0.80
CloseMethod · 0.65

Tested by

no test coverage detected