afero
afero copied to clipboard
mem.File.Read should behave like os.File when calling Read
Currently when you call Read with byte slice longer then number of bytes in fileData.data slice the passed buffer is filled properly but no io.EOF error is returned. This is not how os.File handles this case.