Skip to content

Commit e823f86

Browse files
committed
Improve test coverage
1 parent 629e215 commit e823f86

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

guid_test.go

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -531,7 +531,13 @@ func TestReader_Read(t *testing.T) {
531531
return false
532532
}
533533

534-
for _, bufLen := range []int{0, 1, 8, 256, 511, 511, 511, 511, 512, 513} {
534+
bufLens := []int{}
535+
for i := range 256 {
536+
bufLens = append(bufLens, i)
537+
}
538+
bufLens = append(bufLens, 0, 1, 8, 256, 511, 511, 511, 511, 512, 513)
539+
540+
for _, bufLen := range bufLens {
535541
buf := make([]byte, bufLen)
536542
n, err := Reader.Read(buf)
537543
if err != nil {

0 commit comments

Comments
 (0)