MCPcopy Index your code
hub / github.com/felixge/httpsnoop / MustBuild

Method MustBuild

codegen/main.go:17–25  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

15}
16
17func (b *Build) MustBuild() {
18 prefix := "wrap_generated"
19 if b.Suffix != "" {
20 prefix += "_" + b.Suffix
21 }
22
23 b.Implementation().MustWriteFile(prefix + ".go")
24 b.Tests().MustWriteFile(prefix + "_test.go")
25}
26
27func (b *Build) writeHeader(g *Generator) {
28 if b.Tags != "" {

Callers 1

mainFunction · 0.80

Calls 3

ImplementationMethod · 0.95
TestsMethod · 0.95
MustWriteFileMethod · 0.80

Tested by

no test coverage detected