@@ -6,8 +6,8 @@ import (
"io/ioutil"
"testing"
- "github.com/pierrec/lz4"
- "github.com/pierrec/lz4/internal/lz4block"
+ "github.com/pierrec/lz4/v4"
+ "github.com/pierrec/lz4/v4/internal/lz4block"
)
func BenchmarkCompress(b *testing.B) {
"os"
"strings"
func Example() {
@@ -2,8 +2,9 @@ package lz4
import (
"bytes"
"io"
+
// Fuzz function for the Reader and Writer.
@@ -5,7 +5,7 @@ import (
"math/bits"
"sync"
- "github.com/pierrec/lz4/internal/lz4errors"
+ "github.com/pierrec/lz4/v4/internal/lz4errors"
const (
@@ -8,8 +8,8 @@ import (
type testcase struct {
@@ -7,9 +7,9 @@ import (
- "github.com/pierrec/lz4/internal/xxh32"
+ "github.com/pierrec/lz4/v4/internal/xxh32"
//go:generate go run gen.go
@@ -2,7 +2,7 @@
package lz4stream
-import "github.com/pierrec/lz4/internal/lz4block"
+import "github.com/pierrec/lz4/v4/internal/lz4block"
// DescriptorFlags is defined as follow:
// field bits
@@ -6,7 +6,7 @@ import (
func TestFrameDescriptor(t *testing.T) {
@@ -9,7 +9,7 @@ import (
"log"
"github.com/pierrec/packer"
"golang.org/x/tools/imports"
"hash/fnv"
type test struct {
@@ -11,8 +11,8 @@
package lz4
func _() {
@@ -5,8 +5,8 @@ import (
"reflect"
"runtime"
//go:generate go run golang.org/x/tools/cmd/stringer -type=BlockSize,CompressionLevel -output options_gen.go
@@ -3,8 +3,8 @@ package lz4
- "github.com/pierrec/lz4/internal/lz4stream"
+ "github.com/pierrec/lz4/v4/internal/lz4stream"
var readerStates = []aState{
func TestReader(t *testing.T) {
"fmt"
//go:generate go run golang.org/x/tools/cmd/stringer -type=aState -output state_gen.go
@@ -3,9 +3,9 @@ package lz4
var writerStates = []aState{
@@ -10,8 +10,8 @@ import (
func TestWriter(t *testing.T) {