github.com/yankunsam/loki/v2@v2.6.3-0.20220817130409-389df5235c27/pkg/util/yolo_test.go (about)

     1  package util
     2  
     3  import (
     4  	"testing"
     5  
     6  	"github.com/stretchr/testify/require"
     7  )
     8  
     9  func TestYoloBuf(t *testing.T) {
    10  	s := YoloBuf("hello world")
    11  
    12  	require.Equal(t, []byte("hello world"), s)
    13  }