Esempio n. 1
0
func randVName(v *spb.VName, size int) {
	v.Signature = testutil.RandStr(size)
	v.Corpus = testutil.RandStr(size)
	v.Root = testutil.RandStr(size)
	v.Path = testutil.RandStr(size)
	v.Language = testutil.RandStr(size)
}
Esempio n. 2
0
func randUpdate(u *spb.WriteRequest_Update, size int) {
	u.Target = &spb.VName{}
	randVName(u.GetTarget(), size)
	u.EdgeKind = testutil.RandStr(2)
	u.FactName = testutil.RandStr(size)
	u.FactValue = factValue
}