MCPcopy Create free account
hub / github.com/goadesign/goa / sectionCode

Function sectionCode

grpc/codegen/testing.go:25–34  ·  view source on GitHub ↗
(t *testing.T, section ...*codegen.SectionTemplate)

Source from the content-addressed store, hash-verified

23}
24
25func sectionCode(t *testing.T, section ...*codegen.SectionTemplate) string {
26 t.Helper()
27 var code bytes.Buffer
28 for _, s := range section {
29 if err := s.Write(&code); err != nil {
30 t.Fatal(err)
31 }
32 }
33 return code.String()
34}

Callers 3

TestProtoFilesFunction · 0.85
TestMessageDefSectionFunction · 0.85

Calls 2

StringMethod · 0.65
WriteMethod · 0.45

Tested by 3

TestProtoFilesFunction · 0.68
TestMessageDefSectionFunction · 0.68