github.com/segmentio/parquet-go@v0.0.0-20230712180008-5d42db8f0d47/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/segmentio/parquet-go/encoding/bytestreamsplit"
    10  	"github.com/segmentio/parquet-go/encoding/fuzz"
    11  	"github.com/segmentio/parquet-go/encoding/test"
    12  )
    13  
    14  func FuzzEncodeFloat(f *testing.F) {
    15  	fuzz.EncodeFloat(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  }