@@ -155,13 +155,13 @@ func TestCanWriteBinary(t *testing.T) {
155155
156156func TestFormatReleaseNotes (t * testing.T ) {
157157 t .Run ("empty body" , func (t * testing.T ) {
158- assert .Equal (t , "" , formatReleaseNotes ("" , 15 ))
159- assert .Equal (t , "" , formatReleaseNotes (" \n \n " , 15 ))
158+ assert .Equal (t , "" , FormatReleaseNotes ("" , 15 ))
159+ assert .Equal (t , "" , FormatReleaseNotes (" \n \n " , 15 ))
160160 })
161161
162162 t .Run ("short body under limit" , func (t * testing.T ) {
163163 body := "- Fixed bug in exercise reset\n - Added module skipping"
164- result := formatReleaseNotes (body , 15 )
164+ result := FormatReleaseNotes (body , 15 )
165165 assert .Contains (t , result , "Fixed bug in exercise reset" )
166166 assert .Contains (t , result , "Added module skipping" )
167167 assert .NotContains (t , result , "see full release notes" )
@@ -173,37 +173,37 @@ func TestFormatReleaseNotes(t *testing.T) {
173173 lines = append (lines , "- Change number " + string (rune ('A' + i )))
174174 }
175175 body := strings .Join (lines , "\n " )
176- result := formatReleaseNotes (body , 5 )
176+ result := FormatReleaseNotes (body , 5 )
177177 assert .Contains (t , result , "Change number A" )
178178 assert .Contains (t , result , "see full release notes" )
179179 assert .NotContains (t , result , "Change number F" )
180180 })
181181
182182 t .Run ("strips markdown headers" , func (t * testing.T ) {
183183 body := "## What's Changed\n - Bug fix"
184- result := formatReleaseNotes (body , 15 )
184+ result := FormatReleaseNotes (body , 15 )
185185 assert .Contains (t , result , "What's Changed" )
186186 assert .NotContains (t , result , "##" )
187187 })
188188
189189 t .Run ("strips bold markers" , func (t * testing.T ) {
190190 body := "**Important**: This is a breaking change"
191- result := formatReleaseNotes (body , 15 )
191+ result := FormatReleaseNotes (body , 15 )
192192 assert .Contains (t , result , "Important" )
193193 assert .NotContains (t , result , "**" )
194194 })
195195
196196 t .Run ("strips markdown links" , func (t * testing.T ) {
197197 body := "See [the docs](https://example.com) for details"
198- result := formatReleaseNotes (body , 15 )
198+ result := FormatReleaseNotes (body , 15 )
199199 assert .Contains (t , result , "the docs" )
200200 assert .NotContains (t , result , "https://example.com" )
201201 assert .NotContains (t , result , "[" )
202202 })
203203
204204 t .Run ("trims leading and trailing blank lines" , func (t * testing.T ) {
205205 body := "\n \n - First line\n - Second line\n \n "
206- result := formatReleaseNotes (body , 15 )
206+ result := FormatReleaseNotes (body , 15 )
207207 assert .Contains (t , result , "First line" )
208208 assert .Contains (t , result , "Second line" )
209209 })
0 commit comments