project_name
string
class_name
string
class_modifiers
string
class_implements
int64
class_extends
int64
function_name
string
function_body
string
cyclomatic_complexity
int64
NLOC
int64
num_parameter
int64
num_token
int64
num_variable
int64
start_line
int64
end_line
int64
function_index
int64
function_params
string
function_variable
string
function_return_type
string
function_body_line_type
string
function_num_functions
int64
function_num_lines
int64
outgoing_function_count
int64
outgoing_function_names
string
incoming_function_count
int64
incoming_function_names
string
lexical_representation
string
aws-deadline_deadline-cloud
public
public
0
0
test_parse_yaml_or_json_content_success
def test_parse_yaml_or_json_content_success(content, type, expected_result):"""Test success cases of parsing YAML and JSON"""result = parse_yaml_or_json_content(content, type, "", "")assert result == expected_result
1
3
3
26
1
184
187
184
content,type,expected_result
['result']
None
{"Assign": 1, "Expr": 1}
2
4
2
["parse_yaml_or_json_content", "pytest.mark.parametrize"]
0
[]
The function (test_parse_yaml_or_json_content_success) defined within the public class called public.The function start at line 184 and ends at 187. It contains 3 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [184.0] and does not return any value. It declares 2.0 functions...
aws-deadline_deadline-cloud
public
public
0
0
test_parse_yaml_or_json_content_fail
def test_parse_yaml_or_json_content_fail(content, type):"""Test success cases of parsing YAML and JSON"""with pytest.raises(DeadlineOperationError):parse_yaml_or_json_content(content, type, "", "")
1
3
2
26
0
191
194
191
content,type
[]
None
{"Expr": 2, "With": 1}
3
4
3
["pytest.raises", "parse_yaml_or_json_content", "pytest.mark.parametrize"]
0
[]
The function (test_parse_yaml_or_json_content_fail) defined within the public class called public.The function start at line 191 and ends at 194. It contains 3 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [191.0] and does not return any value. It declares 3.0 functions, a...
aws-deadline_deadline-cloud
public
public
0
0
test_validate_directory_symlink_containment_success
def test_validate_directory_symlink_containment_success(tmpdir):"""Test success cases for processing the job bundle from a given directory"""test_root = tmpdir.mkdir("root_dir")root_file = test_root.join("root_file.txt")root_file.write("test data")target_dir = test_root.mkdir("target_dir")target_file = target_dir.join(...
1
10
1
87
4
201
214
201
tmpdir
['target_dir', 'target_file', 'root_file', 'test_root']
None
{"Assign": 4, "Expr": 6}
14
14
14
["tmpdir.mkdir", "test_root.join", "root_file.write", "test_root.mkdir", "target_dir.join", "target_file.write", "os.symlink", "test_root.join", "os.symlink", "test_root.join", "validate_directory_symlink_containment", "str", "pytest.mark.skipif", "is_windows_non_admin"]
0
[]
The function (test_validate_directory_symlink_containment_success) defined within the public class called public.The function start at line 201 and ends at 214. It contains 10 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declares 14.0...
aws-deadline_deadline-cloud
public
public
0
0
test_validate_directory_symlink_containment_fail
def test_validate_directory_symlink_containment_fail(tmpdir):"""Test failure cases for processing the job bundle from a given directory"""test_root = tmpdir.mkdir("root_dir")root_file = test_root.join("root_file.txt")root_file.write("test data")target_dir = tmpdir.mkdir("target_dir")target_file = target_dir.join("targe...
1
15
1
124
5
221
239
221
tmpdir
['target_dir', 'symlink_dir', 'target_file', 'root_file', 'test_root']
None
{"Assign": 5, "Expr": 8, "With": 2}
19
19
19
["tmpdir.mkdir", "test_root.join", "root_file.write", "tmpdir.mkdir", "target_dir.join", "target_file.write", "test_root.join", "os.symlink", "test_root.join", "pytest.raises", "validate_directory_symlink_containment", "str", "os.unlink", "os.symlink", "test_root.join", "pytest.raises", "validate_directory_symlink_cont...
0
[]
The function (test_validate_directory_symlink_containment_fail) defined within the public class called public.The function start at line 221 and ends at 239. It contains 15 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declares 19.0 fu...
aws-deadline_deadline-cloud
public
public
0
0
test_create_job_bundle_dir
def test_create_job_bundle_dir(fresh_deadline_config):# Use a temporary directory for the job historywith tempfile.TemporaryDirectory() as tmpdir:config.set_setting("settings.job_history_dir", tmpdir)EXPECTED_DIRS = ["2023-01-15-01-cli_job-Test CLI Job Name","2023-01-15-02-maya-MayaJob withCharacters","2023-01-15-03-cl...
2
34
1
258
2
16
55
16
fresh_deadline_config
['EXPECTED_FULL_PATHS', 'EXPECTED_DIRS']
None
{"Assign": 2, "Expr": 1, "With": 5}
23
40
23
["tempfile.TemporaryDirectory", "config.set_setting", "os.path.join", "freeze_time", "job_bundle.create_job_history_bundle_dir", "os.path.isdir", "freeze_time", "job_bundle.create_job_history_bundle_dir", "os.path.isdir", "freeze_time", "job_bundle.create_job_history_bundle_dir", "os.path.isdir", "freeze_time", "job_bu...
0
[]
The function (test_create_job_bundle_dir) defined within the public class called public.The function start at line 16 and ends at 55. It contains 34 lines of code and it has a cyclomatic complexity of 2. The function does not take any parameters and does not return any value. It declares 23.0 functions, and It has 23....
aws-deadline_deadline-cloud
public
public
0
0
test_create_job_bundle_dir_sanitization
def test_create_job_bundle_dir_sanitization(submitter_name: str,job_name: str,freeze_date: str,expected_output_path: str,fresh_deadline_config,):# Use a temporary directory for the job historywith tempfile.TemporaryDirectory() as tmpdir, freeze_time(freeze_date):config.set_setting("settings.job_history_dir", tmpdir)ass...
1
13
5
82
0
84
97
84
submitter_name,job_name,freeze_date,expected_output_path,fresh_deadline_config
[]
None
{"Expr": 1, "With": 1}
14
14
14
["tempfile.TemporaryDirectory", "freeze_time", "config.set_setting", "job_bundle.create_job_history_bundle_dir", "os.path.join", "os.path.isdir", "os.path.join", "pytest.mark.parametrize", "pytest.param", "os.path.join", "pytest.param", "os.path.join", "pytest.param", "os.path.join"]
0
[]
The function (test_create_job_bundle_dir_sanitization) defined within the public class called public.The function start at line 84 and ends at 97. It contains 13 lines of code and it has a cyclomatic complexity of 1. It takes 5 parameters, represented as [84.0] and does not return any value. It declares 14.0 functions,...
aws-deadline_deadline-cloud
public
public
0
0
test_apply_job_parameters_parameter_without_value
def test_apply_job_parameters_parameter_without_value(job_parameters, job_bundle_dir, parameter_definitions, asset_references):"""Test that a job bundle parameter with no default value, and withouta provided value, raises an error."""with pytest.raises(exceptions.DeadlineOperationError) as excinfo:parameters.apply_job_...
1
10
4
65
0
80
93
80
job_parameters,job_bundle_dir,parameter_definitions,asset_references
[]
None
{"Expr": 2, "With": 1}
11
14
11
["pytest.raises", "parameters.apply_job_parameters", "str", "lower", "str", "lower", "str", "pytest.mark.parametrize", "pytest.param", "pytest.param", "pytest.param"]
0
[]
The function (test_apply_job_parameters_parameter_without_value) defined within the public class called public.The function start at line 80 and ends at 93. It contains 10 lines of code and it has a cyclomatic complexity of 1. It takes 4 parameters, represented as [80.0] and does not return any value. It declares 11.0 ...
aws-deadline_deadline-cloud
TestMergeQueueJobParameters
public
0
0
test_merge_queue_job_parameters_distinct
def test_merge_queue_job_parameters_distinct(self) -> None:"""Tests that distinct queue and job parameters are merged like a set-union operation"""# GIVENjob_parameter: parameters.JobParameter = {"name": "a","type": "STRING",}queue_parameter: parameters.JobParameter = {"name": "b","type": "INT",}# WHENmerged = paramete...
2
19
1
89
0
99
128
99
self
[]
None
{"AnnAssign": 2, "Assign": 1, "Expr": 1, "For": 1}
2
30
2
["parameters.merge_queue_job_parameters", "len"]
0
[]
The function (test_merge_queue_job_parameters_distinct) defined within the public class called TestMergeQueueJobParameters.The function start at line 99 and ends at 128. It contains 19 lines of code and it has a cyclomatic complexity of 2. The function does not take any parameters and does not return any value. It decl...
aws-deadline_deadline-cloud
TestMergeQueueJobParameters
public
0
0
test_merge_queue_job_parameters_intersect
def test_merge_queue_job_parameters_intersect(self) -> None:"""Tests that intersection queue and job parameters are unioned such that only one parameter isreturned"""# GIVENjob_parameter: parameters.JobParameter = {"name": "a","type": "STRING",}queue_parameter: parameters.JobParameter = {"name": "a","type": "STRING",}#...
1
19
1
90
0
130
160
130
self
[]
None
{"AnnAssign": 2, "Assign": 2, "Expr": 1}
2
31
2
["parameters.merge_queue_job_parameters", "len"]
0
[]
The function (test_merge_queue_job_parameters_intersect) defined within the public class called TestMergeQueueJobParameters.The function start at line 130 and ends at 160. It contains 19 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It de...
aws-deadline_deadline-cloud
TestMergeQueueJobParameters
public
0
0
test_merge_queue_job_parameters_default
def test_merge_queue_job_parameters_default(self,queue_default: int | None,job_default: int | None,expected_merged_default: int,) -> None:"""Tests that intersection queue and job parameters are unioned such that only one parameter isreturned"""# GIVENjob_parameter: parameters.JobParameter = {"name": "a","type": "INT",}...
3
26
4
124
0
171
205
171
self,queue_default,job_default,expected_merged_default
[]
None
{"AnnAssign": 2, "Assign": 4, "Expr": 1, "If": 2}
6
35
6
["parameters.merge_queue_job_parameters", "len", "pytest.mark.parametrize", "pytest.param", "pytest.param", "pytest.param"]
0
[]
The function (test_merge_queue_job_parameters_default) defined within the public class called TestMergeQueueJobParameters.The function start at line 171 and ends at 205. It contains 26 lines of code and it has a cyclomatic complexity of 3. It takes 4 parameters, represented as [171.0] and does not return any value. It ...
aws-deadline_deadline-cloud
TestMergeQueueJobParameters
public
0
0
test_merge_queue_job_parameters_cases
def test_merge_queue_job_parameters_cases(self, queue_parameter, job_parameter, expected_merged_parameter) -> None:"""Tests that when the job bundle provides a parameter value only but the queue defines it,the value is is used from the job parameter."""# GIVENqueue_id = "queue-123"queue_parameters: list[parameters.JobP...
1
12
4
66
0
255
274
255
self,queue_parameter,job_parameter,expected_merged_parameter
[]
None
{"AnnAssign": 2, "Assign": 2, "Expr": 1}
4
20
4
["parameters.merge_queue_job_parameters", "pytest.mark.parametrize", "pytest.param", "pytest.param"]
0
[]
The function (test_merge_queue_job_parameters_cases) defined within the public class called TestMergeQueueJobParameters.The function start at line 255 and ends at 274. It contains 12 lines of code and it has a cyclomatic complexity of 1. It takes 4 parameters, represented as [255.0] and does not return any value. It de...
aws-deadline_deadline-cloud
public
public
0
0
test_merge_queue_job_parameters_type_mismatch.when
def when() -> None:parameters.merge_queue_job_parameters(queue_id=queue_id,job_parameters=job_bundle_parameters,queue_parameters=queue_parameters,)
1
6
0
23
0
313
318
313
null
[]
None
null
0
0
0
null
0
null
The function (test_merge_queue_job_parameters_type_mismatch.when) defined within the public class called public.The function start at line 313 and ends at 318. It contains 6 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value..
aws-deadline_deadline-cloud
TestMergeQueueJobParameters
public
0
0
test_merge_queue_job_parameters_type_mismatch
def test_merge_queue_job_parameters_type_mismatch(self,queue_id: str | None,) -> None:"""Tests that a DeadlineOperationError is raised when:1.there is a parameter with the same name defined in the job bundle and in one of the targetqueue's environments2.the parameter definitions have mismatched types"""# GIVENjob_bundl...
2
26
2
100
0
283
327
283
self,queue_id
[]
None
{"AnnAssign": 2, "Assign": 3, "Expr": 3, "With": 1}
7
45
7
["parameters.merge_queue_job_parameters", "pytest.raises", "when", "str", "pytest.mark.parametrize", "pytest.param", "pytest.param"]
0
[]
The function (test_merge_queue_job_parameters_type_mismatch) defined within the public class called TestMergeQueueJobParameters.The function start at line 283 and ends at 327. It contains 26 lines of code and it has a cyclomatic complexity of 2. It takes 2 parameters, represented as [283.0] and does not return any valu...
aws-deadline_deadline-cloud
public
public
0
0
test_merge_queue_job_parameters_missing_definition.when
def when() -> None:parameters.merge_queue_job_parameters(queue_id=queue_id,job_parameters=job_bundle_parameters,queue_parameters=queue_parameters,)
1
6
0
23
0
346
351
346
null
[]
None
null
0
0
0
null
0
null
The function (test_merge_queue_job_parameters_missing_definition.when) defined within the public class called public.The function start at line 346 and ends at 351. It contains 6 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value..
aws-deadline_deadline-cloud
TestMergeQueueJobParameters
public
0
0
test_merge_queue_job_parameters_missing_definition
def test_merge_queue_job_parameters_missing_definition(self) -> None:"""Tests that when the job bundle provides a parameter value without a definition and thereis no corresponding parameter definition from the queue that a DeadlineOperationError israised"""# GIVENqueue_id = "queue-123"job_parameter_name = "foo"queue_pa...
1
17
1
76
0
329
360
329
self
[]
None
{"AnnAssign": 2, "Assign": 2, "Expr": 3, "With": 1}
4
32
4
["parameters.merge_queue_job_parameters", "pytest.raises", "when", "str"]
0
[]
The function (test_merge_queue_job_parameters_missing_definition) defined within the public class called TestMergeQueueJobParameters.The function start at line 329 and ends at 360. It contains 17 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any val...
aws-deadline_deadline-cloud
public
public
0
0
test_ui_control_for_parameter_definition
def test_ui_control_for_parameter_definition(parameter_def, expected_control):"""Test that the correct UI control for a parameter definition is returned."""assert parameters.get_ui_control_for_parameter_definition(parameter_def) == expected_control
1
2
2
17
0
530
532
530
parameter_def,expected_control
[]
None
{"Expr": 1}
2
3
2
["parameters.get_ui_control_for_parameter_definition", "pytest.mark.parametrize"]
0
[]
The function (test_ui_control_for_parameter_definition) defined within the public class called public.The function start at line 530 and ends at 532. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [530.0] and does not return any value. It declares 2.0 function...
aws-deadline_deadline-cloud
public
public
0
0
test_ui_control_for_parameter_definition_errors
def test_ui_control_for_parameter_definition_errors(parameter_def):"""Test that an error is raised with incorrect parameter definition controls."""with pytest.raises(exceptions.DeadlineOperationError):parameters.get_ui_control_for_parameter_definition(parameter_def)
1
3
1
22
0
571
574
571
parameter_def
[]
None
{"Expr": 2, "With": 1}
3
4
3
["pytest.raises", "parameters.get_ui_control_for_parameter_definition", "pytest.mark.parametrize"]
0
[]
The function (test_ui_control_for_parameter_definition_errors) defined within the public class called public.The function start at line 571 and ends at 574. It contains 3 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declares 3.0 funct...
aws-deadline_deadline-cloud
public
public
0
0
test_parameter_definition_difference
def test_parameter_definition_difference(parameter1, parameter2, expected_difference):"""Test that parameter_definition_difference returns expected differences."""assert parameters.parameter_definition_difference(parameter1, parameter2) == expected_difference
1
2
3
21
0
686
688
686
parameter1,parameter2,expected_difference
[]
None
{"Expr": 1}
2
3
2
["parameters.parameter_definition_difference", "pytest.mark.parametrize"]
0
[]
The function (test_parameter_definition_difference) defined within the public class called public.The function start at line 686 and ends at 688. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [686.0] and does not return any value. It declares 2.0 functions, a...
aws-deadline_deadline-cloud
public
public
0
0
test_flatten_asset_references
def test_flatten_asset_references(assets_input: Dict[str, Any],expected_output: AssetReferences,) -> None:"""Test that FlatAssetReferences.from_dict creates a FlatAssetReferences object withall of the filenames/directories from an input."""response = AssetReferences.from_dict(assets_input)assert response.input_filename...
1
8
2
52
1
75
87
75
assets_input,expected_output
['response']
None
{"Assign": 1, "Expr": 1}
15
13
15
["AssetReferences.from_dict", "pytest.mark.parametrize", "pytest.param", "AssetReferences", "pytest.param", "AssetReferences", "pytest.param", "AssetReferences", "set", "set", "pytest.param", "AssetReferences", "set", "set", "set"]
0
[]
The function (test_flatten_asset_references) defined within the public class called public.The function start at line 75 and ends at 87. It contains 8 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [75.0] and does not return any value. It declares 15.0 functions, and It ha...
aws-deadline_deadline-cloud
public
public
0
0
test_split_parameter_args
def test_split_parameter_args() -> None:"""Tests that split_parameter_args parses the input job bundle paramtersand creates properly formatted app/job parameter dictionaries as returns."""input_bundle_params: list[JobParameter] = [{"name": "param_1", "value": "TESTING", "type": "STRING"},{"name": "param_2", "value": 10...
1
18
0
145
2
90
115
90
['expected_job_params', 'expected_app_params']
None
{"AnnAssign": 1, "Assign": 3, "Expr": 1}
1
26
1
["submission.split_parameter_args"]
0
[]
The function (test_split_parameter_args) defined within the public class called public.The function start at line 90 and ends at 115. It contains 18 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declare 1.0 function, and It has 1.0 fu...
aws-deadline_deadline-cloud
public
public
0
0
test_split_parameter_args_no_parameters
def test_split_parameter_args_no_parameters() -> None:"""Tests split_parameter_args returns empty dictionaries if there areno job bundle parameters provided."""expected_app_params: Dict[str, Any] = {}expected_job_params: Dict[str, Any] = {}app_params, job_params = submission.split_parameter_args([], "test_bundle")asser...
1
6
0
50
0
118
129
118
[]
None
{"AnnAssign": 2, "Assign": 1, "Expr": 1}
1
12
1
["submission.split_parameter_args"]
0
[]
The function (test_split_parameter_args_no_parameters) defined within the public class called public.The function start at line 118 and ends at 129. It contains 6 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declare 1.0 function, and ...
aws-deadline_deadline-cloud
public
public
0
0
test_split_parameter_args_custom_app
def test_split_parameter_args_custom_app() -> None:"""Tests that split_parameter_args parses the input job bundle paramtersand creates properly formatted app/job parameter dictionaries as returns.This case provides a custom app name for the prefix."""input_bundle_params: list[JobParameter] = [{"name": "param_1", "value...
1
23
0
156
2
132
162
132
['expected_job_params', 'expected_app_params']
None
{"AnnAssign": 1, "Assign": 3, "Expr": 1}
1
31
1
["submission.split_parameter_args"]
0
[]
The function (test_split_parameter_args_custom_app) defined within the public class called public.The function start at line 132 and ends at 162. It contains 23 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declare 1.0 function, and I...
aws-deadline_deadline-cloud
public
public
0
0
test_job_template_ui_controls_enum
def test_job_template_ui_controls_enum(control_name):"""Test that the ControlType num has all the UI controls listed"""assert hasattr(job_template.ControlType, control_name)assert job_template.ControlType[control_name].name == control_name
1
3
1
26
0
27
30
27
control_name
[]
None
{"Expr": 1}
2
4
2
["hasattr", "pytest.mark.parametrize"]
0
[]
The function (test_job_template_ui_controls_enum) defined within the public class called public.The function start at line 27 and ends at 30. It contains 3 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declares 2.0 functions, and It h...
aws-deadline_deadline-cloud
public
public
0
0
test_save_yaml_or_json_to_file
def test_save_yaml_or_json_to_file():with tempfile.TemporaryDirectory() as temp_dir:save_yaml_or_json_to_file(bundle_dir=temp_dir, filename="test", data={"test": "test"}, file_type="YAML")assert Path(os.path.join(temp_dir, "test.yaml")).read_text() == "test: test\n"with tempfile.TemporaryDirectory() as temp_dir:save_ya...
1
16
0
145
0
10
27
10
[]
None
{"Expr": 3, "With": 4}
13
18
13
["tempfile.TemporaryDirectory", "save_yaml_or_json_to_file", "read_text", "Path", "os.path.join", "tempfile.TemporaryDirectory", "save_yaml_or_json_to_file", "read_text", "Path", "os.path.join", "tempfile.TemporaryDirectory", "pytest.raises", "save_yaml_or_json_to_file"]
0
[]
The function (test_save_yaml_or_json_to_file) defined within the public class called public.The function start at line 10 and ends at 27. It contains 16 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declares 13.0 functions, and It has...
aws-deadline_deadline-cloud
public
public
0
0
parameter_name
def parameter_name() -> str:return "param"
1
2
0
8
0
14
15
14
[]
str
{"Return": 1}
0
2
0
[]
0
[]
The function (parameter_name) defined within the public class called public.The function start at line 14 and ends at 15. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value..
aws-deadline_deadline-cloud
public
public
0
0
field_path
def field_path() -> str:return '"userInterface" -> "fileFilterDefault"'
1
2
0
8
0
19
20
19
[]
str
{"Return": 1}
0
2
0
[]
0
[]
The function (field_path) defined within the public class called public.The function start at line 19 and ends at 20. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value..
aws-deadline_deadline-cloud
public
public
0
0
valid_label
def valid_label() -> str:return "mylabel"
1
2
0
8
0
24
25
24
[]
str
{"Return": 1}
0
2
0
[]
0
[]
The function (valid_label) defined within the public class called public.The function start at line 24 and ends at 25. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value..
aws-deadline_deadline-cloud
public
public
0
0
valid_pattern_length
def valid_pattern_length(request: pytest.FixtureRequest) -> int:return request.param
1
2
1
15
0
29
30
29
request
[]
int
{"Return": 1}
1
2
1
["pytest.fixture"]
0
[]
The function (valid_pattern_length) defined within the public class called public.The function start at line 29 and ends at 30. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declare 1.0 function, and It has 1.0 function ...
aws-deadline_deadline-cloud
public
public
0
0
valid_pattern
def valid_pattern(valid_pattern_length: int) -> str:return "a" * valid_pattern_length
1
2
1
13
0
34
35
34
valid_pattern_length
[]
str
{"Return": 1}
0
2
0
[]
0
[]
The function (valid_pattern) defined within the public class called public.The function start at line 34 and ends at 35. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value..
aws-deadline_deadline-cloud
public
public
0
0
valid_file_filter
def valid_file_filter(valid_label: str,valid_pattern: str,) -> parameters.UserInterfaceFileFilter:return {"label": valid_label,"patterns": [valid_pattern],}
1
8
2
29
0
39
46
39
valid_label,valid_pattern
[]
parameters.UserInterfaceFileFilter
{"Return": 1}
0
8
0
[]
0
[]
The function (valid_file_filter) defined within the public class called public.The function start at line 39 and ends at 46. It contains 8 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [39.0] and does not return any value..
aws-deadline_deadline-cloud
public
public
0
0
test_validate_user_interface_file_filter_valid
def test_validate_user_interface_file_filter_valid(valid_file_filter: parameters.UserInterfaceFileFilter,parameter_name: str,field_path: str,) -> None:"""Tests that valid input will not raise an exception when a valid file filter is passed tovalidate_user_interface_file_filter and that the return value is a reference t...
1
11
3
42
1
49
65
49
valid_file_filter,parameter_name,field_path
['result']
None
{"Assign": 1, "Expr": 1}
1
17
1
["parameters.validate_user_interface_file_filter"]
0
[]
The function (test_validate_user_interface_file_filter_valid) defined within the public class called public.The function start at line 49 and ends at 65. It contains 11 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [49.0] and does not return any value. It declare 1.0 funct...
aws-deadline_deadline-cloud
public
public
0
0
test_validate_user_interface_file_filter_nonvalid_missing.when
def when() -> None:parameters.validate_user_interface_file_filter(file_filter,parameter_name=parameter_name,field_path=field_path,)
1
6
0
21
0
85
90
85
null
[]
None
null
0
0
0
null
0
null
The function (test_validate_user_interface_file_filter_nonvalid_missing.when) defined within the public class called public.The function start at line 85 and ends at 90. It contains 6 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value..
aws-deadline_deadline-cloud
public
public
0
0
test_validate_user_interface_file_filter_nonvalid_missing
def test_validate_user_interface_file_filter_nonvalid_missing(valid_file_filter: parameters.UserInterfaceFileFilter,parameter_name: str,field_path: str,field: str,) -> None:"""Tests that valid input will raise an exception when a required field is missing from theinput passed to validate_user_interface_file_filter."""#...
1
15
4
64
1
72
98
72
valid_file_filter,parameter_name,field_path,field
['file_filter']
None
{"Assign": 1, "Expr": 3, "With": 1}
6
27
6
["valid_file_filter.copy", "parameters.validate_user_interface_file_filter", "pytest.raises", "when", "str", "pytest.mark.parametrize"]
0
[]
The function (test_validate_user_interface_file_filter_nonvalid_missing) defined within the public class called public.The function start at line 72 and ends at 98. It contains 15 lines of code and it has a cyclomatic complexity of 1. It takes 4 parameters, represented as [72.0] and does not return any value. It declar...
aws-deadline_deadline-cloud
public
public
0
0
test_validate_user_interface_file_filter_nonvalid_label_type.when
def when() -> None:parameters.validate_user_interface_file_filter(file_filter,parameter_name=parameter_name,field_path=field_path,)
1
6
0
21
0
126
131
126
null
[]
None
null
0
0
0
null
0
null
The function (test_validate_user_interface_file_filter_nonvalid_label_type.when) defined within the public class called public.The function start at line 126 and ends at 131. It contains 6 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value..
aws-deadline_deadline-cloud
public
public
0
0
test_validate_user_interface_file_filter_nonvalid_label_type
def test_validate_user_interface_file_filter_nonvalid_label_type(label: Any,parameter_name: str,field_path: str,) -> None:"""Tests that a nonvalid type passed for the \"label\" field will raise a TypeErrorwith a user-friendly error message"""# GIVENfile_filter = {"label": label,"patterns": [],}# WHENdef when() -> None:...
1
16
3
59
1
112
139
112
label,parameter_name,field_path
['file_filter']
None
{"Assign": 1, "Expr": 3, "With": 1}
12
28
12
["parameters.validate_user_interface_file_filter", "pytest.raises", "when", "str", "type", "pytest.mark.parametrize", "pytest.param", "pytest.param", "pytest.param", "pytest.param", "pytest.param", "pytest.param"]
0
[]
The function (test_validate_user_interface_file_filter_nonvalid_label_type) defined within the public class called public.The function start at line 112 and ends at 139. It contains 16 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [112.0] and does not return any value. It ...
aws-deadline_deadline-cloud
public
public
0
0
test_validate_user_interface_file_filter_nonvalid_patterns_type.when
def when() -> None:parameters.validate_user_interface_file_filter(file_filter,parameter_name=parameter_name,field_path=field_path,)
1
6
0
21
0
168
173
168
null
[]
None
null
0
0
0
null
0
null
The function (test_validate_user_interface_file_filter_nonvalid_patterns_type.when) defined within the public class called public.The function start at line 168 and ends at 173. It contains 6 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value..
aws-deadline_deadline-cloud
public
public
0
0
test_validate_user_interface_file_filter_nonvalid_patterns_type
def test_validate_user_interface_file_filter_nonvalid_patterns_type(valid_label: str,pattern: str,parameter_name: str,field_path: str,) -> None:"""Tests that a nonvalid type passed for the \"patterns\" field will raise a TypeErrorwith a user-friendly error message"""# GIVENfile_filter = {"label": valid_label,"patterns"...
1
17
4
64
1
153
181
153
valid_label,pattern,parameter_name,field_path
['file_filter']
None
{"Assign": 1, "Expr": 3, "With": 1}
12
29
12
["parameters.validate_user_interface_file_filter", "pytest.raises", "when", "str", "repr", "pytest.mark.parametrize", "pytest.param", "pytest.param", "pytest.param", "pytest.param", "pytest.param", "pytest.param"]
0
[]
The function (test_validate_user_interface_file_filter_nonvalid_patterns_type) defined within the public class called public.The function start at line 153 and ends at 181. It contains 17 lines of code and it has a cyclomatic complexity of 1. It takes 4 parameters, represented as [153.0] and does not return any value. ...
aws-deadline_deadline-cloud
public
public
0
0
test_validate_user_interface_file_filter_nonvalid_pattern_length.when
def when() -> None:parameters.validate_user_interface_file_filter(file_filter,parameter_name=parameter_name,field_path=field_path,)
1
6
0
21
0
204
209
204
null
[]
None
null
0
0
0
null
0
null
The function (test_validate_user_interface_file_filter_nonvalid_pattern_length.when) defined within the public class called public.The function start at line 204 and ends at 209. It contains 6 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value....
aws-deadline_deadline-cloud
public
public
0
0
test_validate_user_interface_file_filter_nonvalid_pattern_length
def test_validate_user_interface_file_filter_nonvalid_pattern_length(valid_label: str,pattern_length: int,parameter_name: str,field_path: str,) -> None:"""Tests that a nonvalid type passed for the \"label\" field will raise a TypeErrorwith a user-friendly error message"""# GIVENpattern = "a" * pattern_lengthfile_filter...
1
18
4
69
2
188
217
188
valid_label,pattern_length,parameter_name,field_path
['pattern', 'file_filter']
None
{"Assign": 2, "Expr": 3, "With": 1}
5
30
5
["parameters.validate_user_interface_file_filter", "pytest.raises", "when", "str", "pytest.mark.parametrize"]
0
[]
The function (test_validate_user_interface_file_filter_nonvalid_pattern_length) defined within the public class called public.The function start at line 188 and ends at 217. It contains 18 lines of code and it has a cyclomatic complexity of 1. It takes 4 parameters, represented as [188.0] and does not return any value....
aws-deadline_deadline-cloud
public
public
0
0
valid_name
def valid_name() -> str:return "paramname"
1
2
0
8
0
23
24
23
[]
str
{"Return": 1}
0
2
0
[]
1
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69951274_onekey_sec_unblob.python.unblob.handlers.filesystem.yaffs_py.is_valid_header"]
The function (valid_name) defined within the public class called public.The function start at line 23 and ends at 24. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It has 1.0 function calling this function which is ["_.conte...
aws-deadline_deadline-cloud
public
public
0
0
valid_description
def valid_description() -> str:return "description"
1
2
0
8
0
28
29
28
[]
str
{"Return": 1}
0
2
0
[]
0
[]
The function (valid_description) defined within the public class called public.The function start at line 28 and ends at 29. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value..
aws-deadline_deadline-cloud
public
public
0
0
valid_type
def valid_type(request: pytest.FixtureRequest) -> str:return request.param
1
2
1
15
0
36
37
36
request
[]
str
{"Return": 1}
1
2
1
["pytest.fixture"]
0
[]
The function (valid_type) defined within the public class called public.The function start at line 36 and ends at 37. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declare 1.0 function, and It has 1.0 function called ins...
aws-deadline_deadline-cloud
public
public
0
0
valid_default
def valid_default(valid_type: str) -> Any:return VALID_DEFAULTS_BY_TYPE[valid_type]
1
2
1
14
0
41
42
41
valid_type
[]
Any
{"Return": 1}
0
2
0
[]
0
[]
The function (valid_default) defined within the public class called public.The function start at line 41 and ends at 42. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value..
aws-deadline_deadline-cloud
public
public
0
0
valid_allowed_values
def valid_allowed_values(valid_default: Any) -> list[Any]:return [valid_default]
1
2
1
16
0
46
47
46
valid_default
[]
list[Any]
{"Return": 1}
0
2
0
[]
0
[]
The function (valid_allowed_values) defined within the public class called public.The function start at line 46 and ends at 47. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value..
aws-deadline_deadline-cloud
public
public
0
0
valid_data_flow
def valid_data_flow(request: pytest.FixtureRequest) -> str:return request.param
1
2
1
15
0
54
55
54
request
[]
str
{"Return": 1}
1
2
1
["pytest.fixture"]
0
[]
The function (valid_data_flow) defined within the public class called public.The function start at line 54 and ends at 55. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declare 1.0 function, and It has 1.0 function calle...
aws-deadline_deadline-cloud
public
public
0
0
valid_min_length
def valid_min_length() -> int:return 1
1
2
0
8
0
59
60
59
[]
int
{"Return": 1}
0
2
0
[]
0
[]
The function (valid_min_length) defined within the public class called public.The function start at line 59 and ends at 60. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value..
aws-deadline_deadline-cloud
public
public
0
0
valid_max_length
def valid_max_length() -> int:return 2
1
2
0
8
0
64
65
64
[]
int
{"Return": 1}
0
2
0
[]
0
[]
The function (valid_max_length) defined within the public class called public.The function start at line 64 and ends at 65. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value..
aws-deadline_deadline-cloud
public
public
0
0
valid_min_value
def valid_min_value(request: pytest.FixtureRequest) -> str | int | float:return request.param
1
2
1
19
0
72
73
72
request
[]
str | int | float
{"Return": 1}
1
2
1
["pytest.fixture"]
0
[]
The function (valid_min_value) defined within the public class called public.The function start at line 72 and ends at 73. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declare 1.0 function, and It has 1.0 function calle...
aws-deadline_deadline-cloud
public
public
0
0
valid_max_value
def valid_max_value(request: pytest.FixtureRequest) -> str | int | float:return request.param
1
2
1
19
0
80
81
80
request
[]
str | int | float
{"Return": 1}
1
2
1
["pytest.fixture"]
0
[]
The function (valid_max_value) defined within the public class called public.The function start at line 80 and ends at 81. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declare 1.0 function, and It has 1.0 function calle...
aws-deadline_deadline-cloud
public
public
0
0
valid_object_type
def valid_object_type(request: pytest.FixtureRequest) -> str:return request.param
1
2
1
15
0
88
89
88
request
[]
str
{"Return": 1}
1
2
1
["pytest.fixture"]
0
[]
The function (valid_object_type) defined within the public class called public.The function start at line 88 and ends at 89. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declare 1.0 function, and It has 1.0 function cal...
aws-deadline_deadline-cloud
public
public
0
0
valid_user_interface
def valid_user_interface() -> parameters.UserInterfaceSpec:return {"control": "CHECK_BOX","label": "labela","groupLabel": "groupa","decimal": 1,"singleStepDelta": 1.5,}
1
8
0
33
0
93
100
93
[]
parameters.UserInterfaceSpec
{"Return": 1}
0
8
0
[]
0
[]
The function (valid_user_interface) defined within the public class called public.The function start at line 93 and ends at 100. It contains 8 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value..
aws-deadline_deadline-cloud
public
public
0
0
valid_job_parameter
def valid_job_parameter(valid_name: str,valid_description: str,valid_type: str,valid_default: Any,valid_allowed_values: list[Any],valid_data_flow: str,valid_object_type: str,valid_min_length: int,valid_max_length: int,valid_min_value: str | int | float,valid_max_value: str | int | float,valid_user_interface: parameters...
1
28
12
120
0
104
131
104
valid_name,valid_description,valid_type,valid_default,valid_allowed_values,valid_data_flow,valid_object_type,valid_min_length,valid_max_length,valid_min_value,valid_max_value,valid_user_interface
[]
parameters.JobParameter
{"Return": 1}
0
28
0
[]
0
[]
The function (valid_job_parameter) defined within the public class called public.The function start at line 104 and ends at 131. It contains 28 lines of code and it has a cyclomatic complexity of 1. It takes 12 parameters, represented as [104.0] and does not return any value..
aws-deadline_deadline-cloud
public
public
0
0
test_validate_job_parameter_valid
def test_validate_job_parameter_valid(valid_job_parameter: parameters.JobParameter,) -> None:"""Tests that passing a valid job parameter to validate_job_parameter does not raise anexception"""# WHENresult = parameters.validate_job_parameter(valid_job_parameter)# THENassert result is valid_job_parameter
1
5
1
25
1
134
143
134
valid_job_parameter
['result']
None
{"Assign": 1, "Expr": 1}
1
10
1
["parameters.validate_job_parameter"]
0
[]
The function (test_validate_job_parameter_valid) defined within the public class called public.The function start at line 134 and ends at 143. It contains 5 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declare 1.0 function, and It ha...
aws-deadline_deadline-cloud
public
public
0
0
test_validate_job_parameter_nonvalid_root_type.when
def when() -> None:parameters.validate_job_parameter(input)
1
2
0
12
0
163
164
163
null
[]
None
null
0
0
0
null
0
null
The function (test_validate_job_parameter_nonvalid_root_type.when) defined within the public class called public.The function start at line 163 and ends at 164. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value..
aws-deadline_deadline-cloud
public
public
0
0
test_validate_job_parameter_nonvalid_root_type
def test_validate_job_parameter_nonvalid_root_type(input: Any,) -> None:"""Tests that a non-dict input passed to validate_job_parameter raises an exception"""# WHENdef when() -> None:parameters.validate_job_parameter(input)# THENwith pytest.raises(TypeError) as ctx:when()assert str(ctx.value) == f"Expected a dict for j...
1
7
1
36
0
157
169
157
input
[]
None
{"Expr": 3, "With": 1}
12
13
12
["parameters.validate_job_parameter", "pytest.raises", "when", "str", "type", "pytest.mark.parametrize", "pytest.param", "pytest.param", "pytest.param", "pytest.param", "pytest.param", "pytest.param"]
0
[]
The function (test_validate_job_parameter_nonvalid_root_type) defined within the public class called public.The function start at line 157 and ends at 169. It contains 7 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declares 12.0 funct...
aws-deadline_deadline-cloud
public
public
0
0
test_validate_job_parameter_nonvalid_name.when
def when() -> None:parameters.validate_job_parameter(job_parameter)
1
2
0
12
0
192
193
192
null
[]
None
null
0
0
0
null
0
null
The function (test_validate_job_parameter_nonvalid_name.when) defined within the public class called public.The function start at line 192 and ends at 193. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value..
aws-deadline_deadline-cloud
public
public
0
0
test_validate_job_parameter_nonvalid_name
def test_validate_job_parameter_nonvalid_name(name: Any,) -> None:"""Tests that when calling validate_job_parameter with an nonvalid values for "name"that an exception is raised."""# GIVENjob_parameter = {"name": name}# WHENdef when() -> None:parameters.validate_job_parameter(job_parameter)# THENwith pytest.raises(Type...
1
8
1
43
1
183
198
183
name
['job_parameter']
None
{"Assign": 1, "Expr": 3, "With": 1}
12
16
12
["parameters.validate_job_parameter", "pytest.raises", "when", "str", "type", "pytest.mark.parametrize", "pytest.param", "pytest.param", "pytest.param", "pytest.param", "pytest.param", "pytest.param"]
0
[]
The function (test_validate_job_parameter_nonvalid_name) defined within the public class called public.The function start at line 183 and ends at 198. It contains 8 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declares 12.0 functions,...
aws-deadline_deadline-cloud
public
public
0
0
test_validate_job_parameter_missing_name.when
def when() -> None:parameters.validate_job_parameter(job_parameter)
1
2
0
12
0
207
208
207
null
[]
None
null
0
0
0
null
0
null
The function (test_validate_job_parameter_missing_name.when) defined within the public class called public.The function start at line 207 and ends at 208. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value..
aws-deadline_deadline-cloud
public
public
0
0
test_validate_job_parameter_missing_name
def test_validate_job_parameter_missing_name() -> None:"""Tests that when calling validate_job_parameter without a "name" raises an exception."""# GIVENjob_parameter: dict = {}# WHENdef when() -> None:parameters.validate_job_parameter(job_parameter)# THENwith pytest.raises(ValueError) as ctx:when()assert str(ctx.value)...
1
6
0
38
0
201
213
201
[]
None
{"AnnAssign": 1, "Expr": 3, "With": 1}
4
13
4
["parameters.validate_job_parameter", "pytest.raises", "when", "str"]
0
[]
The function (test_validate_job_parameter_missing_name) defined within the public class called public.The function start at line 201 and ends at 213. It contains 6 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declares 4.0 functions, a...
aws-deadline_deadline-cloud
public
public
0
0
test_validate_job_parameter_empty_name.when
def when() -> None:parameters.validate_job_parameter(job_parameter)
1
2
0
12
0
222
223
222
null
[]
None
null
0
0
0
null
0
null
The function (test_validate_job_parameter_empty_name.when) defined within the public class called public.The function start at line 222 and ends at 223. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value..
aws-deadline_deadline-cloud
public
public
0
0
test_validate_job_parameter_empty_name
def test_validate_job_parameter_empty_name() -> None:"""Tests that when calling validate_job_parameter without a "name" raises an exception."""# GIVENjob_parameter: dict = {"name": ""}# WHENdef when() -> None:parameters.validate_job_parameter(job_parameter)# THENwith pytest.raises(ValueError) as ctx:when()assert str(ct...
1
6
0
40
0
216
228
216
[]
None
{"AnnAssign": 1, "Expr": 3, "With": 1}
4
13
4
["parameters.validate_job_parameter", "pytest.raises", "when", "str"]
0
[]
The function (test_validate_job_parameter_empty_name) defined within the public class called public.The function start at line 216 and ends at 228. It contains 6 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declares 4.0 functions, and...
aws-deadline_deadline-cloud
public
public
0
0
test_validate_job_parameter_valid_no_type
def test_validate_job_parameter_valid_no_type() -> None:"""Tests that passing a job parameter without a "type" does not raise an exception bydefault or if type_required is False"""# GIVENjob_parameter: parameters.JobParameter = {"name": "foo"}# WHENresult = parameters.validate_job_parameter(job_parameter)# THENassert r...
1
6
0
46
1
231
247
231
['result']
None
{"AnnAssign": 1, "Assign": 2, "Expr": 1}
2
17
2
["parameters.validate_job_parameter", "parameters.validate_job_parameter"]
0
[]
The function (test_validate_job_parameter_valid_no_type) defined within the public class called public.The function start at line 231 and ends at 247. It contains 6 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declares 2.0 functions, ...
aws-deadline_deadline-cloud
public
public
0
0
test_validate_job_parameter_nonvalid_type.when
def when() -> None:parameters.validate_job_parameter(job_parameter)
1
2
0
12
0
274
275
274
null
[]
None
null
0
0
0
null
0
null
The function (test_validate_job_parameter_nonvalid_type.when) defined within the public class called public.The function start at line 274 and ends at 275. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value..
aws-deadline_deadline-cloud
public
public
0
0
test_validate_job_parameter_nonvalid_type
def test_validate_job_parameter_nonvalid_type(typ: Any,) -> None:"""Tests that when calling validate_job_parameter with an nonvalid values for "type"that an exception is raised."""# GIVENjob_parameter: parameters.JobParameter = {"name": "foo","type": typ,}# WHENdef when() -> None:parameters.validate_job_parameter(job_p...
1
14
1
54
0
262
283
262
typ
[]
None
{"AnnAssign": 1, "Expr": 3, "With": 1}
12
22
12
["parameters.validate_job_parameter", "pytest.raises", "when", "str", "pytest.mark.parametrize", "pytest.param", "pytest.param", "pytest.param", "pytest.param", "pytest.param", "pytest.param", "pytest.param"]
0
[]
The function (test_validate_job_parameter_nonvalid_type) defined within the public class called public.The function start at line 262 and ends at 283. It contains 14 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declares 12.0 functions...
aws-deadline_deadline-cloud
public
public
0
0
test_validate_job_parameter_nonvalid_description.when
def when() -> None:parameters.validate_job_parameter(job_parameter)
1
2
0
12
0
309
310
309
null
[]
None
null
0
0
0
null
0
null
The function (test_validate_job_parameter_nonvalid_description.when) defined within the public class called public.The function start at line 309 and ends at 310. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value..
aws-deadline_deadline-cloud
public
public
0
0
test_validate_job_parameter_nonvalid_description
def test_validate_job_parameter_nonvalid_description(description: Any,) -> None:"""Tests that when calling validate_job_parameter with an nonvalid values for "description"that an exception is raised."""# GIVENjob_parameter = {"name": "a","description": description,}# WHENdef when() -> None:parameters.validate_job_param...
1
14
1
50
1
297
318
297
description
['job_parameter']
None
{"Assign": 1, "Expr": 3, "With": 1}
12
22
12
["parameters.validate_job_parameter", "pytest.raises", "when", "str", "type", "pytest.mark.parametrize", "pytest.param", "pytest.param", "pytest.param", "pytest.param", "pytest.param", "pytest.param"]
0
[]
The function (test_validate_job_parameter_nonvalid_description) defined within the public class called public.The function start at line 297 and ends at 318. It contains 14 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declares 12.0 fu...
aws-deadline_deadline-cloud
public
public
0
0
test_validate_job_parameter_valid_no_default
def test_validate_job_parameter_valid_no_default() -> None:"""Tests that passing a job parameter to validate_job_parameter without a "default" key doesnot raise an exception by default or if default_required is False"""# GIVENjob_parameter: parameters.JobParameter = {"name": "foo","type": "INT",}# WHEN# Default is to n...
1
9
0
51
1
321
342
321
['result']
None
{"AnnAssign": 1, "Assign": 2, "Expr": 1}
2
22
2
["parameters.validate_job_parameter", "parameters.validate_job_parameter"]
0
[]
The function (test_validate_job_parameter_valid_no_default) defined within the public class called public.The function start at line 321 and ends at 342. It contains 9 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declares 2.0 function...
aws-deadline_deadline-cloud
public
public
0
0
test_validate_job_parameter_valid_no_allowed_values
def test_validate_job_parameter_valid_no_allowed_values() -> None:"""Tests that passing a job parameter to validate_job_parameter without a "allowedValues"key does not raise an exception by default or if default_required is False"""# GIVENjob_parameter: parameters.JobParameter = {"name": "foo"}# WHENresult = parameters...
1
4
0
30
1
345
355
345
['result']
None
{"AnnAssign": 1, "Assign": 1, "Expr": 1}
1
11
1
["parameters.validate_job_parameter"]
0
[]
The function (test_validate_job_parameter_valid_no_allowed_values) defined within the public class called public.The function start at line 345 and ends at 355. It contains 4 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declare 1.0 fu...
aws-deadline_deadline-cloud
public
public
0
0
test_validate_job_parameter_nonvalid_allowed_values.when
def when() -> None:parameters.validate_job_parameter(job_parameter)
1
2
0
12
0
381
382
381
null
[]
None
null
0
0
0
null
0
null
The function (test_validate_job_parameter_nonvalid_allowed_values.when) defined within the public class called public.The function start at line 381 and ends at 382. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value..
aws-deadline_deadline-cloud
public
public
0
0
test_validate_job_parameter_nonvalid_allowed_values
def test_validate_job_parameter_nonvalid_allowed_values(allowed_values: Any,) -> None:"""Tests that passing a job parameter to validate_job_parameter without a "allowedValues"key does not raise an exception by default or if default_required is False"""# GIVENjob_parameter: parameters.JobParameter = {"name": "foo","allo...
1
14
1
54
0
369
390
369
allowed_values
[]
None
{"AnnAssign": 1, "Expr": 3, "With": 1}
12
22
12
["parameters.validate_job_parameter", "pytest.raises", "when", "str", "type", "pytest.mark.parametrize", "pytest.param", "pytest.param", "pytest.param", "pytest.param", "pytest.param", "pytest.param"]
0
[]
The function (test_validate_job_parameter_nonvalid_allowed_values) defined within the public class called public.The function start at line 369 and ends at 390. It contains 14 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declares 12.0...
aws-deadline_deadline-cloud
public
public
0
0
test_validate_job_parameter_valid_no_data_flow
def test_validate_job_parameter_valid_no_data_flow(valid_type: str,) -> None:"""Tests that passing a job parameter to validate_job_parameter without a "dataFlow" keyno exception is raised"""# GIVENjob_parameter: parameters.JobParameter = {"name": "foo","type": valid_type,}# WHEN# Default is to not require a defaultresu...
1
9
1
39
1
393
410
393
valid_type
['result']
None
{"AnnAssign": 1, "Assign": 1, "Expr": 1}
1
18
1
["parameters.validate_job_parameter"]
0
[]
The function (test_validate_job_parameter_valid_no_data_flow) defined within the public class called public.The function start at line 393 and ends at 410. It contains 9 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declare 1.0 functio...
aws-deadline_deadline-cloud
public
public
0
0
test_validate_job_parameter_nonvalid_data_flow.when
def when() -> None:parameters.validate_job_parameter(job_parameter)
1
2
0
12
0
438
439
438
null
[]
None
null
0
0
0
null
0
null
The function (test_validate_job_parameter_nonvalid_data_flow.when) defined within the public class called public.The function start at line 438 and ends at 439. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value..
aws-deadline_deadline-cloud
public
public
0
0
test_validate_job_parameter_nonvalid_data_flow
def test_validate_job_parameter_nonvalid_data_flow(data_flow: Any,) -> None:"""Tests that when calling validate_job_parameter with an nonvalid values for "dataFlow"that an exception is raised."""# GIVENjob_parameter: parameters.JobParameter = {"name": "foo","type": "PATH","dataFlow": data_flow,}# WHENdef when() -> None...
1
15
1
58
0
425
447
425
data_flow
[]
None
{"AnnAssign": 1, "Expr": 3, "With": 1}
12
23
12
["parameters.validate_job_parameter", "pytest.raises", "when", "str", "pytest.mark.parametrize", "pytest.param", "pytest.param", "pytest.param", "pytest.param", "pytest.param", "pytest.param", "pytest.param"]
0
[]
The function (test_validate_job_parameter_nonvalid_data_flow) defined within the public class called public.The function start at line 425 and ends at 447. It contains 15 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declares 12.0 func...
aws-deadline_deadline-cloud
public
public
0
0
test_validate_job_parameter_nonvalid_min_length_type.when
def when() -> None:parameters.validate_job_parameter(job_parameter)
1
2
0
12
0
472
473
472
null
[]
None
null
0
0
0
null
0
null
The function (test_validate_job_parameter_nonvalid_min_length_type.when) defined within the public class called public.The function start at line 472 and ends at 473. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value..
aws-deadline_deadline-cloud
public
public
0
0
test_validate_job_parameter_nonvalid_min_length_type
def test_validate_job_parameter_nonvalid_min_length_type(min_length: Any,) -> None:"""Tests that passing a value with an nonvalid "minLength" value raises an exception"""# GIVENjob_parameter: dict = {"name": "a","minLength": min_length,}# WHENdef when() -> None:parameters.validate_job_parameter(job_parameter)# THENwith...
1
14
1
52
0
461
481
461
min_length
[]
None
{"AnnAssign": 1, "Expr": 3, "With": 1}
12
21
12
["parameters.validate_job_parameter", "pytest.raises", "when", "str", "type", "pytest.mark.parametrize", "pytest.param", "pytest.param", "pytest.param", "pytest.param", "pytest.param", "pytest.param"]
0
[]
The function (test_validate_job_parameter_nonvalid_min_length_type) defined within the public class called public.The function start at line 461 and ends at 481. It contains 14 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declares 12....
aws-deadline_deadline-cloud
public
public
0
0
test_validate_job_parameter_nonvalid_min_length_negative.when
def when() -> None:parameters.validate_job_parameter(job_parameter)
1
2
0
12
0
494
495
494
null
[]
None
null
0
0
0
null
0
null
The function (test_validate_job_parameter_nonvalid_min_length_negative.when) defined within the public class called public.The function start at line 494 and ends at 495. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value..
aws-deadline_deadline-cloud
public
public
0
0
test_validate_job_parameter_nonvalid_min_length_negative
def test_validate_job_parameter_nonvalid_min_length_negative() -> None:"""Tests that passing a value with an nonvalid "minLength" value raises an exception"""# GIVENmin_length = -1job_parameter: dict = {"name": "a","minLength": min_length,}# WHENdef when() -> None:parameters.validate_job_parameter(job_parameter)# THENw...
1
13
0
52
1
484
503
484
['min_length']
None
{"AnnAssign": 1, "Assign": 1, "Expr": 3, "With": 1}
4
20
4
["parameters.validate_job_parameter", "pytest.raises", "when", "str"]
0
[]
The function (test_validate_job_parameter_nonvalid_min_length_negative) defined within the public class called public.The function start at line 484 and ends at 503. It contains 13 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declares...
aws-deadline_deadline-cloud
public
public
0
0
test_validate_job_parameter_nonvalid_max_length_type.when
def when() -> None:parameters.validate_job_parameter(job_parameter)
1
2
0
12
0
528
529
528
null
[]
None
null
0
0
0
null
0
null
The function (test_validate_job_parameter_nonvalid_max_length_type.when) defined within the public class called public.The function start at line 528 and ends at 529. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value..
aws-deadline_deadline-cloud
public
public
0
0
test_validate_job_parameter_nonvalid_max_length_type
def test_validate_job_parameter_nonvalid_max_length_type(max_length: Any,) -> None:"""Tests that passing a value with an nonvalid "maxLength" value raises an exception"""# GIVENjob_parameter: dict = {"name": "a","maxLength": max_length,}# WHENdef when() -> None:parameters.validate_job_parameter(job_parameter)# THENwith...
1
14
1
52
0
517
537
517
max_length
[]
None
{"AnnAssign": 1, "Expr": 3, "With": 1}
12
21
12
["parameters.validate_job_parameter", "pytest.raises", "when", "str", "type", "pytest.mark.parametrize", "pytest.param", "pytest.param", "pytest.param", "pytest.param", "pytest.param", "pytest.param"]
0
[]
The function (test_validate_job_parameter_nonvalid_max_length_type) defined within the public class called public.The function start at line 517 and ends at 537. It contains 14 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declares 12....
aws-deadline_deadline-cloud
public
public
0
0
test_validate_job_parameter_nonvalid_max_length_negative.when
def when() -> None:parameters.validate_job_parameter(job_parameter)
1
2
0
12
0
550
551
550
null
[]
None
null
0
0
0
null
0
null
The function (test_validate_job_parameter_nonvalid_max_length_negative.when) defined within the public class called public.The function start at line 550 and ends at 551. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value..
aws-deadline_deadline-cloud
public
public
0
0
test_validate_job_parameter_nonvalid_max_length_negative
def test_validate_job_parameter_nonvalid_max_length_negative() -> None:"""Tests that passing a value with an nonvalid "maxLength" value raises an exception"""# GIVENmax_length = -1job_parameter: dict = {"name": "a","maxLength": max_length,}# WHENdef when() -> None:parameters.validate_job_parameter(job_parameter)# THENw...
1
13
0
52
1
540
559
540
['max_length']
None
{"AnnAssign": 1, "Assign": 1, "Expr": 3, "With": 1}
4
20
4
["parameters.validate_job_parameter", "pytest.raises", "when", "str"]
0
[]
The function (test_validate_job_parameter_nonvalid_max_length_negative) defined within the public class called public.The function start at line 540 and ends at 559. It contains 13 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declares...
aws-deadline_deadline-cloud
public
public
0
0
test_validate_job_parameter_nonvalid_min_value_type.when
def when() -> None:parameters.validate_job_parameter(job_parameter)
1
2
0
12
0
582
583
582
null
[]
None
null
0
0
0
null
0
null
The function (test_validate_job_parameter_nonvalid_min_value_type.when) defined within the public class called public.The function start at line 582 and ends at 583. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value..
aws-deadline_deadline-cloud
public
public
0
0
test_validate_job_parameter_nonvalid_min_value_type
def test_validate_job_parameter_nonvalid_min_value_type(min_value: Any,) -> None:"""Tests that passing a value with an nonvalid "minValue" value raises an exception"""# GIVENjob_parameter: dict = {"name": "a","minValue": min_value,}# WHENdef when() -> None:parameters.validate_job_parameter(job_parameter)# THENwith pyte...
1
14
1
52
0
571
591
571
min_value
[]
None
{"AnnAssign": 1, "Expr": 3, "With": 1}
10
21
10
["parameters.validate_job_parameter", "pytest.raises", "when", "str", "type", "pytest.mark.parametrize", "pytest.param", "pytest.param", "pytest.param", "pytest.param"]
0
[]
The function (test_validate_job_parameter_nonvalid_min_value_type) defined within the public class called public.The function start at line 571 and ends at 591. It contains 14 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declares 10.0...
aws-deadline_deadline-cloud
public
public
0
0
test_validate_job_parameter_nonvalid_min_value_str.when
def when() -> None:parameters.validate_job_parameter(job_parameter)
1
2
0
12
0
607
608
607
null
[]
None
null
0
0
0
null
0
null
The function (test_validate_job_parameter_nonvalid_min_value_str.when) defined within the public class called public.The function start at line 607 and ends at 608. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value..
aws-deadline_deadline-cloud
public
public
0
0
test_validate_job_parameter_nonvalid_min_value_str
def test_validate_job_parameter_nonvalid_min_value_str(min_value: str) -> None:"""Tests that passing a non-numeric string value to "minValue" raises an exception"""# GIVENjob_parameter: dict = {"name": "a","minValue": min_value,}# WHENdef when() -> None:parameters.validate_job_parameter(job_parameter)# THENwith pytest....
1
12
1
51
0
598
616
598
min_value
[]
None
{"AnnAssign": 1, "Expr": 3, "With": 1}
5
19
5
["parameters.validate_job_parameter", "pytest.raises", "when", "str", "pytest.mark.parametrize"]
0
[]
The function (test_validate_job_parameter_nonvalid_min_value_str) defined within the public class called public.The function start at line 598 and ends at 616. It contains 12 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declares 5.0 f...
aws-deadline_deadline-cloud
public
public
0
0
test_validate_job_parameter_nonvalid_max_value_type.when
def when() -> None:parameters.validate_job_parameter(job_parameter)
1
2
0
12
0
639
640
639
null
[]
None
null
0
0
0
null
0
null
The function (test_validate_job_parameter_nonvalid_max_value_type.when) defined within the public class called public.The function start at line 639 and ends at 640. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value..
aws-deadline_deadline-cloud
public
public
0
0
test_validate_job_parameter_nonvalid_max_value_type
def test_validate_job_parameter_nonvalid_max_value_type(max_value: Any,) -> None:"""Tests that passing a value with an nonvalid "maxValue" value raises an exception"""# GIVENjob_parameter: dict = {"name": "a","maxValue": max_value,}# WHENdef when() -> None:parameters.validate_job_parameter(job_parameter)# THENwith pyte...
1
14
1
52
0
628
648
628
max_value
[]
None
{"AnnAssign": 1, "Expr": 3, "With": 1}
10
21
10
["parameters.validate_job_parameter", "pytest.raises", "when", "str", "type", "pytest.mark.parametrize", "pytest.param", "pytest.param", "pytest.param", "pytest.param"]
0
[]
The function (test_validate_job_parameter_nonvalid_max_value_type) defined within the public class called public.The function start at line 628 and ends at 648. It contains 14 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declares 10.0...
aws-deadline_deadline-cloud
public
public
0
0
test_validate_job_parameter_nonvalid_max_value_str.when
def when() -> None:parameters.validate_job_parameter(job_parameter)
1
2
0
12
0
664
665
664
null
[]
None
null
0
0
0
null
0
null
The function (test_validate_job_parameter_nonvalid_max_value_str.when) defined within the public class called public.The function start at line 664 and ends at 665. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value..
aws-deadline_deadline-cloud
public
public
0
0
test_validate_job_parameter_nonvalid_max_value_str
def test_validate_job_parameter_nonvalid_max_value_str(max_value: str) -> None:"""Tests that passing a non-numeric string value to "maxValue" raises an exception"""# GIVENjob_parameter: dict = {"name": "a","maxValue": max_value,}# WHENdef when() -> None:parameters.validate_job_parameter(job_parameter)# THENwith pytest....
1
12
1
51
0
655
673
655
max_value
[]
None
{"AnnAssign": 1, "Expr": 3, "With": 1}
5
19
5
["parameters.validate_job_parameter", "pytest.raises", "when", "str", "pytest.mark.parametrize"]
0
[]
The function (test_validate_job_parameter_nonvalid_max_value_str) defined within the public class called public.The function start at line 655 and ends at 673. It contains 12 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declares 5.0 f...
aws-deadline_deadline-cloud
public
public
0
0
test_validate_job_parameter_nonvalid_object_type.when
def when() -> None:parameters.validate_job_parameter(job_parameter)
1
2
0
12
0
701
702
701
null
[]
None
null
0
0
0
null
0
null
The function (test_validate_job_parameter_nonvalid_object_type.when) defined within the public class called public.The function start at line 701 and ends at 702. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value..
aws-deadline_deadline-cloud
public
public
0
0
test_validate_job_parameter_nonvalid_object_type
def test_validate_job_parameter_nonvalid_object_type(object_type: Any,) -> None:"""Tests that when calling validate_job_parameter with an nonvalid values for "objectType"that an exception is raised."""# GIVENjob_parameter: parameters.JobParameter = {"name": "foo","type": "PATH","objectType": object_type,}# WHENdef when...
1
15
1
58
0
688
710
688
object_type
[]
None
{"AnnAssign": 1, "Expr": 3, "With": 1}
12
23
12
["parameters.validate_job_parameter", "pytest.raises", "when", "str", "pytest.mark.parametrize", "pytest.param", "pytest.param", "pytest.param", "pytest.param", "pytest.param", "pytest.param", "pytest.param"]
0
[]
The function (test_validate_job_parameter_nonvalid_object_type) defined within the public class called public.The function start at line 688 and ends at 710. It contains 15 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declares 12.0 fu...
aws-deadline_deadline-cloud
public
public
0
0
test_validate_job_parameter_valid_no_user_interface
def test_validate_job_parameter_valid_no_user_interface(valid_type: str,) -> None:"""Tests that passing a job parameter to validate_job_parameter without a "userInterface"key does not raise an exception"""# GIVENjob_parameter: parameters.JobParameter = {"name": "foo","type": valid_type,}# WHEN# Default is to not requir...
1
9
1
39
1
713
730
713
valid_type
['result']
None
{"AnnAssign": 1, "Assign": 1, "Expr": 1}
1
18
1
["parameters.validate_job_parameter"]
0
[]
The function (test_validate_job_parameter_valid_no_user_interface) defined within the public class called public.The function start at line 713 and ends at 730. It contains 9 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declare 1.0 fu...
aws-deadline_deadline-cloud
public
public
0
0
test_validate_job_parameter_nonvalid_userinterface.when
def when():parameters.validate_job_parameter(job_parameter)
1
2
0
10
0
750
751
750
null
[]
None
null
0
0
0
null
0
null
The function (test_validate_job_parameter_nonvalid_userinterface.when) defined within the public class called public.The function start at line 750 and ends at 751. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value..
aws-deadline_deadline-cloud
public
public
0
0
test_validate_job_parameter_nonvalid_userinterface
def test_validate_job_parameter_nonvalid_userinterface(valid_type: str,) -> None:"""Tests that an nonvalid user interface raises an exception. This is simply testing thatan exception raised by validate_user_interface_spec is not caught and ignored"""# GIVENjob_parameter: parameters.JobParameter = {"name": "foo","type":...
1
17
1
76
2
733
757
733
valid_type
['error_msg', 'user_interface_validation_error']
None
{"AnnAssign": 1, "Assign": 2, "Expr": 3, "With": 2}
5
25
5
["Exception", "patch.object", "parameters.validate_job_parameter", "pytest.raises", "when"]
0
[]
The function (test_validate_job_parameter_nonvalid_userinterface) defined within the public class called public.The function start at line 733 and ends at 757. It contains 17 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declares 5.0 f...
aws-deadline_deadline-cloud
TestTypeValidationAndConversion
public
0
0
test_string_parameter_validation_valid_values
def test_string_parameter_validation_valid_values(self, job_parameter: parameters.JobParameter, input_value: str, expected_output: str) -> None:"""Test that valid STRING parameter values are returned unchanged."""result = parameters.validate_job_parameter_value(job_parameter, input_value)assert result == expected_outpu...
1
6
4
43
0
97
103
97
self,job_parameter,input_value,expected_output
[]
None
{"Assign": 1, "Expr": 1}
7
7
7
["parameters.validate_job_parameter_value", "isinstance", "pytest.mark.parametrize", "pytest.param", "pytest.param", "pytest.param", "pytest.param"]
0
[]
The function (test_string_parameter_validation_valid_values) defined within the public class called TestTypeValidationAndConversion.The function start at line 97 and ends at 103. It contains 6 lines of code and it has a cyclomatic complexity of 1. It takes 4 parameters, represented as [97.0] and does not return any val...
aws-deadline_deadline-cloud
TestTypeValidationAndConversion
public
0
0
test_string_parameter_validation_type_mismatch_errors
def test_string_parameter_validation_type_mismatch_errors(self) -> None:"""Test that STRING parameters raise ValueError for non-string inputs."""with pytest.raises(TypeError,match=r"Job parameter 'test_string_param' has type STRING but got value 123 of type <class 'int'>",):parameters.validate_job_parameter_value(BASE_...
1
6
1
30
0
105
111
105
self
[]
None
{"Expr": 2, "With": 1}
2
7
2
["pytest.raises", "parameters.validate_job_parameter_value"]
0
[]
The function (test_string_parameter_validation_type_mismatch_errors) defined within the public class called TestTypeValidationAndConversion.The function start at line 105 and ends at 111. It contains 6 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return a...
aws-deadline_deadline-cloud
TestTypeValidationAndConversion
public
0
0
test_path_parameter_validation_valid_values
def test_path_parameter_validation_valid_values(self, job_parameter: parameters.JobParameter, input_value: str, expected_output: str) -> None:"""Test that valid PATH parameter values are returned unchanged."""result = parameters.validate_job_parameter_value(job_parameter, input_value)assert result == expected_outputass...
1
6
4
43
0
137
143
137
self,job_parameter,input_value,expected_output
[]
None
{"Assign": 1, "Expr": 1}
7
7
7
["parameters.validate_job_parameter_value", "isinstance", "pytest.mark.parametrize", "pytest.param", "pytest.param", "pytest.param", "pytest.param"]
0
[]
The function (test_path_parameter_validation_valid_values) defined within the public class called TestTypeValidationAndConversion.The function start at line 137 and ends at 143. It contains 6 lines of code and it has a cyclomatic complexity of 1. It takes 4 parameters, represented as [137.0] and does not return any val...
aws-deadline_deadline-cloud
TestTypeValidationAndConversion
public
0
0
test_path_parameter_validation_type_mismatch_errors
def test_path_parameter_validation_type_mismatch_errors(self) -> None:"""Test that PATH parameter raise ValueError for non-string input."""with pytest.raises(TypeError,match=r"Job parameter 'test_path_param' has type PATH but got value 123 of type <class 'int'>",):parameters.validate_job_parameter_value(BASE_PATH_PARAM...
1
6
1
30
0
145
151
145
self
[]
None
{"Expr": 2, "With": 1}
2
7
2
["pytest.raises", "parameters.validate_job_parameter_value"]
0
[]
The function (test_path_parameter_validation_type_mismatch_errors) defined within the public class called TestTypeValidationAndConversion.The function start at line 145 and ends at 151. It contains 6 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any...
aws-deadline_deadline-cloud
TestTypeValidationAndConversion
public
0
0
test_int_parameter_validation_valid_values
def test_int_parameter_validation_valid_values(self,job_parameter: parameters.JobParameter,input_value: Union[int, str],expected_output: int,) -> None:"""Test that valid INT parameter values and conversions work correctly."""result = parameters.validate_job_parameter_value(job_parameter, input_value)assert result == ex...
1
9
4
49
0
164
173
164
self,job_parameter,input_value,expected_output
[]
None
{"Assign": 1, "Expr": 1}
9
10
9
["parameters.validate_job_parameter_value", "isinstance", "pytest.mark.parametrize", "pytest.param", "pytest.param", "pytest.param", "pytest.param", "pytest.param", "pytest.param"]
0
[]
The function (test_int_parameter_validation_valid_values) defined within the public class called TestTypeValidationAndConversion.The function start at line 164 and ends at 173. It contains 9 lines of code and it has a cyclomatic complexity of 1. It takes 4 parameters, represented as [164.0] and does not return any valu...
aws-deadline_deadline-cloud
TestTypeValidationAndConversion
public
0
0
test_int_parameter_validation_conversion_errors
def test_int_parameter_validation_conversion_errors(self, job_parameter: parameters.JobParameter, input_value: Any, expected_error_pattern: str) -> None:"""Test that INT parameters raise ValueError for non-convertible values."""with pytest.raises((ValueError, TypeError), match=expected_error_pattern):parameters.validat...
1
5
4
46
0
216
221
216
self,job_parameter,input_value,expected_error_pattern
[]
None
{"Expr": 2, "With": 1}
9
6
9
["pytest.raises", "parameters.validate_job_parameter_value", "pytest.mark.parametrize", "pytest.param", "pytest.param", "pytest.param", "pytest.param", "pytest.param", "pytest.param"]
0
[]
The function (test_int_parameter_validation_conversion_errors) defined within the public class called TestTypeValidationAndConversion.The function start at line 216 and ends at 221. It contains 5 lines of code and it has a cyclomatic complexity of 1. It takes 4 parameters, represented as [216.0] and does not return any...