Update "pkg/stripper" coverage to 100% with a smaller buffer size

This commit is contained in:
Tianon Gravi 2017-04-03 11:19:48 -07:00
parent d5b5f75007
commit 273a3770eb
1 changed files with 2 additions and 1 deletions

View File

@ -21,7 +21,8 @@ e: f
comStrip := stripper.NewCommentStripper(r) comStrip := stripper.NewCommentStripper(r)
io.Copy(os.Stdout, comStrip) // using CopyBuffer to force smaller Read sizes (better testing coverage that way)
io.CopyBuffer(os.Stdout, comStrip, make([]byte, 32))
// Output: // Output:
// a: b // a: b