Update "pkg/stripper" coverage to 100% with a smaller buffer size
This commit is contained in:
parent
d5b5f75007
commit
273a3770eb
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue