SectionCode generates and formats the code for the given section.
(t *testing.T, section *SectionTemplate)
| 29 | |
| 30 | // SectionCode generates and formats the code for the given section. |
| 31 | func SectionCode(t *testing.T, section *SectionTemplate) string { |
| 32 | return sectionCodeWithPrefix(t, section, "package foo\n") |
| 33 | } |
| 34 | |
| 35 | // SectionsCode generates and formats the code for the given sections. |
| 36 | func SectionsCode(t *testing.T, sections []*SectionTemplate) string { |