@@ -69,10 +69,8 @@ def test_apply_set_field_of_external_object(tmpdir):
69
69
value_set_expectation = lvsa_expectation .get_value_set_for_precise_evs (
70
70
parameter_name = 'parameter_a' , suffix = '.object' )
71
71
72
- value_set_expectation .check_number_of_values (2 )
72
+ value_set_expectation .check_number_of_values (1 )
73
73
value_set_expectation .check_contains_root_object_evs (label_suffix = 'parameter_object' )
74
- value_set_expectation .check_contains_precise_evs (label_suffix = 'parameter_a' , access_path = ['.object' ],
75
- is_initializer = True )
76
74
77
75
78
76
def test_conditionally_set_field_of_external_object (tmpdir ):
@@ -95,15 +93,11 @@ def test_apply_conditionally_set_field_of_external_object(tmpdir):
95
93
value_set_expectation = lvsa_expectation .get_value_set_for_precise_evs (
96
94
parameter_name = 'parameter_a' , suffix = '.object' )
97
95
98
- value_set_expectation .check_number_of_values (4 )
99
- # Two values that existed before the function call
96
+ value_set_expectation .check_number_of_values (3 )
100
97
value_set_expectation .check_contains_per_field_evs (access_path = ['.object' ])
101
98
value_set_expectation .check_contains_precise_evs (label_suffix = 'parameter_a' , access_path = ['.object' ],
102
99
is_initializer = False )
103
- # Two values that came from the function call
104
100
value_set_expectation .check_contains_root_object_evs (label_suffix = 'parameter_object' )
105
- value_set_expectation .check_contains_precise_evs (label_suffix = 'parameter_a' , access_path = ['.object' ],
106
- is_initializer = True )
107
101
108
102
109
103
def test_read_field_before_writing_to_aliasable_field (tmpdir ):
@@ -176,9 +170,8 @@ def test_call_function_to_allocate_new_object(tmpdir):
176
170
177
171
value_set_expectation = lvsa_expectation .get_value_set_for_output ()
178
172
179
- value_set_expectation .check_number_of_values (3 )
173
+ value_set_expectation .check_number_of_values (2 )
180
174
value_set_expectation .check_contains_per_field_evs (access_path = ['.object' ])
181
- value_set_expectation .check_contains_precise_evs (label_suffix = 'param_A' , access_path = ['.object' ])
182
175
value_set_expectation .check_contains_dynamic_object ()
183
176
184
177
@@ -266,3 +259,23 @@ def test_apply_array_deref(tmpdir):
266
259
value_set_expectation .check_number_of_values (1 )
267
260
value_set_expectation .check_contains_precise_evs (label_suffix = 'object_array' , access_path = ['.data' , '[]' ])
268
261
# value_set_expectation.check_contains_per_field_evs(access_path=['.object'], is_initializer=True)
262
+
263
+
264
+ def test_check_strong_writes_for_precise_evs (tmpdir ):
265
+ lvsa_driver = LvsaDriver (tmpdir , folder_name ).with_test_function ('check_strong_writes_for_precise_evs' )
266
+ lvsa_expectation = lvsa_driver .run ()
267
+
268
+ value_set_expectation = lvsa_expectation .get_value_set_for_public_static ('output' )
269
+
270
+ value_set_expectation .check_number_of_values (1 )
271
+ value_set_expectation .check_contains_dynamic_object (1 )
272
+
273
+
274
+ def test_check_aliasing_function_arguments (tmpdir ):
275
+ lvsa_driver = LvsaDriver (tmpdir , folder_name ).with_test_function ('check_aliasing_function_arguments' )
276
+ lvsa_expectation = lvsa_driver .run ()
277
+
278
+ value_set_expectation = lvsa_expectation .get_value_set_for_public_static ('output' )
279
+
280
+ value_set_expectation .check_number_of_values (2 )
281
+ value_set_expectation .check_contains_dynamic_object (2 )
0 commit comments