(b *testing.B, metaInfo *testutil.AuthMeta)
| 480 | type Owners []Owner |
| 481 | |
| 482 | func (o Owners) add(b *testing.B, metaInfo *testutil.AuthMeta) { |
| 483 | getParams := &common.GraphQLParams{ |
| 484 | Headers: getJWT(b, metaInfo), |
| 485 | Query: ` |
| 486 | mutation addOwner($owners: [AddOwnerInput!]!) { |
| 487 | addOwner(input: $owners) { |
| 488 | numUids |
| 489 | } |
| 490 | } |
| 491 | `, |
| 492 | Variables: map[string]interface{}{"owners": o}, |
| 493 | } |
| 494 | gqlResponse := getParams.ExecuteAsPost(b, graphqlURL) |
| 495 | require.Nil(b, gqlResponse.Errors) |
| 496 | } |
| 497 | |
| 498 | func BenchmarkMutation(b *testing.B) { |
| 499 | schemaFile := "schema_auth.graphql" |
no test coverage detected