(mod: string)
| 33 | |
| 34 | // The issue's service, plus a call into a package outside `internal/`. |
| 35 | const service = (mod: string) => `package domain |
| 36 | |
| 37 | import ( |
| 38 | "${mod}/internal/store" |
| 39 | "${mod}/pkg/clock" |
| 40 | ) |
| 41 | |
| 42 | type Service struct { |
| 43 | db *store.Manager |
| 44 | } |
| 45 | |
| 46 | func NewService() *Service { |
| 47 | return &Service{db: store.New()} |
| 48 | } |
| 49 | |
| 50 | func (s *Service) AddItem(name string) error { |
| 51 | return s.db.CreateItem(name) |
| 52 | } |
| 53 | |
| 54 | func Stamp() int { |
| 55 | return clock.Now() |
| 56 | } |
| 57 | `; |
| 58 | |
| 59 | const projects: Array<{ root: string; cg: CodeGraph }> = []; |
| 60 |
no outgoing calls
no test coverage detected