MCPcopy Index your code
hub / github.com/dgraph-io/dgraph / generateProjects

Function generateProjects

query/vector/vector_graphql_test.go:34–46  ·  view source on GitHub ↗
(count int)

Source from the content-addressed store, hash-verified

32)
33
34func generateProjects(count int) []ProjectInput {
35 var projects []ProjectInput
36 for i := 0; i < count; i++ {
37 title := generateUniqueRandomTitle(projects)
38 titleV := generateRandomTitleV(5) // Assuming size is fixed at 5
39 project := ProjectInput{
40 Title: title,
41 TitleV: titleV,
42 }
43 projects = append(projects, project)
44 }
45 return projects
46}
47
48func isTitleExists(title string, existingTitles []ProjectInput) bool {
49 for _, project := range existingTitles {

Callers 1

Calls 2

generateRandomTitleVFunction · 0.85

Tested by

no test coverage detected