forked from quic-go/quic-go
improve utils tests to 100% coverage
This commit is contained in:
@@ -2,6 +2,7 @@ package utils
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
"io"
|
||||
|
||||
. "github.com/onsi/ginkgo"
|
||||
. "github.com/onsi/gomega"
|
||||
@@ -66,6 +67,11 @@ var _ = Describe("float16", func() {
|
||||
}
|
||||
})
|
||||
|
||||
It("errors on eof", func() {
|
||||
_, err := ReadUfloat16(&bytes.Buffer{})
|
||||
Expect(err).To(MatchError(io.EOF))
|
||||
})
|
||||
|
||||
It("writes", func() {
|
||||
testcases := []struct {
|
||||
decoded uint64
|
||||
|
||||
Reference in New Issue
Block a user