github.com/vc42/parquet-go@v0.0.0-20240320194221-1a9adb5f23f5/encoding/bytestreamsplit/bytestreamsplit_test.go (about)

     1  //go:build go1.18
     2  // +build go1.18
     3  
     4  package bytestreamsplit_test
     5  
     6  import (
     7  	"testing"
     8  
     9  	"github.com/vc42/parquet-go/encoding/bytestreamsplit"
    10  	"github.com/vc42/parquet-go/encoding/fuzz"
    11  	"github.com/vc42/parquet-go/encoding/test"
    12  )
    13  
    14  func FuzzEncodeFloat(f *testing.F) {
    15  	fuzz.EncodeDouble(f, new(bytestreamsplit.Encoding))
    16  }
    17  
    18  func FuzzEncodeDouble(f *testing.F) {
    19  	fuzz.EncodeDouble(f, new(bytestreamsplit.Encoding))
    20  }
    21  
    22  func TestEncodeFloat(t *testing.T) {
    23  	test.EncodeFloat(t, new(bytestreamsplit.Encoding), 0, 100)
    24  }
    25  
    26  func TestEncodeDouble(t *testing.T) {
    27  	test.EncodeDouble(t, new(bytestreamsplit.Encoding), 0, 100)
    28  }