Functions | Variables
scenario_generator_helper Namespace Reference

Functions

def _mutate_scenario (scenario_json)
 
def generate_json_run_localhost_scenarios ()
 
def generate_qps_json_driver_scenarios ()
 
def generate_scenarios_bzl (json_scenarios, bzl_filename, bzl_variablename)
 

Variables

string _COPYRIGHT
 
 run_tests_root
 

Function Documentation

◆ _mutate_scenario()

def scenario_generator_helper._mutate_scenario (   scenario_json)
private
Modifies vanilla benchmark scenario config to make it more suitable for running as a unit test.

Definition at line 47 of file scenario_generator_helper.py.

◆ generate_json_run_localhost_scenarios()

def scenario_generator_helper.generate_json_run_localhost_scenarios ( )

Definition at line 77 of file scenario_generator_helper.py.

◆ generate_qps_json_driver_scenarios()

def scenario_generator_helper.generate_qps_json_driver_scenarios ( )

Definition at line 85 of file scenario_generator_helper.py.

◆ generate_scenarios_bzl()

def scenario_generator_helper.generate_scenarios_bzl (   json_scenarios,
  bzl_filename,
  bzl_variablename 
)
Generate .bzl file that defines a variable with JSON scenario configs.

Definition at line 93 of file scenario_generator_helper.py.

Variable Documentation

◆ _COPYRIGHT

string scenario_generator_helper._COPYRIGHT
private
Initial value:
1 = """# Copyright 2021 The gRPC Authors
2 #
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
6 #
7 # http://www.apache.org/licenses/LICENSE-2.0
8 #
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
14 """

Definition at line 31 of file scenario_generator_helper.py.

◆ run_tests_root

scenario_generator_helper.run_tests_root
Initial value:
1 = os.path.abspath(
2  os.path.join(os.path.dirname(sys.argv[0]), '../../../tools/run_tests'))

Definition at line 25 of file scenario_generator_helper.py.



grpc
Author(s):
autogenerated on Fri May 16 2025 03:03:43