github.com/rosedblabs/rosedb/v2@v2.3.7-0.20240423093736-a89ea823e5b9/utils/rand_kv_test.go (about)

     1  package utils
     2  
     3  import (
     4  	"github.com/stretchr/testify/assert"
     5  	"testing"
     6  )
     7  
     8  func TestGetTestKey(t *testing.T) {
     9  	for i := 0; i < 10; i++ {
    10  		assert.NotNil(t, string(GetTestKey(i)))
    11  	}
    12  }
    13  
    14  func TestRandomValue(t *testing.T) {
    15  	for i := 0; i < 10; i++ {
    16  		assert.NotNil(t, string(RandomValue(10)))
    17  	}
    18  }