示例#1
0
文件: graphstore.go 项目: jwatt/kythe
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)
}
示例#2
0
文件: graphstore.go 项目: jwatt/kythe
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
}