MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / service

Function service

__tests__/go-nested-module.test.ts:35–57  ·  view source on GitHub ↗
(mod: string)

Source from the content-addressed store, hash-verified

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

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected