test(zfspv): vendor for ginkgo test code

Signed-off-by: Pawan <pawan@mayadata.io>
This commit is contained in:
Pawan 2019-11-29 21:51:12 +05:30 committed by Kiran Mova
parent d933b47c75
commit c3c5eb1794
305 changed files with 194450 additions and 1812 deletions

View file

@ -0,0 +1,15 @@
package specrunner
import (
"crypto/rand"
"fmt"
)
func randomID() string {
b := make([]byte, 8)
_, err := rand.Read(b)
if err != nil {
return ""
}
return fmt.Sprintf("%x-%x-%x-%x", b[0:2], b[2:4], b[4:6], b[6:8])
}