MCPcopy
hub / github.com/stretchr/testify / main

Function main

_codegen/main.go:37–53  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

35)
36
37func main() {
38 flag.Parse()
39
40 scope, docs, err := parsePackageSource(*pkg)
41 if err != nil {
42 log.Fatal(err)
43 }
44
45 importer, funcs, err := analyzeCode(scope, docs)
46 if err != nil {
47 log.Fatal(err)
48 }
49
50 if err := generateCode(importer, funcs); err != nil {
51 log.Fatal(err)
52 }
53}
54
55func generateCode(importer imports.Importer, funcs []testFunc) error {
56 buff := bytes.NewBuffer(nil)

Callers

nothing calls this directly

Calls 3

parsePackageSourceFunction · 0.85
analyzeCodeFunction · 0.85
generateCodeFunction · 0.85

Tested by

no test coverage detected