test: expand unit coverage
This commit is contained in:
1 parent
3e9e76df2c
commit
8633246eff
159 files changed
+25552
-972
No files matched your search
@@ -71,10 +71,7 @@ func (r *Reader) Read() ([]byte, error) {
|
||||
if errors.Is(err, io.EOF) && len(line) == 0 {
|
||||
return nil, io.EOF
|
||||
}
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return nil, nil // unreachable
|
||||
return nil, err
|
||||
}
|
||||
|
||||
// ReadJSON decodes the next frame into dst. dst must be a non-nil pointer.
|
||||
|
||||
Reference in new issue
Block a user