@lcap/nasl 3.3.3-beta.8 → 3.3.5-beta.1
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.
- package/.nyc_output/{78804420-ead6-486f-b682-ab54ccd95dc9.json → b920244d-8d01-4e76-be5a-95132217c5a1.json} +1 -1
- package/.nyc_output/processinfo/b920244d-8d01-4e76-be5a-95132217c5a1.json +1 -0
- package/.nyc_output/processinfo/index.json +1 -1
- package/coverage/index.html +113 -128
- package/coverage/src/automate/engine/index.html +1 -1
- package/coverage/src/automate/engine/utils.js.html +26 -26
- package/coverage/src/bak/index.html +15 -15
- package/coverage/src/bak/translator.js.html +63 -390
- package/coverage/src/breakpoint/generator/AfterStartNode.ts.html +1 -1
- package/coverage/src/breakpoint/generator/BeforeEndNode.ts.html +1 -1
- package/coverage/src/breakpoint/generator/BreakpointNode.ts.html +1 -1
- package/coverage/src/breakpoint/generator/CallbackNode.ts.html +1 -1
- package/coverage/src/breakpoint/generator/index.html +1 -1
- package/coverage/src/breakpoint/generator/index.ts.html +1 -1
- package/coverage/src/breakpoint/index.html +1 -1
- package/coverage/src/breakpoint/index.ts.html +1 -1
- package/coverage/src/breakpoint/shared/constants.ts.html +1 -1
- package/coverage/src/breakpoint/shared/index.html +1 -1
- package/coverage/src/breakpoint/shared/index.ts.html +1 -1
- package/coverage/src/breakpoint/shared/operations.ts.html +2 -2
- package/coverage/src/breakpoint/shared/socket.ts.html +1 -1
- package/coverage/src/breakpoint/shared/utils.ts.html +1 -1
- package/coverage/src/breakpoint/store/core.ts.html +3 -3
- package/coverage/src/breakpoint/store/dock.ts.html +1 -1
- package/coverage/src/breakpoint/store/index.html +1 -1
- package/coverage/src/breakpoint/store/index.ts.html +1 -1
- package/coverage/src/common/BaseNode.ts.html +370 -592
- package/coverage/src/common/Command.ts.html +1 -1
- package/coverage/src/common/EventEmitter.ts.html +34 -31
- package/coverage/src/common/Messager.ts.html +1 -1
- package/coverage/src/common/asyncFuncMap.ts.html +1 -1
- package/coverage/src/common/index.html +23 -38
- package/coverage/src/common/index.ts.html +4 -7
- package/coverage/src/concepts/Abort__.ts.html +9 -36
- package/coverage/src/concepts/Anchor__.ts.html +22 -58
- package/coverage/src/concepts/AnonymousFunction__.ts.html +77 -107
- package/coverage/src/concepts/App__.ts.html +253 -907
- package/coverage/src/concepts/Argument__.ts.html +54 -195
- package/coverage/src/concepts/Assignee__.ts.html +70 -79
- package/coverage/src/concepts/AssignmentLine__.ts.html +21 -33
- package/coverage/src/concepts/Assignment__.ts.html +49 -130
- package/coverage/src/concepts/Attribute__.ts.html +179 -20
- package/coverage/src/concepts/AuthInterface__.ts.html +1 -1
- package/coverage/src/concepts/AuthLogicForCallInterface__.ts.html +161 -98
- package/coverage/src/concepts/AuthLogic__.ts.html +1 -1
- package/coverage/src/concepts/BackendVariable__.ts.html +226 -139
- package/coverage/src/concepts/Backend__.ts.html +35 -86
- package/coverage/src/concepts/BatchAssignment__.ts.html +65 -95
- package/coverage/src/concepts/BinaryExpression__.ts.html +89 -218
- package/coverage/src/concepts/BindAttribute__.ts.html +125 -440
- package/coverage/src/concepts/BindDirective__.ts.html +40 -64
- package/coverage/src/concepts/BindEvent__.ts.html +71 -86
- package/coverage/src/concepts/BindStyle__.ts.html +34 -58
- package/coverage/src/concepts/BooleanLiteral__.ts.html +8 -32
- package/coverage/src/concepts/CallAuthInterface__.ts.html +57 -87
- package/coverage/src/concepts/CallConnector__.ts.html +35 -59
- package/coverage/src/concepts/CallFunction__.ts.html +145 -247
- package/coverage/src/concepts/CallInterface__.ts.html +77 -53
- package/coverage/src/concepts/CallLogic__.ts.html +181 -244
- package/coverage/src/concepts/CallQueryComponent__.ts.html +181 -103
- package/coverage/src/concepts/Comment__.ts.html +10 -40
- package/coverage/src/concepts/CompletionProperty__.ts.html +17 -23
- package/coverage/src/concepts/ConfigGroup__.ts.html +27 -27
- package/coverage/src/concepts/ConfigPropertyValue__.ts.html +1 -1
- package/coverage/src/concepts/ConfigProperty__.ts.html +36 -66
- package/coverage/src/concepts/Configuration__.ts.html +27 -27
- package/coverage/src/concepts/Connection__.ts.html +29 -77
- package/coverage/src/concepts/ConnectorTrigger__.ts.html +1 -1
- package/coverage/src/concepts/Connector__.ts.html +92 -80
- package/coverage/src/concepts/Constant__.ts.html +222 -72
- package/coverage/src/concepts/DataSource__.ts.html +32 -59
- package/coverage/src/concepts/DatabaseTypeAnnotation__.ts.html +1 -1
- package/coverage/src/{utils/time-slicing/controller.ts.html → concepts/DefaultValue__.ts.html} +294 -459
- package/coverage/src/concepts/Destination__.ts.html +67 -79
- package/coverage/src/concepts/End__.ts.html +21 -48
- package/coverage/src/concepts/EntityIndex__.ts.html +17 -35
- package/coverage/src/concepts/EntityProperty__.ts.html +208 -118
- package/coverage/src/concepts/Entity__.ts.html +123 -81
- package/coverage/src/concepts/EnumItem__.ts.html +10 -37
- package/coverage/src/concepts/Enum__.ts.html +32 -65
- package/coverage/src/concepts/Event__.ts.html +21 -21
- package/coverage/src/concepts/ExternalDestination__.ts.html +30 -57
- package/coverage/src/concepts/ForEachStatement__.ts.html +89 -98
- package/coverage/src/concepts/FrontendLibrary__.ts.html +35 -35
- package/coverage/src/concepts/FrontendVariable__.ts.html +1 -1
- package/coverage/src/concepts/Frontend__.ts.html +93 -132
- package/coverage/src/concepts/Function__.ts.html +98 -131
- package/coverage/src/concepts/Identifier__.ts.html +67 -103
- package/coverage/src/concepts/IfStatement__.ts.html +67 -88
- package/coverage/src/concepts/Integration__.ts.html +31 -37
- package/coverage/src/concepts/InterfaceParam__.ts.html +179 -65
- package/coverage/src/concepts/Interface__.ts.html +74 -107
- package/coverage/src/concepts/JSBlock__.ts.html +11 -212
- package/coverage/src/concepts/JavaLogic__.ts.html +9 -39
- package/coverage/src/concepts/LogicItem__.ts.html +17 -44
- package/coverage/src/concepts/Logic__.ts.html +503 -263
- package/coverage/src/concepts/MatchCase__.ts.html +87 -126
- package/coverage/src/concepts/Match__.ts.html +56 -74
- package/coverage/src/concepts/MemberExpression__.ts.html +59 -95
- package/coverage/src/concepts/MicroApp__.ts.html +1 -1
- package/coverage/src/concepts/Module__.ts.html +136 -625
- package/coverage/src/concepts/MsgTriggerEvent__.ts.html +21 -21
- package/coverage/src/concepts/MsgTriggerLauncher__.ts.html +21 -21
- package/coverage/src/concepts/Namespace__.ts.html +178 -166
- package/coverage/src/concepts/NewComposite__.ts.html +178 -295
- package/coverage/src/concepts/NewList__.ts.html +75 -129
- package/coverage/src/concepts/NewMap__.ts.html +139 -100
- package/coverage/src/concepts/New__.ts.html +9 -39
- package/coverage/src/concepts/NullLiteral__.ts.html +5 -29
- package/coverage/src/concepts/NumericLiteral__.ts.html +29 -65
- package/coverage/src/concepts/OqlQueryComponent__.ts.html +39 -69
- package/coverage/src/concepts/OverriddenLogic__.ts.html +264 -234
- package/coverage/src/concepts/Param__.ts.html +154 -196
- package/coverage/src/concepts/Point__.ts.html +1 -1
- package/coverage/src/concepts/ProcessComponent__.ts.html +36 -36
- package/coverage/src/concepts/ProcessElement__.ts.html +285 -183
- package/coverage/src/concepts/ProcessOutcome__.ts.html +13 -82
- package/coverage/src/concepts/ProcessOutcomes__.ts.html +20 -80
- package/coverage/src/concepts/Process__.ts.html +284 -122
- package/coverage/src/concepts/QueryAggregateExpression__.ts.html +20 -50
- package/coverage/src/concepts/QueryFieldExpression__.ts.html +11 -38
- package/coverage/src/concepts/QueryFromExpression__.ts.html +29 -62
- package/coverage/src/concepts/QueryGroupByExpression__.ts.html +23 -53
- package/coverage/src/concepts/QueryJoinExpression__.ts.html +41 -62
- package/coverage/src/concepts/QueryLimitExpression__.ts.html +29 -59
- package/coverage/src/concepts/QueryOrderByExpression__.ts.html +29 -62
- package/coverage/src/concepts/QuerySelectExpression__.ts.html +22 -22
- package/coverage/src/concepts/Rect__.ts.html +1 -1
- package/coverage/src/concepts/Return__.ts.html +187 -148
- package/coverage/src/concepts/Role__.ts.html +15 -42
- package/coverage/src/concepts/SelectMembers__.ts.html +31 -55
- package/coverage/src/concepts/Slot__.ts.html +17 -23
- package/coverage/src/concepts/SqlQueryComponent__.ts.html +28 -67
- package/coverage/src/concepts/Start__.ts.html +5 -29
- package/coverage/src/concepts/StringInterpolation__.ts.html +31 -79
- package/coverage/src/concepts/StringLiteral__.ts.html +26 -53
- package/coverage/src/concepts/StructureProperty__.ts.html +175 -64
- package/coverage/src/concepts/Structure__.ts.html +73 -67
- package/coverage/src/concepts/SwitchCase__.ts.html +45 -66
- package/coverage/src/concepts/SwitchStatement__.ts.html +28 -58
- package/coverage/src/concepts/Theme__.ts.html +7 -7
- package/coverage/src/concepts/Transactional__.ts.html +1 -1
- package/coverage/src/concepts/TriggerEvent__.ts.html +21 -21
- package/coverage/src/concepts/TriggerLauncher__.ts.html +13 -43
- package/coverage/src/concepts/TypeAnnotation__.ts.html +106 -223
- package/coverage/src/concepts/TypeParam__.ts.html +11 -38
- package/coverage/src/concepts/UnaryExpression__.ts.html +28 -73
- package/coverage/src/concepts/Unparsed__.ts.html +6 -27
- package/coverage/src/concepts/UseComponent__.ts.html +1 -1
- package/coverage/src/concepts/ValidationRule__.ts.html +57 -60
- package/coverage/src/concepts/Variable__.ts.html +238 -142
- package/coverage/src/concepts/ViewBlock__.ts.html +1 -1
- package/coverage/src/concepts/ViewComponent__.ts.html +80 -8
- package/coverage/src/concepts/ViewElement__.ts.html +238 -463
- package/coverage/src/concepts/View__.ts.html +296 -251
- package/coverage/src/concepts/WhileStatement__.ts.html +54 -75
- package/coverage/src/concepts/basics/stdlib/index.html +8 -8
- package/coverage/src/concepts/basics/stdlib/index.ts.html +1 -1
- package/coverage/src/concepts/basics/stdlib/nasl.auth.ts.html +1 -1
- package/coverage/src/concepts/basics/stdlib/nasl.browser.ts.html +1 -1
- package/coverage/src/concepts/basics/stdlib/nasl.collection.ts.html +1 -1
- package/coverage/src/concepts/basics/stdlib/nasl.configuration.ts.html +1 -1
- package/coverage/src/concepts/basics/stdlib/nasl.core.ts.html +1 -1
- package/coverage/src/concepts/basics/stdlib/nasl.event.ts.html +1 -1
- package/coverage/src/concepts/basics/stdlib/nasl.http.ts.html +1 -1
- package/coverage/src/concepts/basics/stdlib/nasl.interface.ts.html +1 -1
- package/coverage/src/concepts/basics/stdlib/nasl.io.ts.html +1 -1
- package/coverage/src/concepts/basics/stdlib/nasl.logging.ts.html +1 -1
- package/coverage/src/concepts/basics/stdlib/nasl.process.ts.html +1 -1
- package/coverage/src/concepts/basics/stdlib/nasl.ui.ts.html +1 -1
- package/coverage/src/concepts/basics/stdlib/nasl.util.ts.html +130 -19
- package/coverage/src/concepts/basics/stdlib/nasl.validation.ts.html +1 -1
- package/coverage/src/concepts/basics/stdlib/reference2TypeAnnotationList.ts.html +1 -1
- package/coverage/src/concepts/basics/stdlib/timeZone.ts.html +1 -1
- package/coverage/src/concepts/basics/types/coreTypeList.ts.html +1 -1
- package/coverage/src/concepts/basics/types/index.html +1 -1
- package/coverage/src/concepts/basics/types/index.ts.html +1 -1
- package/coverage/src/concepts/index.html +858 -858
- package/coverage/src/concepts/index.ts.html +1 -1
- package/coverage/src/concepts/index__.ts.html +2 -2
- package/coverage/src/config.ts.html +1 -1
- package/coverage/src/decorators/index.html +16 -16
- package/coverage/src/decorators/index.ts.html +40 -31
- package/coverage/src/decorators/promise.ts.html +10 -10
- package/coverage/src/eventBus.ts.html +1 -1
- package/coverage/src/generator/compileComponent.ts.html +4 -4
- package/coverage/src/generator/genBundleFiles.ts.html +23 -17
- package/coverage/src/generator/genHash.ts.html +3 -3
- package/coverage/src/generator/genMetaData.ts.html +31 -76
- package/coverage/src/generator/genReleaseBody.ts.html +4 -4
- package/coverage/src/generator/icestark.ts.html +4 -10
- package/coverage/src/generator/index.html +20 -20
- package/coverage/src/generator/index.ts.html +1 -1
- package/coverage/src/generator/microApp.ts.html +1 -1
- package/coverage/src/generator/permission.ts.html +20 -92
- package/coverage/src/generator/qiankun.ts.html +3 -9
- package/coverage/src/generator/styleReplacer.ts.html +1 -1
- package/coverage/src/index.html +1 -1
- package/coverage/src/index.ts.html +7 -4
- package/coverage/src/manager/diagnostic.ts.html +14 -11
- package/coverage/src/manager/index.html +13 -13
- package/coverage/src/manager/stepRecorder.ts.html +1 -1
- package/coverage/src/natural/genNaturalTS.ts.html +1 -1
- package/coverage/src/natural/index.html +1 -1
- package/coverage/src/natural/index.ts.html +1 -1
- package/coverage/src/natural/naslStdlibMap.ts.html +1 -1
- package/coverage/src/natural/transformTSCode.ts.html +1 -1
- package/coverage/src/sentry/index.html +14 -14
- package/coverage/src/sentry/index.ts.html +32 -38
- package/coverage/src/server/createUiTs.ts.html +1 -1
- package/coverage/src/server/entity2LogicNamespace.ts.html +1 -1
- package/coverage/src/server/event.js.html +1 -1
- package/coverage/src/server/extendBaseNode.ts.html +4 -7
- package/coverage/src/server/formatTsUtils.ts.html +2 -2
- package/coverage/src/server/getConnector.ts.html +1 -1
- package/coverage/src/server/getExtensionModules.ts.html +1 -1
- package/coverage/src/server/getFunctions.ts.html +4 -4
- package/coverage/src/server/getInterfaces.ts.html +1 -1
- package/coverage/src/server/getLogging.ts.html +2 -2
- package/coverage/src/server/getLogics.ts.html +1 -1
- package/coverage/src/server/getMemberIdentifier.ts.html +128 -131
- package/coverage/src/server/getProcessComponents.ts.html +3 -3
- package/coverage/src/server/getProcesses.ts.html +1 -1
- package/coverage/src/server/getValidates.ts.html +4 -4
- package/coverage/src/server/index.html +26 -26
- package/coverage/src/server/index.ts.html +1 -1
- package/coverage/src/server/naslServer.ts.html +880 -1177
- package/coverage/src/server/naslStdlibMap.ts.html +1 -1
- package/coverage/src/server/process2LogicNamespace.ts.html +52 -52
- package/coverage/src/server/translator.ts.html +14 -50
- package/coverage/src/service/creator/add.configs.js.html +2 -2
- package/coverage/src/service/creator/errHandles.js.html +1 -1
- package/coverage/src/service/creator/index.html +1 -1
- package/coverage/src/service/creator/index.js.html +1 -1
- package/coverage/src/service/datasource/api.js.html +1 -1
- package/coverage/src/service/datasource/index.html +1 -1
- package/coverage/src/service/datasource/index.js.html +1 -1
- package/coverage/src/service/logic/api.js.html +1 -1
- package/coverage/src/service/logic/index.html +1 -1
- package/coverage/src/service/logic/index.js.html +1 -1
- package/coverage/src/service/storage/api.js.html +1 -1
- package/coverage/src/service/storage/index.html +27 -27
- package/coverage/src/service/storage/index.ts.html +1 -1
- package/coverage/src/service/storage/init.ts.html +137 -110
- package/coverage/src/service/storage/jsoner.ts.html +13 -76
- package/coverage/src/service/storage/map.ts.html +3 -3
- package/coverage/src/service/storage/service.ts.html +1 -1
- package/coverage/src/service/storage/storagePoint.ts.html +1 -1
- package/coverage/src/templator/genCallComponentLogic.ts.html +1 -1
- package/coverage/src/templator/genCreateBlock.ts.html +56 -47
- package/coverage/src/templator/genCurdEditMultipleKeyBlock.ts.html +31 -49
- package/coverage/src/templator/genCurdMultipleKeyBlock.ts.html +89 -80
- package/coverage/src/templator/genEditTableBlock.ts.html +9 -12
- package/coverage/src/templator/genEnumSelectBlock.ts.html +1 -1
- package/coverage/src/templator/genGetBlock.ts.html +1 -1
- package/coverage/src/templator/genGridViewBlock.ts.html +1 -1
- package/coverage/src/templator/genListViewBlock.ts.html +1 -1
- package/coverage/src/templator/genQueryComponent.ts.html +1 -1
- package/coverage/src/templator/genSelectBlock.ts.html +1 -1
- package/coverage/src/templator/genTableBlock.ts.html +1 -1
- package/coverage/src/templator/genUpdateBlock.ts.html +36 -48
- package/coverage/src/templator/index.html +39 -39
- package/coverage/src/templator/index.ts.html +1 -1
- package/coverage/src/templator/utils.ts.html +11 -77
- package/coverage/src/translator/constant.ts.html +1 -1
- package/coverage/src/translator/index.html +21 -21
- package/coverage/src/translator/index.ts.html +1 -1
- package/coverage/src/translator/utils.ts.html +68 -389
- package/coverage/src/utils/cookie.ts.html +4 -4
- package/coverage/src/utils/env.ts.html +1 -1
- package/coverage/src/utils/index.html +41 -26
- package/coverage/src/utils/index.ts.html +9 -63
- package/coverage/src/utils/logger.ts.html +13 -13
- package/coverage/src/utils/sortTsString.ts.html +10 -25
- package/coverage/src/utils/string.ts.html +8 -110
- package/coverage/src/utils/time-slicing.ts.html +1 -1
- package/coverage/src/utils/traverse.ts.html +1 -1
- package/coverage/src/utils/window.ts.html +1 -1
- package/out/common/Command.js +1 -1
- package/out/common/Command.js.map +1 -1
- package/out/concepts/Match__.js +1 -1
- package/out/concepts/Match__.js.map +1 -1
- package/out/concepts/View__.js +2 -2
- package/out/concepts/View__.js.map +1 -1
- package/package.json +1 -1
- package/src/common/Command.ts +1 -1
- package/src/concepts/Match__.ts +1 -1
- package/src/concepts/View__.ts +5 -5
- package/.nyc_output/processinfo/78804420-ead6-486f-b682-ab54ccd95dc9.json +0 -1
- package/coverage/cobertura-coverage.xml +0 -71878
- package/coverage/src/automate/engine/index.js.html +0 -1471
- package/coverage/src/automate/engine/operators.js.html +0 -862
- package/coverage/src/automate/engine/uniqueName.js.html +0 -412
- package/coverage/src/automate/engine/viewCache.js.html +0 -214
- package/coverage/src/automate/template/index.html +0 -116
- package/coverage/src/automate/template/myProcess.js.html +0 -34645
- package/coverage/src/common/utils.ts.html +0 -136
- package/coverage/src/concepts/DataElement__.ts.html +0 -118
- package/coverage/src/concepts/MetadataType__.ts.html +0 -2053
- package/coverage/src/utils/time-slicing/constant.ts.html +0 -196
- package/coverage/src/utils/time-slicing/index.html +0 -236
- package/coverage/src/utils/time-slicing/index.ts.html +0 -103
- package/coverage/src/utils/time-slicing/page-state.ts.html +0 -121
- package/coverage/src/utils/time-slicing/performance.ts.html +0 -253
- package/coverage/src/utils/time-slicing/runner.ts.html +0 -247
- package/coverage/src/utils/time-slicing/tool.ts.html +0 -220
- package/coverage/src/utils/time-slicing/utils.ts.html +0 -355
- package/coverage/src/utils/time-slicing/wrapper.ts.html +0 -259
- package/coverage/src/utils/time.ts.html +0 -118
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
<div class='fl pad1y space-right2'>
|
|
33
33
|
<span class="strong">0% </span>
|
|
34
34
|
<span class="quiet">Branches</span>
|
|
35
|
-
<span class='fraction'>0/
|
|
35
|
+
<span class='fraction'>0/96</span>
|
|
36
36
|
</div>
|
|
37
37
|
|
|
38
38
|
|
|
@@ -570,8 +570,7 @@
|
|
|
570
570
|
<a name='L505'></a><a href='#L505'>505</a>
|
|
571
571
|
<a name='L506'></a><a href='#L506'>506</a>
|
|
572
572
|
<a name='L507'></a><a href='#L507'>507</a>
|
|
573
|
-
<a name='L508'></a><a href='#L508'>508</a>
|
|
574
|
-
<a name='L509'></a><a href='#L509'>509</a></td><td class="line-coverage quiet"><span class="cline-any cline-yes">1x</span>
|
|
573
|
+
<a name='L508'></a><a href='#L508'>508</a></td><td class="line-coverage quiet"><span class="cline-any cline-yes">1x</span>
|
|
575
574
|
<span class="cline-any cline-neutral"> </span>
|
|
576
575
|
<span class="cline-any cline-neutral"> </span>
|
|
577
576
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -1046,7 +1045,6 @@
|
|
|
1046
1045
|
<span class="cline-any cline-neutral"> </span>
|
|
1047
1046
|
<span class="cline-any cline-neutral"> </span>
|
|
1048
1047
|
<span class="cline-any cline-neutral"> </span>
|
|
1049
|
-
<span class="cline-any cline-neutral"> </span>
|
|
1050
1048
|
<span class="cline-any cline-yes">1x</span>
|
|
1051
1049
|
<span class="cline-any cline-no"> </span>
|
|
1052
1050
|
<span class="cline-any cline-no"> </span>
|
|
@@ -1254,10 +1252,10 @@ function <span class="fstat-no" title="function not covered" >getCurrentLogic(</
|
|
|
1254
1252
|
) {
|
|
1255
1253
|
// 只有data-source check-file可以
|
|
1256
1254
|
<span class="cstat-no" title="statement not covered" > if (</span>
|
|
1257
|
-
(node instanceof BindAttribute && (node.name === 'data-source' || node.name === 'check-file'
|
|
1255
|
+
(node instanceof BindAttribute && (node.name === 'data-source' || node.name === 'check-file')) ||
|
|
1258
1256
|
(node instanceof Identifier &&
|
|
1259
1257
|
node.parentNode instanceof BindAttribute &&
|
|
1260
|
-
(node.parentNode.name === 'data-source' || node.parentNode.name === 'check-file'
|
|
1258
|
+
(node.parentNode.name === 'data-source' || node.parentNode.name === 'check-file'))
|
|
1261
1259
|
) {
|
|
1262
1260
|
const { view } = <span class="cstat-no" title="statement not covered" >node;</span>
|
|
1263
1261
|
const viewLogics = <span class="cstat-no" title="statement not covered" >view.logics;</span>
|
|
@@ -1304,14 +1302,14 @@ export async function <span class="fstat-no" title="function not covered" >getMe
|
|
|
1304
1302
|
// { name: '服务端全局变量', children: BackEndglobalVariable, expanded: false, icon: 'category' },
|
|
1305
1303
|
// { name: '流程变量', children: [] },
|
|
1306
1304
|
];
|
|
1307
|
-
<span class="cstat-no" title="statement not covered" > if ((node as Identifier).view || (node as Identifier).frontend) {</span>
|
|
1305
|
+
<span class="cstat-no" title="statement not covered" > if (((node as Identifier).view || (node as Identifier).frontend) && (node as any).concept !== 'FrontendVariable') {</span>
|
|
1308
1306
|
// 获取前端全局变量
|
|
1309
1307
|
const frontEndVariable = <span class="cstat-no" title="statement not covered" >getFrontEndVariablesIdentifier((node as Identifier).view || (node as Identifier).frontend);</span>
|
|
1310
1308
|
<span class="cstat-no" title="statement not covered" > result.push({ name: '前端全局变量', children: frontEndVariable, expanded: true, icon: 'category' });</span>
|
|
1311
1309
|
// 获取页面组件
|
|
1312
1310
|
const pageComponents = <span class="cstat-no" title="statement not covered" >await getPageComponentsIdentifier(node);</span>
|
|
1313
1311
|
<span class="cstat-no" title="statement not covered" > result.push({ name: '页面组件', children: pageComponents, expanded: true, icon: 'category' });</span>
|
|
1314
|
-
} else <span class="cstat-no" title="statement not covered" >if (!(node as Identifier).frontend) {</span>
|
|
1312
|
+
} else <span class="cstat-no" title="statement not covered" >if (!(node as Identifier).frontend && (node as any).concept !== 'BackendVariable') {</span>
|
|
1315
1313
|
// 端事件里既不能调用前端变量 也不能调用后端变量
|
|
1316
1314
|
const BackEndglobalVariable = <span class="cstat-no" title="statement not covered" >getBackendVariablesIdentifier(node);</span>
|
|
1317
1315
|
<span class="cstat-no" title="statement not covered" > result.push({ name: '服务端全局变量', children: BackEndglobalVariable, expanded: true, icon: 'category' });</span>
|
|
@@ -1384,7 +1382,7 @@ export async function <span class="fstat-no" title="function not covered" >getVa
|
|
|
1384
1382
|
export async function <span class="fstat-no" title="function not covered" >getGlobalVariableIdentifier(</span>node: BaseNode): Promise<CompletionProperty[]> {
|
|
1385
1383
|
let globalVariable: CompletionProperty[] = <span class="cstat-no" title="statement not covered" >[];</span>
|
|
1386
1384
|
// 公共变量修改
|
|
1387
|
-
<span class="cstat-no" title="statement not covered" > if ((node as any).view
|
|
1385
|
+
<span class="cstat-no" title="statement not covered" > if ((node as any).view) {</span>
|
|
1388
1386
|
<span class="cstat-no" title="statement not covered" > globalVariable = formatGlobalVariable();</span>
|
|
1389
1387
|
// globalVariable = [];
|
|
1390
1388
|
}
|
|
@@ -1436,124 +1434,123 @@ export function <span class="fstat-no" title="function not covered" >getConfigsI
|
|
|
1436
1434
|
}
|
|
1437
1435
|
function <span class="fstat-no" title="function not covered" >flatElements(</span>elements: ViewElement[], componentList: CompletionProperty[], nodeParentElement: string, currentAttriBute: string) {
|
|
1438
1436
|
<span class="cstat-no" title="statement not covered" > elements?.forEach(<span class="fstat-no" title="function not covered" >(i</span>tem) => {</span>
|
|
1439
|
-
<span class="cstat-no" title="statement not covered" >
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
}),
|
|
1448
|
-
children: [],
|
|
1449
|
-
};
|
|
1450
|
-
const attrsList = <span class="cstat-no" title="statement not covered" >item.bindAttrs.filter(<span class="fstat-no" title="function not covered" >(a</span>ttr) => {</span>
|
|
1451
|
-
<span class="cstat-no" title="statement not covered" > if (PAGE_COMPONENT_INCLUDE_TAG_MAP[item.tag]?.[attr.name]) {</span>
|
|
1452
|
-
<span class="cstat-no" title="statement not covered" > if (current && attr.name === currentAttriBute) {</span>
|
|
1453
|
-
<span class="cstat-no" title="statement not covered" > return false</span>
|
|
1454
|
-
} else {
|
|
1455
|
-
<span class="cstat-no" title="statement not covered" > return true</span>
|
|
1456
|
-
}
|
|
1457
|
-
}
|
|
1458
|
-
})
|
|
1459
|
-
<span class="cstat-no" title="statement not covered" > attrsList.forEach(<span class="fstat-no" title="function not covered" >(a</span>ttr) => {</span>
|
|
1460
|
-
const currentAttrInfo = <span class="cstat-no" title="statement not covered" >PAGE_COMPONENT_INCLUDE_TAG_MAP[item.tag]?.[attr.name]</span>
|
|
1461
|
-
<span class="cstat-no" title="statement not covered" > if (attr.name !== 'sorting') {</span>
|
|
1462
|
-
const stashAttr: any = <span class="cstat-no" title="statement not covered" >{</span>
|
|
1463
|
-
...attr,
|
|
1464
|
-
name: attr.name,
|
|
1465
|
-
value: `${item.name}.${attr.name}`,
|
|
1466
|
-
expression: new MemberExpression({
|
|
1467
|
-
object: stashItem.expression,
|
|
1468
|
-
property: new Identifier({
|
|
1469
|
-
name: currentAttrInfo.value,
|
|
1470
|
-
namespace: attr.name
|
|
1437
|
+
<span class="cstat-no" title="statement not covered" > if (PAGE_COMPONENT_INCLUDE_TAG_MAP?.[item.tag]) {</span>
|
|
1438
|
+
const current = <span class="cstat-no" title="statement not covered" >item.name === nodeParentElement</span>
|
|
1439
|
+
const stashItem: any = <span class="cstat-no" title="statement not covered" >{</span>
|
|
1440
|
+
name: `${item.name}${current ? '(当前组件)' : ''}`,
|
|
1441
|
+
value: item.name,
|
|
1442
|
+
expression: new Identifier({
|
|
1443
|
+
name: current ? '当前组件' : item.name,
|
|
1444
|
+
namespace: `elements.${current ? '$ce' : item.name}.property`
|
|
1471
1445
|
}),
|
|
1472
|
-
|
|
1446
|
+
children: [],
|
|
1473
1447
|
};
|
|
1474
|
-
const
|
|
1475
|
-
<span class="cstat-no" title="statement not covered" >
|
|
1476
|
-
<span class="cstat-no" title="statement not covered" >
|
|
1477
|
-
<span class="cstat-no" title="statement not covered" >
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
|
|
1448
|
+
const attrsList = <span class="cstat-no" title="statement not covered" >item.bindAttrs.filter(<span class="fstat-no" title="function not covered" >(a</span>ttr) => {</span>
|
|
1449
|
+
<span class="cstat-no" title="statement not covered" > if (PAGE_COMPONENT_INCLUDE_TAG_MAP[item.tag]?.[attr.name]) {</span>
|
|
1450
|
+
<span class="cstat-no" title="statement not covered" > if (current && attr.name === currentAttriBute) {</span>
|
|
1451
|
+
<span class="cstat-no" title="statement not covered" > return false</span>
|
|
1452
|
+
} else {
|
|
1453
|
+
<span class="cstat-no" title="statement not covered" > return true</span>
|
|
1454
|
+
}
|
|
1455
|
+
}
|
|
1456
|
+
})
|
|
1457
|
+
<span class="cstat-no" title="statement not covered" > attrsList.forEach(<span class="fstat-no" title="function not covered" >(a</span>ttr) => {</span>
|
|
1458
|
+
const currentAttrInfo = <span class="cstat-no" title="statement not covered" >PAGE_COMPONENT_INCLUDE_TAG_MAP[ item.tag]?.[attr.name]</span>
|
|
1459
|
+
<span class="cstat-no" title="statement not covered" > if (attr.name !== 'sorting') {</span>
|
|
1460
|
+
const stashAttr: any = <span class="cstat-no" title="statement not covered" >{</span>
|
|
1461
|
+
...attr,
|
|
1462
|
+
name: attr.name,
|
|
1463
|
+
value: `${item.name}.${attr.name}`,
|
|
1464
|
+
expression: new MemberExpression({
|
|
1465
|
+
object: stashItem.expression,
|
|
1466
|
+
property: new Identifier({
|
|
1467
|
+
name: currentAttrInfo.value,
|
|
1468
|
+
namespace: attr.name
|
|
1469
|
+
}),
|
|
1470
|
+
}),
|
|
1471
|
+
};
|
|
1472
|
+
const completionProperty = <span class="cstat-no" title="statement not covered" >new CompletionProperty(stashAttr);</span>
|
|
1473
|
+
<span class="cstat-no" title="statement not covered" > completionProperty.name = currentAttrInfo ? `${currentAttrInfo.value}(${currentAttrInfo.label})` : attr.name;</span>
|
|
1474
|
+
<span class="cstat-no" title="statement not covered" > completionProperty.icon = 'attr'</span>
|
|
1475
|
+
<span class="cstat-no" title="statement not covered" > stashItem.children.push(completionProperty)</span>
|
|
1476
|
+
}
|
|
1477
|
+
})
|
|
1478
|
+
<span class="cstat-no" title="statement not covered" > if (['u-select', 'van-pickerson'].includes(item.tag)) {</span>
|
|
1479
|
+
const pageAttr: any = <span class="cstat-no" title="statement not covered" >{</span>
|
|
1480
|
+
name: 'page-number',
|
|
1481
|
+
value: `${item.name}.page-number`,
|
|
1482
|
+
expression: new MemberExpression({
|
|
1483
|
+
object: stashItem.expression,
|
|
1484
|
+
property: new Identifier({
|
|
1485
|
+
name: 'page',
|
|
1486
|
+
namespace: 'page-number'
|
|
1487
|
+
}),
|
|
1488
|
+
}),
|
|
1489
|
+
};
|
|
1490
|
+
const completionProperty = <span class="cstat-no" title="statement not covered" >new CompletionProperty(pageAttr);</span>
|
|
1491
|
+
<span class="cstat-no" title="statement not covered" > completionProperty.name = 'page(当前页数)';</span>
|
|
1492
|
+
<span class="cstat-no" title="statement not covered" > completionProperty.icon = 'attr'</span>
|
|
1493
|
+
<span class="cstat-no" title="statement not covered" > stashItem.children.push(completionProperty)</span>
|
|
1494
|
+
const filterAttr: any = <span class="cstat-no" title="statement not covered" >{</span>
|
|
1495
|
+
name: 'filterText',
|
|
1496
|
+
value: `${item.name}.filterText`,
|
|
1497
|
+
expression: new MemberExpression({
|
|
1498
|
+
object: stashItem.expression,
|
|
1499
|
+
property: new Identifier({
|
|
1500
|
+
name: 'filterText',
|
|
1501
|
+
namespace: 'filterText'
|
|
1502
|
+
}),
|
|
1503
|
+
}),
|
|
1504
|
+
};
|
|
1505
|
+
const filterTextCompletionProperty = <span class="cstat-no" title="statement not covered" >new CompletionProperty(filterAttr);</span>
|
|
1506
|
+
<span class="cstat-no" title="statement not covered" > filterTextCompletionProperty.name = 'filterText(过滤文本)';</span>
|
|
1507
|
+
<span class="cstat-no" title="statement not covered" > filterTextCompletionProperty.icon = 'attr'</span>
|
|
1508
|
+
<span class="cstat-no" title="statement not covered" > stashItem.children.push(filterTextCompletionProperty)</span>
|
|
1509
|
+
} else <span class="cstat-no" title="statement not covered" >if (['u-list-view', 'u-grid-view', 'u-table-view', 'van-list-view', 'van-grid-view'].includes(item.tag)) {</span>
|
|
1510
|
+
const sortAttr: any = <span class="cstat-no" title="statement not covered" >{</span>
|
|
1511
|
+
name: 'sort',
|
|
1512
|
+
value: `${item.name}.sort`,
|
|
1513
|
+
expression: new MemberExpression({
|
|
1514
|
+
object: stashItem.expression,
|
|
1515
|
+
property: new Identifier({
|
|
1516
|
+
name: 'sort',
|
|
1517
|
+
namespace: 'sorting.field'
|
|
1518
|
+
}),
|
|
1519
|
+
}),
|
|
1520
|
+
};
|
|
1521
|
+
const sortCompletionProperty = <span class="cstat-no" title="statement not covered" >new CompletionProperty(sortAttr);</span>
|
|
1522
|
+
<span class="cstat-no" title="statement not covered" > sortCompletionProperty.name = 'sort(排序属性)';</span>
|
|
1523
|
+
<span class="cstat-no" title="statement not covered" > sortCompletionProperty.icon = 'attr'</span>
|
|
1524
|
+
<span class="cstat-no" title="statement not covered" > stashItem.children.push(sortCompletionProperty)</span>
|
|
1525
|
+
const orderAttr: any = <span class="cstat-no" title="statement not covered" >{</span>
|
|
1526
|
+
name: 'order',
|
|
1527
|
+
value: `${item.name}.order`,
|
|
1528
|
+
expression: new MemberExpression({
|
|
1529
|
+
object: stashItem.expression,
|
|
1530
|
+
property: new Identifier({
|
|
1531
|
+
name: 'order',
|
|
1532
|
+
namespace: 'sorting.order'
|
|
1533
|
+
}),
|
|
1534
|
+
}),
|
|
1535
|
+
};
|
|
1536
|
+
const orderCompletionProperty = <span class="cstat-no" title="statement not covered" >new CompletionProperty(orderAttr);</span>
|
|
1537
|
+
<span class="cstat-no" title="statement not covered" > orderCompletionProperty.name = 'order(排序顺序)';</span>
|
|
1538
|
+
<span class="cstat-no" title="statement not covered" > orderCompletionProperty.icon = 'attr'</span>
|
|
1539
|
+
<span class="cstat-no" title="statement not covered" > stashItem.children.push(orderCompletionProperty)</span>
|
|
1540
|
+
}
|
|
1541
|
+
const completionProperty = <span class="cstat-no" title="statement not covered" >new CompletionProperty(stashItem);</span>
|
|
1542
|
+
<span class="cstat-no" title="statement not covered" > completionProperty.icon = 'element';</span>
|
|
1543
|
+
<span class="cstat-no" title="statement not covered" > if (current) {</span>
|
|
1544
|
+
<span class="cstat-no" title="statement not covered" > componentList.unshift(completionProperty)</span>
|
|
1545
|
+
} else {
|
|
1546
|
+
<span class="cstat-no" title="statement not covered" > componentList.push(completionProperty)</span>
|
|
1547
|
+
}
|
|
1542
1548
|
}
|
|
1543
|
-
|
|
1544
|
-
<span class="cstat-no" title="statement not covered" >
|
|
1545
|
-
<span class="cstat-no" title="statement not covered" > if (current) {</span>
|
|
1546
|
-
<span class="cstat-no" title="statement not covered" > componentList.unshift(completionProperty)</span>
|
|
1547
|
-
} else {
|
|
1548
|
-
<span class="cstat-no" title="statement not covered" > componentList.push(completionProperty)</span>
|
|
1549
|
+
<span class="cstat-no" title="statement not covered" > if (item.children.length > 0) {</span>
|
|
1550
|
+
<span class="cstat-no" title="statement not covered" > flatElements(item.children, componentList, nodeParentElement, currentAttriBute)</span>
|
|
1549
1551
|
}
|
|
1550
|
-
}
|
|
1551
|
-
<span class="cstat-no" title="statement not covered" > if (item.children.length > 0) {</span>
|
|
1552
|
-
<span class="cstat-no" title="statement not covered" > flatElements(item.children, componentList, nodeParentElement, currentAttriBute)</span>
|
|
1553
|
-
}
|
|
1554
1552
|
})
|
|
1555
1553
|
}
|
|
1556
|
-
|
|
1557
1554
|
// 获取页面组件
|
|
1558
1555
|
export function <span class="fstat-no" title="function not covered" >getPageComponentsIdentifier(</span>node: SyntaxNode): CompletionProperty[] {
|
|
1559
1556
|
const { fileNode } = <span class="cstat-no" title="statement not covered" >node.getCurrentSource();</span>
|
|
@@ -1568,23 +1565,23 @@ export function <span class="fstat-no" title="function not covered" >getPageComp
|
|
|
1568
1565
|
function <span class="fstat-no" title="function not covered" >getCurrentElement(</span>item: any): ViewElement | undefined {
|
|
1569
1566
|
<span class="cstat-no" title="statement not covered" > if (!item?.parentNode) <span class="cstat-no" title="statement not covered" >return undefined</span></span>
|
|
1570
1567
|
<span class="cstat-no" title="statement not covered" > if (item.parentNode?.concept === 'ViewElement') {</span>
|
|
1571
|
-
<span class="cstat-no" title="statement not covered" >
|
|
1568
|
+
<span class="cstat-no" title="statement not covered" > return item.parentNode</span>
|
|
1572
1569
|
} else <span class="cstat-no" title="statement not covered" >if (item.parentNode?.concept === 'View') {</span>
|
|
1573
|
-
<span class="cstat-no" title="statement not covered" >
|
|
1570
|
+
<span class="cstat-no" title="statement not covered" > return undefined</span>
|
|
1574
1571
|
} else {
|
|
1575
|
-
<span class="cstat-no" title="statement not covered" >
|
|
1572
|
+
<span class="cstat-no" title="statement not covered" > return getCurrentElement(item.parentNode)</span>
|
|
1576
1573
|
}
|
|
1577
1574
|
}
|
|
1578
1575
|
|
|
1579
1576
|
function <span class="fstat-no" title="function not covered" >getCurrentAttriBute(</span>item: any): BindAttribute | undefined {
|
|
1580
1577
|
<span class="cstat-no" title="statement not covered" > if (item.concept === 'BindAttribute') {</span>
|
|
1581
|
-
<span class="cstat-no" title="statement not covered" >
|
|
1578
|
+
<span class="cstat-no" title="statement not covered" > return item</span>
|
|
1582
1579
|
} else {
|
|
1583
|
-
<span class="cstat-no" title="statement not covered" >
|
|
1584
|
-
<span class="cstat-no" title="statement not covered" >
|
|
1585
|
-
|
|
1586
|
-
<span class="cstat-no" title="statement not covered" >
|
|
1587
|
-
|
|
1580
|
+
<span class="cstat-no" title="statement not covered" > if (item?.parentNode && item.parentNode?.concept !== 'View') {</span>
|
|
1581
|
+
<span class="cstat-no" title="statement not covered" > return getCurrentAttriBute(item.parentNode)</span>
|
|
1582
|
+
} else {
|
|
1583
|
+
<span class="cstat-no" title="statement not covered" > return undefined</span>
|
|
1584
|
+
}
|
|
1588
1585
|
}
|
|
1589
1586
|
}
|
|
1590
1587
|
</pre></td></tr></table></pre>
|
|
@@ -1594,7 +1591,7 @@ function <span class="fstat-no" title="function not covered" >getCurrentAttriBut
|
|
|
1594
1591
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
1595
1592
|
Code coverage generated by
|
|
1596
1593
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
1597
|
-
at 2023-
|
|
1594
|
+
at 2023-10-27T11:50:55.546Z
|
|
1598
1595
|
</div>
|
|
1599
1596
|
<script src="../../prettify.js"></script>
|
|
1600
1597
|
<script>
|
|
@@ -84,11 +84,11 @@
|
|
|
84
84
|
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js">import { stdlibNamespace } from '..';
|
|
85
85
|
|
|
86
86
|
export function <span class="fstat-no" title="function not covered" >getProcessComponents(</span>) {
|
|
87
|
-
|
|
87
|
+
<span class="cstat-no" title="statement not covered" > return stdlibNamespace.findChild('process');</span>
|
|
88
88
|
}
|
|
89
89
|
|
|
90
90
|
export function <span class="fstat-no" title="function not covered" >getProcessComponent(</span>name: string) {
|
|
91
|
-
|
|
91
|
+
<span class="cstat-no" title="statement not covered" > return getProcessComponents().processComponents.find(<span class="fstat-no" title="function not covered" >(c</span>omponent) => <span class="cstat-no" title="statement not covered" >component.name === name)</span>;</span>
|
|
92
92
|
}
|
|
93
93
|
</pre></td></tr></table></pre>
|
|
94
94
|
|
|
@@ -97,7 +97,7 @@ export function <span class="fstat-no" title="function not covered" >getProcessC
|
|
|
97
97
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
98
98
|
Code coverage generated by
|
|
99
99
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
100
|
-
at 2023-
|
|
100
|
+
at 2023-10-27T11:50:55.546Z
|
|
101
101
|
</div>
|
|
102
102
|
<script src="../../prettify.js"></script>
|
|
103
103
|
<script>
|
|
@@ -2008,7 +2008,7 @@ export function <span class="fstat-no" title="function not covered" >findNodeAft
|
|
|
2008
2008
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
2009
2009
|
Code coverage generated by
|
|
2010
2010
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
2011
|
-
at 2023-
|
|
2011
|
+
at 2023-10-27T11:50:55.546Z
|
|
2012
2012
|
</div>
|
|
2013
2013
|
<script src="../../prettify.js"></script>
|
|
2014
2014
|
<script>
|
|
@@ -86,12 +86,12 @@
|
|
|
86
86
|
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js">import { CallFunction, stdlibNamespace } from '..';
|
|
87
87
|
|
|
88
88
|
export function <span class="fstat-no" title="function not covered" >getValidates(</span>node?: CallFunction) {
|
|
89
|
-
|
|
89
|
+
<span class="cstat-no" title="statement not covered" > return stdlibNamespace.findChild('validation');</span>
|
|
90
90
|
}
|
|
91
91
|
|
|
92
92
|
export function <span class="fstat-no" title="function not covered" >getValidateFunction(</span>name: string) {
|
|
93
|
-
const utilFunctions =
|
|
94
|
-
|
|
93
|
+
const utilFunctions = <span class="cstat-no" title="statement not covered" >getValidates().functions;</span>
|
|
94
|
+
<span class="cstat-no" title="statement not covered" > return utilFunctions.find(<span class="fstat-no" title="function not covered" >(f</span>) => <span class="cstat-no" title="statement not covered" >f.name === name)</span>;</span>
|
|
95
95
|
}
|
|
96
96
|
</pre></td></tr></table></pre>
|
|
97
97
|
|
|
@@ -100,7 +100,7 @@ export function <span class="fstat-no" title="function not covered" >getValidate
|
|
|
100
100
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
101
101
|
Code coverage generated by
|
|
102
102
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
103
|
-
at 2023-
|
|
103
|
+
at 2023-10-27T11:50:55.546Z
|
|
104
104
|
</div>
|
|
105
105
|
<script src="../../prettify.js"></script>
|
|
106
106
|
<script>
|
|
@@ -23,30 +23,30 @@
|
|
|
23
23
|
<div class='clearfix'>
|
|
24
24
|
|
|
25
25
|
<div class='fl pad1y space-right2'>
|
|
26
|
-
<span class="strong">4.
|
|
26
|
+
<span class="strong">4.27% </span>
|
|
27
27
|
<span class="quiet">Statements</span>
|
|
28
|
-
<span class='fraction'>
|
|
28
|
+
<span class='fraction'>183/4285</span>
|
|
29
29
|
</div>
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
<div class='fl pad1y space-right2'>
|
|
33
|
-
<span class="strong">0.
|
|
33
|
+
<span class="strong">0.1% </span>
|
|
34
34
|
<span class="quiet">Branches</span>
|
|
35
|
-
<span class='fraction'>3/
|
|
35
|
+
<span class='fraction'>3/2908</span>
|
|
36
36
|
</div>
|
|
37
37
|
|
|
38
38
|
|
|
39
39
|
<div class='fl pad1y space-right2'>
|
|
40
|
-
<span class="strong">1.
|
|
40
|
+
<span class="strong">1.04% </span>
|
|
41
41
|
<span class="quiet">Functions</span>
|
|
42
|
-
<span class='fraction'>6/
|
|
42
|
+
<span class='fraction'>6/573</span>
|
|
43
43
|
</div>
|
|
44
44
|
|
|
45
45
|
|
|
46
46
|
<div class='fl pad1y space-right2'>
|
|
47
|
-
<span class="strong">4.
|
|
47
|
+
<span class="strong">4.42% </span>
|
|
48
48
|
<span class="quiet">Lines</span>
|
|
49
|
-
<span class='fraction'>
|
|
49
|
+
<span class='fraction'>180/4072</span>
|
|
50
50
|
</div>
|
|
51
51
|
|
|
52
52
|
|
|
@@ -131,7 +131,7 @@
|
|
|
131
131
|
<td data-value="4.39" class="pct low">4.39%</td>
|
|
132
132
|
<td data-value="296" class="abs low">13/296</td>
|
|
133
133
|
<td data-value="0" class="pct low">0%</td>
|
|
134
|
-
<td data-value="
|
|
134
|
+
<td data-value="204" class="abs low">0/204</td>
|
|
135
135
|
<td data-value="0" class="pct low">0%</td>
|
|
136
136
|
<td data-value="30" class="abs low">0/30</td>
|
|
137
137
|
<td data-value="4.54" class="pct low">4.54%</td>
|
|
@@ -251,7 +251,7 @@
|
|
|
251
251
|
<td data-value="6.13" class="pct low">6.13%</td>
|
|
252
252
|
<td data-value="212" class="abs low">13/212</td>
|
|
253
253
|
<td data-value="0" class="pct low">0%</td>
|
|
254
|
-
<td data-value="
|
|
254
|
+
<td data-value="96" class="abs low">0/96</td>
|
|
255
255
|
<td data-value="0" class="pct low">0%</td>
|
|
256
256
|
<td data-value="34" class="abs low">0/34</td>
|
|
257
257
|
<td data-value="6.34" class="pct low">6.34%</td>
|
|
@@ -320,17 +320,17 @@
|
|
|
320
320
|
|
|
321
321
|
<tr>
|
|
322
322
|
<td class="file low" data-value="naslServer.ts"><a href="naslServer.ts.html">naslServer.ts</a></td>
|
|
323
|
-
<td data-value="1.
|
|
323
|
+
<td data-value="1.78" class="pic low">
|
|
324
324
|
<div class="chart"><div class="cover-fill" style="width: 1%"></div><div class="cover-empty" style="width: 99%"></div></div>
|
|
325
325
|
</td>
|
|
326
|
-
<td data-value="1.
|
|
327
|
-
<td data-value="
|
|
326
|
+
<td data-value="1.78" class="pct low">1.78%</td>
|
|
327
|
+
<td data-value="2183" class="abs low">39/2183</td>
|
|
328
328
|
<td data-value="0" class="pct low">0%</td>
|
|
329
|
-
<td data-value="
|
|
329
|
+
<td data-value="1680" class="abs low">0/1680</td>
|
|
330
330
|
<td data-value="0" class="pct low">0%</td>
|
|
331
|
-
<td data-value="
|
|
332
|
-
<td data-value="1.
|
|
333
|
-
<td data-value="
|
|
331
|
+
<td data-value="259" class="abs low">0/259</td>
|
|
332
|
+
<td data-value="1.81" class="pct low">1.81%</td>
|
|
333
|
+
<td data-value="2095" class="abs low">38/2095</td>
|
|
334
334
|
</tr>
|
|
335
335
|
|
|
336
336
|
<tr>
|
|
@@ -365,17 +365,17 @@
|
|
|
365
365
|
|
|
366
366
|
<tr>
|
|
367
367
|
<td class="file low" data-value="translator.ts"><a href="translator.ts.html">translator.ts</a></td>
|
|
368
|
-
<td data-value="4.
|
|
368
|
+
<td data-value="4.51" class="pic low">
|
|
369
369
|
<div class="chart"><div class="cover-fill" style="width: 4%"></div><div class="cover-empty" style="width: 96%"></div></div>
|
|
370
370
|
</td>
|
|
371
|
-
<td data-value="4.
|
|
372
|
-
<td data-value="
|
|
371
|
+
<td data-value="4.51" class="pct low">4.51%</td>
|
|
372
|
+
<td data-value="310" class="abs low">14/310</td>
|
|
373
373
|
<td data-value="0" class="pct low">0%</td>
|
|
374
|
-
<td data-value="
|
|
375
|
-
<td data-value="
|
|
376
|
-
<td data-value="
|
|
377
|
-
<td data-value="
|
|
378
|
-
<td data-value="
|
|
374
|
+
<td data-value="314" class="abs low">0/314</td>
|
|
375
|
+
<td data-value="5" class="pct low">5%</td>
|
|
376
|
+
<td data-value="20" class="abs low">1/20</td>
|
|
377
|
+
<td data-value="5" class="pct low">5%</td>
|
|
378
|
+
<td data-value="280" class="abs low">14/280</td>
|
|
379
379
|
</tr>
|
|
380
380
|
|
|
381
381
|
</tbody>
|
|
@@ -386,7 +386,7 @@
|
|
|
386
386
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
387
387
|
Code coverage generated by
|
|
388
388
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
389
|
-
at 2023-
|
|
389
|
+
at 2023-10-27T11:50:55.546Z
|
|
390
390
|
</div>
|
|
391
391
|
<script src="../../prettify.js"></script>
|
|
392
392
|
<script>
|
|
@@ -214,7 +214,7 @@ export const NaslServer = NaslServerClass;
|
|
|
214
214
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
215
215
|
Code coverage generated by
|
|
216
216
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
217
|
-
at 2023-
|
|
217
|
+
at 2023-10-27T11:50:55.546Z
|
|
218
218
|
</div>
|
|
219
219
|
<script src="../../prettify.js"></script>
|
|
220
220
|
<script>
|