@@ -960,10 +960,6 @@ def a_ql_class_tester(**kwargs):
960960 return ql .ClassTester (** kwargs , elements_module = stub_import )
961961
962962
963- def a_ql_property_tester (** kwargs ):
964- return ql .PropertyTester (** kwargs , elements_module = stub_import )
965-
966-
967963def test_test_source_present (opts , generate_tests ):
968964 write (opts .ql_test_output / "A" / "test.swift" )
969965 assert generate_tests (
@@ -1041,31 +1037,16 @@ def test_test_partial_properties(opts, generate_tests):
10411037 "B/B.ql" : a_ql_class_tester (
10421038 class_name = "B" ,
10431039 properties = [
1044- ql .PropertyForTest (getter = "hasX" ),
1045- ql .PropertyForTest (getter = "getNumberOfYs" , type = "int" ),
1046- ql .PropertyForTest (getter = "getNumberOfWs" , type = "int" ),
1040+ ql .PropertyForTest (getter = "getX" , is_total = False , type = "string" ),
1041+ ql .PropertyForTest (
1042+ getter = "getY" , is_total = False , is_indexed = True , type = "bool"
1043+ ),
1044+ ql .PropertyForTest (
1045+ getter = "getZ" , is_total = False , is_indexed = True , type = "int"
1046+ ),
1047+ ql .PropertyForTest (getter = "getAW" , is_total = False , type = "string" ),
10471048 ],
10481049 ),
1049- "B/B_getX.ql" : a_ql_property_tester (
1050- class_name = "B" ,
1051- property = ql .PropertyForTest (getter = "getX" , is_total = False , type = "string" ),
1052- ),
1053- "B/B_getY.ql" : a_ql_property_tester (
1054- class_name = "B" ,
1055- property = ql .PropertyForTest (
1056- getter = "getY" , is_total = False , is_indexed = True , type = "bool"
1057- ),
1058- ),
1059- "B/B_getZ.ql" : a_ql_property_tester (
1060- class_name = "B" ,
1061- property = ql .PropertyForTest (
1062- getter = "getZ" , is_total = False , is_indexed = True , type = "int"
1063- ),
1064- ),
1065- "B/B_getAW.ql" : a_ql_property_tester (
1066- class_name = "B" ,
1067- property = ql .PropertyForTest (getter = "getAW" , is_total = False , type = "string" ),
1068- ),
10691050 }
10701051
10711052
@@ -1090,15 +1071,11 @@ def test_test_properties_deduplicated(opts, generate_tests):
10901071 class_name = "Final" ,
10911072 properties = [
10921073 ql .PropertyForTest (getter = "getX" , type = "string" ),
1093- ql .PropertyForTest (getter = "getNumberOfYs" , type = "int" ),
1074+ ql .PropertyForTest (
1075+ getter = "getY" , is_total = False , is_indexed = True , type = "bool"
1076+ ),
10941077 ],
10951078 ),
1096- "Final/Final_getY.ql" : a_ql_property_tester (
1097- class_name = "Final" ,
1098- property = ql .PropertyForTest (
1099- getter = "getY" , is_total = False , is_indexed = True , type = "bool"
1100- ),
1101- ),
11021079 }
11031080
11041081
0 commit comments