Skip to content
This repository has been archived by the owner on Apr 7, 2024. It is now read-only.

Commit

Permalink
new project structure
Browse files Browse the repository at this point in the history
  • Loading branch information
pgonzaleznetwork committed May 2, 2022
1 parent 0e45898 commit f17d79a
Show file tree
Hide file tree
Showing 15 changed files with 550 additions and 514 deletions.
2 changes: 1 addition & 1 deletion coverage/clover.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<metrics statements="181" coveredstatements="179" conditionals="99" coveredconditionals="96" methods="49" coveredmethods="49" elements="329" coveredelements="324" complexity="0" loc="181" ncloc="181" packages="3" files="5" classes="5"/>
<package name="lib">
<metrics statements="126" coveredstatements="126" conditionals="65" coveredconditionals="64" methods="42" coveredmethods="42"/>
<file name="ValueTypes.js" path="/Users/pgonzalez/Documents/apps/sfdc-formula-parser/lib/ValueTypes.js">
<file name="MetadataTypes.js" path="/Users/pgonzalez/Documents/apps/sfdc-formula-parser/lib/MetadataTypes.js">
<metrics statements="11" coveredstatements="11" conditionals="0" coveredconditionals="0" methods="1" coveredmethods="1"/>
<line num="1" count="3" type="stmt"/>
<line num="3" count="3" type="stmt"/>
Expand Down
2 changes: 1 addition & 1 deletion coverage/coverage-final.json

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions coverage/coverage-summary.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{"total": {"lines":{"total":212,"covered":210,"skipped":0,"pct":99.05},"statements":{"total":244,"covered":240,"skipped":0,"pct":98.36},"functions":{"total":49,"covered":49,"skipped":0,"pct":100},"branches":{"total":103,"covered":99,"skipped":0,"pct":96.11},"branchesTrue":{"total":0,"covered":0,"skipped":0,"pct":100}}
,"/Users/pgonzalez/Documents/apps/sfdc-formula-parser/lib/ValueTypes.js": {"lines":{"total":11,"covered":11,"skipped":0,"pct":100},"functions":{"total":1,"covered":1,"skipped":0,"pct":100},"statements":{"total":11,"covered":11,"skipped":0,"pct":100},"branches":{"total":0,"covered":0,"skipped":0,"pct":100}}
{"total": {"lines":{"total":213,"covered":211,"skipped":0,"pct":99.06},"statements":{"total":245,"covered":242,"skipped":0,"pct":98.77},"functions":{"total":49,"covered":49,"skipped":0,"pct":100},"branches":{"total":103,"covered":100,"skipped":0,"pct":97.08},"branchesTrue":{"total":0,"covered":0,"skipped":0,"pct":100}}
,"/Users/pgonzalez/Documents/apps/sfdc-formula-parser/lib/MetadataTypes.js": {"lines":{"total":11,"covered":11,"skipped":0,"pct":100},"functions":{"total":1,"covered":1,"skipped":0,"pct":100},"statements":{"total":11,"covered":11,"skipped":0,"pct":100},"branches":{"total":0,"covered":0,"skipped":0,"pct":100}}
,"/Users/pgonzalez/Documents/apps/sfdc-formula-parser/lib/parseTypes.js": {"lines":{"total":48,"covered":48,"skipped":0,"pct":100},"functions":{"total":3,"covered":3,"skipped":0,"pct":100},"statements":{"total":49,"covered":49,"skipped":0,"pct":100},"branches":{"total":40,"covered":40,"skipped":0,"pct":100}}
,"/Users/pgonzalez/Documents/apps/sfdc-formula-parser/lib/utils.js": {"lines":{"total":6,"covered":6,"skipped":0,"pct":100},"functions":{"total":5,"covered":5,"skipped":0,"pct":100},"statements":{"total":11,"covered":11,"skipped":0,"pct":100},"branches":{"total":0,"covered":0,"skipped":0,"pct":100}}
,"/Users/pgonzalez/Documents/apps/sfdc-formula-parser/lib/mappings/cpq.js": {"lines":{"total":1,"covered":1,"skipped":0,"pct":100},"functions":{"total":0,"covered":0,"skipped":0,"pct":100},"statements":{"total":1,"covered":1,"skipped":0,"pct":100},"branches":{"total":0,"covered":0,"skipped":0,"pct":100}}
,"/Users/pgonzalez/Documents/apps/sfdc-formula-parser/lib/parser/grammar.js": {"lines":{"total":21,"covered":21,"skipped":0,"pct":100},"functions":{"total":0,"covered":0,"skipped":0,"pct":100},"statements":{"total":21,"covered":21,"skipped":0,"pct":100},"branches":{"total":0,"covered":0,"skipped":0,"pct":100}}
,"/Users/pgonzalez/Documents/apps/sfdc-formula-parser/lib/parser/grammarChecks.js": {"lines":{"total":29,"covered":29,"skipped":0,"pct":100},"functions":{"total":20,"covered":20,"skipped":0,"pct":100},"statements":{"total":47,"covered":45,"skipped":0,"pct":95.74},"branches":{"total":11,"covered":9,"skipped":0,"pct":81.81}}
,"/Users/pgonzalez/Documents/apps/sfdc-formula-parser/lib/parser/grammarChecks.js": {"lines":{"total":30,"covered":30,"skipped":0,"pct":100},"functions":{"total":20,"covered":20,"skipped":0,"pct":100},"statements":{"total":48,"covered":47,"skipped":0,"pct":97.91},"branches":{"total":11,"covered":10,"skipped":0,"pct":90.9}}
,"/Users/pgonzalez/Documents/apps/sfdc-formula-parser/lib/parser/transformations.js": {"lines":{"total":40,"covered":40,"skipped":0,"pct":100},"functions":{"total":13,"covered":13,"skipped":0,"pct":100},"statements":{"total":46,"covered":46,"skipped":0,"pct":100},"branches":{"total":14,"covered":14,"skipped":0,"pct":100}}
,"/Users/pgonzalez/Documents/apps/sfdc-formula-parser/src/index.js": {"lines":{"total":56,"covered":54,"skipped":0,"pct":96.42},"functions":{"total":7,"covered":7,"skipped":0,"pct":100},"statements":{"total":58,"covered":56,"skipped":0,"pct":96.55},"branches":{"total":38,"covered":36,"skipped":0,"pct":94.73}}
}
287 changes: 144 additions & 143 deletions coverage/lcov.info
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
TN:
SF:lib/ValueTypes.js
SF:lib/MetadataTypes.js
FN:13,(anonymous_0)
FNF:1
FNH:1
Expand Down Expand Up @@ -132,17 +132,17 @@ FN:5,(anonymous_3)
FN:6,(anonymous_4)
FNF:5
FNH:5
FNDA:936,(anonymous_0)
FNDA:438,(anonymous_1)
FNDA:196,(anonymous_2)
FNDA:143,(anonymous_3)
FNDA:974,(anonymous_0)
FNDA:455,(anonymous_1)
FNDA:201,(anonymous_2)
FNDA:151,(anonymous_3)
FNDA:7,(anonymous_4)
DA:2,936
DA:3,438
DA:4,196
DA:5,143
DA:2,974
DA:3,455
DA:4,201
DA:5,151
DA:6,7
DA:9,3
DA:9,5
LF:6
LH:6
BRF:0
Expand All @@ -152,7 +152,7 @@ TN:
SF:lib/mappings/cpq.js
FNF:0
FNH:0
DA:1,2
DA:1,3
LF:1
LH:1
BRF:0
Expand All @@ -162,27 +162,27 @@ TN:
SF:lib/parser/grammar.js
FNF:0
FNH:0
DA:1,2
DA:3,2
DA:5,2
DA:7,2
DA:9,2
DA:11,2
DA:13,2
DA:15,2
DA:17,2
DA:19,2
DA:21,2
DA:23,2
DA:25,2
DA:27,2
DA:29,2
DA:31,2
DA:33,2
DA:35,2
DA:37,2
DA:55,2
DA:143,2
DA:1,4
DA:3,4
DA:5,4
DA:7,4
DA:9,4
DA:11,4
DA:13,4
DA:15,4
DA:17,4
DA:19,4
DA:21,4
DA:23,4
DA:25,4
DA:27,4
DA:29,4
DA:31,4
DA:33,4
DA:35,4
DA:37,4
DA:55,4
DA:143,4
LF:21
LH:21
BRF:0
Expand All @@ -208,74 +208,75 @@ FN:31,(anonymous_14)
FN:33,(anonymous_15)
FN:35,(anonymous_16)
FN:39,(anonymous_17)
FN:43,(anonymous_18)
FN:49,(anonymous_19)
FN:46,(anonymous_18)
FN:52,(anonymous_19)
FNF:20
FNH:20
FNDA:2,(anonymous_0)
FNDA:2,(anonymous_1)
FNDA:1148,(anonymous_2)
FNDA:1157,(anonymous_2)
FNDA:18,(anonymous_3)
FNDA:105,(anonymous_4)
FNDA:112,(anonymous_5)
FNDA:21,(anonymous_6)
FNDA:152,(anonymous_7)
FNDA:64,(anonymous_8)
FNDA:97,(anonymous_9)
FNDA:26,(anonymous_10)
FNDA:24,(anonymous_11)
FNDA:35,(anonymous_12)
FNDA:70,(anonymous_13)
FNDA:126,(anonymous_14)
FNDA:64,(anonymous_15)
FNDA:108,(anonymous_4)
FNDA:116,(anonymous_5)
FNDA:23,(anonymous_6)
FNDA:162,(anonymous_7)
FNDA:72,(anonymous_8)
FNDA:100,(anonymous_9)
FNDA:28,(anonymous_10)
FNDA:26,(anonymous_11)
FNDA:37,(anonymous_12)
FNDA:73,(anonymous_13)
FNDA:128,(anonymous_14)
FNDA:66,(anonymous_15)
FNDA:119,(anonymous_16)
FNDA:64,(anonymous_17)
FNDA:1092,(anonymous_18)
FNDA:56,(anonymous_19)
DA:1,2
DA:2,2
DA:4,2
DA:5,2
DA:7,1148
FNDA:1095,(anonymous_18)
FNDA:62,(anonymous_19)
DA:1,4
DA:2,4
DA:4,4
DA:5,4
DA:7,1157
DA:9,18
DA:11,105
DA:13,112
DA:15,21
DA:17,152
DA:19,64
DA:21,97
DA:23,26
DA:25,24
DA:27,35
DA:29,70
DA:31,126
DA:33,64
DA:35,2
DA:11,108
DA:13,116
DA:15,23
DA:17,162
DA:19,72
DA:21,100
DA:23,28
DA:25,26
DA:27,37
DA:29,73
DA:31,128
DA:33,66
DA:35,4
DA:36,119
DA:39,2
DA:40,64
DA:43,2
DA:45,1092
DA:46,1092
DA:49,2
DA:51,56
DA:53,56
DA:56,2
LF:29
LH:29
BRDA:7,0,0,1148
BRDA:7,0,1,1148
BRDA:7,0,2,1148
DA:39,4
DA:41,64
DA:43,64
DA:46,4
DA:48,1095
DA:49,1095
DA:52,4
DA:54,62
DA:56,59
DA:59,4
LF:30
LH:30
BRDA:7,0,0,1157
BRDA:7,0,1,1155
BRDA:7,0,2,1155
BRDA:36,1,0,119
BRDA:36,1,1,4
BRDA:40,2,0,64
BRDA:40,2,1,4
BRDA:45,3,0,0
BRDA:45,3,1,1092
BRDA:51,4,0,0
BRDA:51,4,1,56
BRDA:43,2,0,64
BRDA:43,2,1,4
BRDA:48,3,0,0
BRDA:48,3,1,1095
BRDA:54,4,0,3
BRDA:54,4,1,59
BRF:11
BRH:9
BRH:10
end_of_record
TN:
SF:lib/parser/transformations.js
Expand All @@ -294,73 +295,73 @@ FN:102,(anonymous_11)
FN:104,(anonymous_12)
FNF:13
FNH:13
FNDA:36,(anonymous_0)
FNDA:9,(anonymous_1)
FNDA:11,(anonymous_2)
FNDA:93,(anonymous_3)
FNDA:5,(anonymous_4)
FNDA:2,(anonymous_5)
FNDA:3,(anonymous_6)
FNDA:4,(anonymous_7)
FNDA:80,(anonymous_8)
FNDA:72,(anonymous_9)
FNDA:68,(anonymous_10)
FNDA:37,(anonymous_0)
FNDA:13,(anonymous_1)
FNDA:13,(anonymous_2)
FNDA:99,(anonymous_3)
FNDA:6,(anonymous_4)
FNDA:3,(anonymous_5)
FNDA:4,(anonymous_6)
FNDA:5,(anonymous_7)
FNDA:85,(anonymous_8)
FNDA:75,(anonymous_9)
FNDA:70,(anonymous_10)
FNDA:2,(anonymous_11)
FNDA:2,(anonymous_12)
DA:1,2
DA:2,2
DA:3,2
DA:4,2
DA:5,2
DA:7,36
DA:9,9
DA:11,11
DA:13,93
DA:15,2
DA:18,5
DA:20,5
DA:33,2
DA:35,2
DA:41,2
DA:43,3
DA:45,3
DA:54,2
DA:57,4
DA:59,4
DA:66,2
DA:68,80
DA:69,12
DA:72,80
DA:79,2
DA:81,72
DA:83,72
DA:84,6
DA:86,66
DA:1,3
DA:2,3
DA:3,3
DA:4,3
DA:5,3
DA:7,37
DA:9,13
DA:11,13
DA:13,99
DA:15,3
DA:18,6
DA:20,6
DA:33,3
DA:35,3
DA:41,3
DA:43,4
DA:45,4
DA:54,3
DA:57,5
DA:59,5
DA:66,3
DA:68,85
DA:69,17
DA:72,85
DA:79,3
DA:81,75
DA:83,75
DA:84,8
DA:86,67
DA:87,1
DA:89,65
DA:89,66
DA:90,10
DA:93,72
DA:100,68
DA:102,2
DA:104,2
DA:93,75
DA:100,70
DA:102,3
DA:104,3
DA:106,2
DA:108,2
DA:110,2
DA:114,2
DA:114,3
LF:40
LH:40
BRDA:68,0,0,12
BRDA:68,0,0,17
BRDA:68,0,1,68
BRDA:73,1,0,21
BRDA:73,1,1,59
BRDA:83,2,0,6
BRDA:83,2,1,66
BRDA:73,1,0,25
BRDA:73,1,1,60
BRDA:83,2,0,8
BRDA:83,2,1,67
BRDA:86,3,0,1
BRDA:86,3,1,65
BRDA:86,3,1,66
BRDA:89,4,0,10
BRDA:89,4,1,55
BRDA:100,5,0,4
BRDA:100,5,1,64
BRDA:89,4,1,56
BRDA:100,5,0,5
BRDA:100,5,1,65
BRDA:110,6,0,1
BRDA:110,6,1,1
BRF:14
Expand Down
17 changes: 17 additions & 0 deletions lib/MetadataTypes.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
module.exports = class MetadataType {

static CUSTOM_FIELD = new MetadataType("customFields")
static STANDARD_FIELD = new MetadataType("standardFields")
static CUSTOM_OBJECT = new MetadataType("customObjects")
static STANDARD_OBJECT = new MetadataType("standardObjects")
static CUSTOM_LABEL = new MetadataType("customLabels")
static CUSTOM_SETTING = new MetadataType("customSettings")
static CUSTOM_METADATA_TYPE_RECORD = new MetadataType("customMetadataTypeRecords")
static CUSTOM_METADATA_TYPE = new MetadataType("customMetadataTypes")
static UNKNOWN_RELATIONSHIP = new MetadataType("unknownRelationships")

constructor(name) {
this.name = name
}

}
Loading

0 comments on commit f17d79a

Please sign in to comment.