@@ -44,8 +44,9 @@ def test_apply_field_getter(tmpdir):
44
44
45
45
value_set_expectation = lvsa_expectation .get_value_set_for_return_value ()
46
46
47
- value_set_expectation .check_number_of_values (1 )
47
+ value_set_expectation .check_number_of_values (2 )
48
48
value_set_expectation .check_contains_per_field_evs (access_path = ['.object' ])
49
+ value_set_expectation .check_contains_precise_evs (access_path = ['.a1' , '.object' ])
49
50
50
51
51
52
def test_set_field_of_external_object (tmpdir ):
@@ -113,21 +114,17 @@ def test_read_field_before_writing_to_aliasable_field(tmpdir):
113
114
value_set_expectation_2 .check_contains_per_field_evs (access_path = ['.object' ])
114
115
115
116
117
+ @pytest .mark .xfail (strict = True )
116
118
def test_apply_read_field_before_writing_to_aliasable_field (tmpdir ):
117
119
lvsa_driver = LvsaDriver (tmpdir , folder_name ).with_test_function (
118
120
'apply_read_field_before_writing_to_aliasable_field' )
119
121
lvsa_expectation = lvsa_driver .run ()
120
122
121
- value_set_expectation_1 = lvsa_expectation .get_value_set_for_per_field_evs (inner_class_name = 'A' , suffix = '.object' )
122
-
123
- value_set_expectation_1 .check_number_of_values (2 )
124
- value_set_expectation_1 .check_contains_per_field_evs (access_path = ['.object' ], is_initializer = True )
125
- value_set_expectation_1 .check_contains_dynamic_object ()
126
-
127
- value_set_expectation_2 = lvsa_expectation .get_value_set_for_output ()
123
+ value_set_expectation = lvsa_expectation .get_value_set_for_output ()
128
124
129
- value_set_expectation_2 .check_number_of_values (1 )
130
- value_set_expectation_2 .check_contains_per_field_evs (access_path = ['.object' ])
125
+ value_set_expectation .check_number_of_values (1 )
126
+ value_set_expectation .check_contains_precise_evs (label_suffix = 'this' , access_path = ['.a2' ,'.object' ])
127
+ # value_set_expectation.check_contains_per_field_evs(access_path=['.object'], is_initializer=True)
131
128
132
129
133
130
def test_read_field_after_writing_to_aliasable_field (tmpdir ):
@@ -148,22 +145,18 @@ def test_read_field_after_writing_to_aliasable_field(tmpdir):
148
145
value_set_expectation_2 .check_contains_dynamic_object ()
149
146
150
147
148
+ @pytest .mark .xfail (strict = True )
151
149
def test_apply_read_field_after_writing_to_aliasable_field (tmpdir ):
152
150
lvsa_driver = LvsaDriver (tmpdir , folder_name ).with_test_function (
153
151
'apply_read_field_after_writing_to_aliasable_field' )
154
152
lvsa_expectation = lvsa_driver .run ()
155
153
156
- value_set_expectation_1 = lvsa_expectation .get_value_set_for_per_field_evs (inner_class_name = 'A' , suffix = '.object' )
157
-
158
- value_set_expectation_1 .check_number_of_values (2 )
159
- value_set_expectation_1 .check_contains_per_field_evs (access_path = ['.object' ], is_initializer = True )
160
- value_set_expectation_1 .check_contains_dynamic_object ()
161
-
162
- value_set_expectation_2 = lvsa_expectation .get_value_set_for_output ()
154
+ value_set_expectation = lvsa_expectation .get_value_set_for_output ()
163
155
164
- value_set_expectation_2 .check_number_of_values (2 )
165
- value_set_expectation_2 .check_contains_per_field_evs (access_path = ['.object' ])
166
- value_set_expectation_2 .check_contains_dynamic_object ()
156
+ value_set_expectation .check_number_of_values (2 )
157
+ value_set_expectation .check_contains_precise_evs (label_suffix = 'this' , access_path = ['.a2' , '.object' ])
158
+ value_set_expectation .check_contains_dynamic_object ()
159
+ # value_set_expectation.check_contains_per_field_evs(access_path=['.object'], is_initializer=True)
167
160
168
161
169
162
def test_call_function_to_allocate_new_object (tmpdir ):
@@ -178,15 +171,17 @@ def test_call_function_to_allocate_new_object(tmpdir):
178
171
value_set_expectation .check_contains_dynamic_object ()
179
172
180
173
174
+ @pytest .mark .xfail (strict = True )
181
175
def test_apply_call_function_to_allocate_new_object (tmpdir ):
182
176
lvsa_driver = LvsaDriver (tmpdir , folder_name ).with_test_function ('apply_call_function_to_allocate_new_object' )
183
177
lvsa_expectation = lvsa_driver .run ()
184
178
185
179
value_set_expectation = lvsa_expectation .get_value_set_for_output ()
186
180
187
181
value_set_expectation .check_number_of_values (2 )
188
- value_set_expectation .check_contains_per_field_evs ( access_path = ['.object' ])
182
+ value_set_expectation .check_contains_precise_evs ( label_suffix = 'param_A' , access_path = ['.object' ])
189
183
value_set_expectation .check_contains_dynamic_object ()
184
+ # value_set_expectation.check_contains_per_field_evs(access_path=['.object'], is_initializer=True)
190
185
191
186
192
187
def test_get_list_node (tmpdir ):
@@ -208,7 +203,7 @@ def test_apply_get_list_node(tmpdir):
208
203
value_set_expectation = lvsa_expectation .get_value_set_for_output ()
209
204
210
205
value_set_expectation .check_number_of_values (1 )
211
- value_set_expectation .check_contains_per_field_evs ()
206
+ value_set_expectation .check_contains_per_field_evs (access_path = [ '.data' ] )
212
207
213
208
214
209
def test_two_field_derefs (tmpdir ):
@@ -222,14 +217,16 @@ def test_two_field_derefs(tmpdir):
222
217
value_set_expectation .check_contains_per_field_evs (access_path = ['.object' ])
223
218
224
219
220
+ @pytest .mark .xfail (strict = True )
225
221
def test_apply_two_field_derefs (tmpdir ):
226
222
lvsa_driver = LvsaDriver (tmpdir , folder_name ).with_test_function ('apply_two_field_derefs' )
227
223
lvsa_expectation = lvsa_driver .run ()
228
224
229
225
value_set_expectation = lvsa_expectation .get_value_set_for_output ()
230
226
231
227
value_set_expectation .check_number_of_values (1 )
232
- value_set_expectation .check_contains_per_field_evs (access_path = ['.object' ])
228
+ value_set_expectation .check_contains_precise_evs (label_suffix = 'parameter_b' , access_path = ['.a' , '.object' ])
229
+ # value_set_expectation.check_contains_per_field_evs(access_path=['.object'], is_initializer=True)
233
230
234
231
235
232
def test_array_deref (tmpdir ):
@@ -243,32 +240,13 @@ def test_array_deref(tmpdir):
243
240
value_set_expectation .check_contains_per_field_evs (access_path = ['[]' ])
244
241
245
242
243
+ @pytest .mark .xfail (strict = True )
246
244
def test_apply_array_deref (tmpdir ):
247
245
lvsa_driver = LvsaDriver (tmpdir , folder_name ).with_test_function ('apply_array_deref' )
248
246
lvsa_expectation = lvsa_driver .run ()
249
247
250
248
value_set_expectation = lvsa_expectation .get_value_set_for_output ()
251
249
252
250
value_set_expectation .check_number_of_values (1 )
253
- value_set_expectation .check_contains_per_field_evs (access_path = ['[]' ])
254
-
255
-
256
- def test_check_using_precise_access_paths (tmpdir ):
257
- lvsa_driver = LvsaDriver (tmpdir , folder_name ).with_test_function ('check_using_precise_access_paths' )
258
- lvsa_expectation = lvsa_driver .run ()
259
-
260
- value_set_expectation = lvsa_expectation .get_value_set_for_public_static ('output' )
261
-
262
- value_set_expectation .check_number_of_values (1 )
263
- value_set_expectation .check_contains_null_object ()
264
-
265
-
266
- def test_check_using_imprecise_access_paths (tmpdir ):
267
- lvsa_driver = LvsaDriver (tmpdir , folder_name ).with_test_function ('check_using_imprecise_access_paths' )
268
- lvsa_expectation = lvsa_driver .run ()
269
-
270
- value_set_expectation = lvsa_expectation .get_value_set_for_public_static ('output' )
271
-
272
- value_set_expectation .check_number_of_values (2 )
273
- value_set_expectation .check_contains_null_object ()
274
- value_set_expectation .check_contains_dynamic_object ()
251
+ value_set_expectation .check_contains_precise_evs (label_suffix = 'object_array' , access_path = ['.data' , '[]' ])
252
+ # value_set_expectation.check_contains_per_field_evs(access_path=['.object'], is_initializer=True)
0 commit comments