ScriptCollection 4.4.17__py3-none-any.whl → 4.4.18__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- ScriptCollection/ScriptCollectionCore.py +1 -1
- ScriptCollection/TFCPS/Flutter/TFCPS_CodeUnitSpecific_Flutter.py +14 -2
- {scriptcollection-4.4.17.dist-info → scriptcollection-4.4.18.dist-info}/METADATA +1 -1
- {scriptcollection-4.4.17.dist-info → scriptcollection-4.4.18.dist-info}/RECORD +7 -7
- {scriptcollection-4.4.17.dist-info → scriptcollection-4.4.18.dist-info}/WHEEL +0 -0
- {scriptcollection-4.4.17.dist-info → scriptcollection-4.4.18.dist-info}/entry_points.txt +0 -0
- {scriptcollection-4.4.17.dist-info → scriptcollection-4.4.18.dist-info}/top_level.txt +0 -0
|
@@ -145,12 +145,24 @@ class TFCPS_CodeUnitSpecific_Flutter_Functions(TFCPS_CodeUnitSpecific_Base):
|
|
|
145
145
|
content = GeneralUtilities.read_text_from_file(coverage_file)
|
|
146
146
|
content = re.sub('<![^<]+>', '', content)
|
|
147
147
|
content = re.sub('\\\\', '/', content)
|
|
148
|
-
content =
|
|
148
|
+
content = self.__rewrite_flutter_coverage_package_names(content, codeunit_name)
|
|
149
149
|
content = re.sub('\\ filename=\\"lib/', f' filename="{package_name}/lib/', content)
|
|
150
150
|
GeneralUtilities.write_text_to_file(coverage_file, content)
|
|
151
|
-
self.tfcps_Tools_General.merge_packages(coverage_file,
|
|
151
|
+
self.tfcps_Tools_General.merge_packages(coverage_file, codeunit_name)
|
|
152
152
|
self.tfcps_Tools_General.calculate_entire_line_rate(coverage_file)
|
|
153
153
|
self.run_testcases_common_post_task(repository_folder, codeunit_name, True, self.get_target_environment_type())
|
|
154
|
+
|
|
155
|
+
@staticmethod
|
|
156
|
+
def __rewrite_flutter_coverage_package_names(cobertura_xml_content:str,codeunit_name:str) -> str:
|
|
157
|
+
"""lcov_cobertura names a package after its source-subfolder relative to "lib" (for example "lib" itself
|
|
158
|
+
for a file directly in "lib", "lib.chess" for a file in "lib/chess"), which has nothing to do with the
|
|
159
|
+
codeunit-name. TFCPS_Tools_General.merge_packages expects every package of this coverage-file to equal the
|
|
160
|
+
codeunit-name or to be dotted below it, so every "lib"-prefix is rewritten to the codeunit-name here
|
|
161
|
+
instead: "lib" becomes "<codeunit-name>", "lib.chess" becomes "<codeunit-name>.chess". Without this,
|
|
162
|
+
merge_packages either keeps nothing (a Flutter-codeunit's packages never actually match the codeunit-name)
|
|
163
|
+
or - once the codeunit's lib-folder has only that single, unprefixed "lib"-package - crashes outright,
|
|
164
|
+
because merge_packages is not the only caller which expects every package to have a name."""
|
|
165
|
+
return re.sub(r' name="lib(\.[^"]*)?"', lambda match: f' name="{codeunit_name}{match.group(1) or ""}"', cobertura_xml_content)
|
|
154
166
|
|
|
155
167
|
|
|
156
168
|
def get_dependencies(self)->dict[str,set[str]]:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: scriptcollection
|
|
3
|
-
Version: 4.4.
|
|
3
|
+
Version: 4.4.18
|
|
4
4
|
Summary: The ScriptCollection is the place for reusable scripts.
|
|
5
5
|
Author-email: Marius Göcke <marius.goecke@gmail.com>
|
|
6
6
|
Project-URL: Homepage, https://github.com/anionDev/ScriptCollection
|
|
@@ -9,7 +9,7 @@ ScriptCollection/ProgramRunnerMock.py,sha256=uTu-aFle1W_oKjeQEmuPsFPQpvo0kRf2FrR
|
|
|
9
9
|
ScriptCollection/ProgramRunnerPopen.py,sha256=zVD-gZY85o8wiGFcpYAGNDl-tXaKzipl1Bkhqy2ois4,4681
|
|
10
10
|
ScriptCollection/ProgramRunnerSudo.py,sha256=ot9Ib-plQ8wejR9M2XXfnx6GR-va9k8SH1gAC5kjaJ0,5123
|
|
11
11
|
ScriptCollection/SCLog.py,sha256=Fjf8Pdi63cXHGMxL_aI6A0dwGm7QIfrv3czjvpSUlaM,4705
|
|
12
|
-
ScriptCollection/ScriptCollectionCore.py,sha256=
|
|
12
|
+
ScriptCollection/ScriptCollectionCore.py,sha256=kQ7sqGlLUoT01_W4W5yNElMmZtdXESOGBCEL247xllk,262108
|
|
13
13
|
ScriptCollection/TestKind.py,sha256=EBTLR8yBz5VmWA2NZIpDTbQNg6tkfv_kAsIzEJ--mCI,1756
|
|
14
14
|
ScriptCollection/UnassignedVariablesCheck.py,sha256=v59qLQ5RRvx31ouuCW7NWZj3McWENvGBPkV5ZGBmqJE,4344
|
|
15
15
|
ScriptCollection/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -57,7 +57,7 @@ ScriptCollection/TFCPS/DotNet/CertificateGeneratorInformationGenerate.py,sha256=
|
|
|
57
57
|
ScriptCollection/TFCPS/DotNet/CertificateGeneratorInformationNoGenerate.py,sha256=i0zEGehj0sttxjjZtoq2KFSKp_ulxVyWp_ZgAhIY_So,241
|
|
58
58
|
ScriptCollection/TFCPS/DotNet/TFCPS_CodeUnitSpecific_DotNet.py,sha256=GCFzDNAnmm40EeqOYgD_EeuEwDY58ujwJ1-Zn_naamc,61797
|
|
59
59
|
ScriptCollection/TFCPS/DotNet/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
60
|
-
ScriptCollection/TFCPS/Flutter/TFCPS_CodeUnitSpecific_Flutter.py,sha256=
|
|
60
|
+
ScriptCollection/TFCPS/Flutter/TFCPS_CodeUnitSpecific_Flutter.py,sha256=GdYuGlaj2h5_ZOdin4FZ2mmrGApK0b19hHVIuxAM2No,12618
|
|
61
61
|
ScriptCollection/TFCPS/Flutter/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
62
62
|
ScriptCollection/TFCPS/Go/TFCPS_CodeUnitSpecific_Go.py,sha256=m4Pax-U6o5XuspLnLfnWjyQMtoC7zBDDNJW9EhLWjeE,9012
|
|
63
63
|
ScriptCollection/TFCPS/Go/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -71,8 +71,8 @@ ScriptCollection/TFCPS/Rust/TFCPS_CodeUnitSpecific_Rust.py,sha256=yyjWPMHQjPLkML
|
|
|
71
71
|
ScriptCollection/TFCPS/Rust/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
72
72
|
ScriptCollection/TFCPS/TypeScript/TFCPS_CodeUnitSpecific_TypeScript.py,sha256=5z990qyO5durX07xRWRwju1hl6wpjQAy2f-yRwJ-7s0,11856
|
|
73
73
|
ScriptCollection/TFCPS/TypeScript/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
74
|
-
scriptcollection-4.4.
|
|
75
|
-
scriptcollection-4.4.
|
|
76
|
-
scriptcollection-4.4.
|
|
77
|
-
scriptcollection-4.4.
|
|
78
|
-
scriptcollection-4.4.
|
|
74
|
+
scriptcollection-4.4.18.dist-info/METADATA,sha256=tUS98ELUDrFyUEbaHHJMB67Qt_8JqmCQqwErtzPRb34,7648
|
|
75
|
+
scriptcollection-4.4.18.dist-info/WHEEL,sha256=YVMoNqKzERt-wjUZwJ33xBGAwnFl-4cqbYkTtWa4itE,91
|
|
76
|
+
scriptcollection-4.4.18.dist-info/entry_points.txt,sha256=GNma7tN0J59EvK71su-G1w22RnZ05bXcPrELyLx3AL0,6151
|
|
77
|
+
scriptcollection-4.4.18.dist-info/top_level.txt,sha256=hY2hOVH0V0Ce51WB76zKkIWTUNwMUdHo4XDkR2vYVwg,17
|
|
78
|
+
scriptcollection-4.4.18.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|