Documentation ¶
Index ¶
- func CompareEntities(expected, actual interface{})
- func ConvertMapTo(inputMap map[interface{}]interface{}) map[string]interface{}
- func CreateApplicationDatabase(db_config proxima.DatabaseConfig) (*proxima.ProximaDatabase, error)
- func CreateResolvers(db *proxima.ProximaDatabase) (gql.Config, error)
- func GenerateRandomOfType(varType string) (interface{}, error)
- func GenerateRandomSearchQueryText(entityMap map[string]interface{}) (string, error)
- func GenerateRandomStruct(entityStruct map[string]interface{}) (map[string]interface{}, error)
- func LoadDirectives(c gql.Config) gql.Config
- func LoadEntityQueryStrings(queryFileName string) (map[string]interface{}, error)
- func LoadEntityTestCases(applicationVertex *ProximaDataVertex, fileName string, queryFileName string) (map[string]*EntityTestCase, error)
- func RandomString(size int) string
- func RunEntityBenchmarkCase(c *client.Client, b *testing.B, entityTestCase *EntityTestCase)
- func RunEntityBenchmarkCases(c *client.Client, b *testing.B, tests map[string]*EntityTestCase, ...)
- func RunEntityTestCase(c *client.Client, t *testing.T, entityTestCase *EntityTestCase, n int)
- func RunEntityTestCases(c *client.Client, t *testing.T, tests map[string]*EntityTestCase, n int)
- func RunGQLBenchmarks(c *client.Client, b *testing.B, tests []*GQLTest)
- func RunGQLTest(c *client.Client, t *testing.T, test *GQLTest)
- func RunGQLTests(c *client.Client, t *testing.T, tests []*GQLTest)
- func RunTestResolverOperation(c *client.Client, test *GQLTest) *client.Response
- func SetupEntitiesBenchmarks(c *client.Client, entityTestCases map[string]*EntityTestCase, numEntities int)
- func SetupEntityBenchmarks(c *client.Client, entityTestCase *EntityTestCase, numEntities int)
- type EntityTestCase
- type GQLTest
- type ProximaDataVertex
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CompareEntities ¶
func CompareEntities(expected, actual interface{})
func ConvertMapTo ¶
func ConvertMapTo(inputMap map[interface{}]interface{}) map[string]interface{}
func CreateApplicationDatabase ¶
func CreateApplicationDatabase(db_config proxima.DatabaseConfig) (*proxima.ProximaDatabase, error)
func CreateResolvers ¶
func CreateResolvers(db *proxima.ProximaDatabase) (gql.Config, error)
func GenerateRandomOfType ¶
func GenerateRandomStruct ¶
func LoadEntityQueryStrings ¶
func LoadEntityTestCases ¶
func LoadEntityTestCases(applicationVertex *ProximaDataVertex, fileName string, queryFileName string) (map[string]*EntityTestCase, error)
func RandomString ¶
func RunEntityBenchmarkCase ¶
func RunEntityBenchmarkCase(c *client.Client, b *testing.B, entityTestCase *EntityTestCase)
func RunEntityBenchmarkCases ¶
func RunEntityTestCase ¶
func RunEntityTestCases ¶
func RunTestResolverOperation ¶
client response
func SetupEntitiesBenchmarks ¶
func SetupEntitiesBenchmarks(c *client.Client, entityTestCases map[string]*EntityTestCase, numEntities int)
func SetupEntityBenchmarks ¶
func SetupEntityBenchmarks(c *client.Client, entityTestCase *EntityTestCase, numEntities int)
Types ¶
type EntityTestCase ¶
type EntityTestCase struct {
// contains filtered or unexported fields
}
func NewEntityTestCase ¶
func NewEntityTestCase(name string, schema gql.ExecutableSchema, applicationVertex *ProximaDataVertex, entity, entityInput, queryStrings, operations map[string]interface{}) *EntityTestCase
type GQLTest ¶
type GQLTest struct { Context context.Context Schema gql.ExecutableSchema Query string OperationName string Variables map[string]interface{} ExpectedResult interface{} ExpectedErrors gqlerror.List }
func NewGQLTest ¶
type ProximaDataVertex ¶
type ProximaDataVertex struct {
// contains filtered or unexported fields
}
func CreateDataVertex ¶
func CreateDataVertex(config map[string]interface{}, dbConfig proxima.DatabaseConfig) (*ProximaDataVertex, error)
func LoadDataVertex ¶
func LoadDataVertex(configFilePath, dbConfigFilePath string) (*ProximaDataVertex, error)
func (*ProximaDataVertex) StartVertexServer ¶
func (vertex *ProximaDataVertex) StartVertexServer()
Click to show internal directories.
Click to hide internal directories.