diff --git a/ci/build_and_pub_local.sh b/ci/build_and_pub_local.sh new file mode 100755 index 0000000..e9c9965 --- /dev/null +++ b/ci/build_and_pub_local.sh @@ -0,0 +1,3 @@ +#!/usr/bin/env bash +npm run build +./ci/postbuild.sh diff --git a/coverage/clover.xml b/coverage/clover.xml new file mode 100644 index 0000000..f9c9182 --- /dev/null +++ b/coverage/clover.xml @@ -0,0 +1,373 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/coverage/coverage-final.json b/coverage/coverage-final.json new file mode 100644 index 0000000..f9879fe --- /dev/null +++ b/coverage/coverage-final.json @@ -0,0 +1,8 @@ +{"/Users/oda/Documents/iPm-tool-test-obsidian-vault/.obsidian/plugins/obsidian-i-pm-tool/src/data-model/BaseDatabaseObject.ts": {"path":"/Users/oda/Documents/iPm-tool-test-obsidian-vault/.obsidian/plugins/obsidian-i-pm-tool/src/data-model/BaseDatabaseObject.ts","statementMap":{"0":{"start":{"line":4,"column":8},"end":{"line":4,"column":29}},"1":{"start":{"line":1,"column":0},"end":{"line":1,"column":13}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":3,"column":4},"end":{"line":3,"column":null}},"loc":{"start":{"line":3,"column":4},"end":{"line":5,"column":5}}}},"branchMap":{},"s":{"0":0,"1":2},"f":{"0":0},"b":{}} +,"/Users/oda/Documents/iPm-tool-test-obsidian-vault/.obsidian/plugins/obsidian-i-pm-tool/src/data-model/OdaPmProject.ts": {"path":"/Users/oda/Documents/iPm-tool-test-obsidian-vault/.obsidian/plugins/obsidian-i-pm-tool/src/data-model/OdaPmProject.ts","statementMap":{"0":{"start":{"line":2,"column":0},"end":{"line":2,"column":41}},"1":{"start":{"line":3,"column":0},"end":{"line":3,"column":70}},"2":{"start":{"line":4,"column":0},"end":{"line":4,"column":56}},"3":{"start":{"line":6,"column":0},"end":{"line":6,"column":29}},"4":{"start":{"line":8,"column":34},"end":{"line":8,"column":52}},"5":{"start":{"line":9,"column":32},"end":{"line":9,"column":45}},"6":{"start":{"line":10,"column":13},"end":{"line":10,"column":55}},"7":{"start":{"line":11,"column":13},"end":{"line":11,"column":50}},"8":{"start":{"line":12,"column":31},"end":{"line":17,"column":null}},"9":{"start":{"line":18,"column":26},"end":{"line":18,"column":27}},"10":{"start":{"line":19,"column":13},"end":{"line":19,"column":91}},"11":{"start":{"line":22,"column":4},"end":{"line":22,"column":29}},"12":{"start":{"line":23,"column":4},"end":{"line":23,"column":28}},"13":{"start":{"line":21,"column":0},"end":{"line":21,"column":16}},"14":{"start":{"line":38,"column":8},"end":{"line":38,"column":16}},"15":{"start":{"line":39,"column":8},"end":{"line":39,"column":null}},"16":{"start":{"line":40,"column":8},"end":{"line":40,"column":null}},"17":{"start":{"line":41,"column":8},"end":{"line":41,"column":null}},"18":{"start":{"line":42,"column":8},"end":{"line":42,"column":null}},"19":{"start":{"line":43,"column":8},"end":{"line":43,"column":27}},"20":{"start":{"line":48,"column":8},"end":{"line":48,"column":48}},"21":{"start":{"line":53,"column":8},"end":{"line":55,"column":null}},"22":{"start":{"line":54,"column":12},"end":{"line":54,"column":41}},"23":{"start":{"line":59,"column":8},"end":{"line":61,"column":null}},"24":{"start":{"line":60,"column":12},"end":{"line":60,"column":34}},"25":{"start":{"line":66,"column":8},"end":{"line":66,"column":80}},"26":{"start":{"line":67,"column":8},"end":{"line":67,"column":41}},"27":{"start":{"line":76,"column":8},"end":{"line":77,"column":24}},"28":{"start":{"line":77,"column":12},"end":{"line":77,"column":24}},"29":{"start":{"line":79,"column":19},"end":{"line":79,"column":38}},"30":{"start":{"line":80,"column":21},"end":{"line":80,"column":36}},"31":{"start":{"line":82,"column":19},"end":{"line":82,"column":23}},"32":{"start":{"line":83,"column":26},"end":{"line":83,"column":30}},"33":{"start":{"line":84,"column":22},"end":{"line":84,"column":26}},"34":{"start":{"line":85,"column":8},"end":{"line":103,"column":null}},"35":{"start":{"line":86,"column":12},"end":{"line":86,"column":49}},"36":{"start":{"line":87,"column":12},"end":{"line":87,"column":35}},"37":{"start":{"line":89,"column":12},"end":{"line":89,"column":46}},"38":{"start":{"line":91,"column":12},"end":{"line":95,"column":null}},"39":{"start":{"line":94,"column":16},"end":{"line":94,"column":null}},"40":{"start":{"line":96,"column":15},"end":{"line":103,"column":null}},"41":{"start":{"line":97,"column":12},"end":{"line":97,"column":47}},"42":{"start":{"line":98,"column":12},"end":{"line":98,"column":33}},"43":{"start":{"line":100,"column":12},"end":{"line":100,"column":32}},"44":{"start":{"line":102,"column":12},"end":{"line":102,"column":24}},"45":{"start":{"line":105,"column":24},"end":{"line":105,"column":53}},"46":{"start":{"line":106,"column":8},"end":{"line":106,"column":44}},"47":{"start":{"line":107,"column":8},"end":{"line":107,"column":30}},"48":{"start":{"line":108,"column":8},"end":{"line":108,"column":null}},"49":{"start":{"line":109,"column":8},"end":{"line":109,"column":44}},"50":{"start":{"line":110,"column":8},"end":{"line":110,"column":null}},"51":{"start":{"line":111,"column":8},"end":{"line":111,"column":23}},"52":{"start":{"line":115,"column":21},"end":{"line":115,"column":47}},"53":{"start":{"line":116,"column":24},"end":{"line":116,"column":53}},"54":{"start":{"line":117,"column":8},"end":{"line":117,"column":47}},"55":{"start":{"line":119,"column":8},"end":{"line":119,"column":50}},"56":{"start":{"line":120,"column":8},"end":{"line":120,"column":23}},"57":{"start":{"line":124,"column":24},"end":{"line":124,"column":73}},"58":{"start":{"line":125,"column":8},"end":{"line":125,"column":null}},"59":{"start":{"line":126,"column":8},"end":{"line":126,"column":31}},"60":{"start":{"line":127,"column":8},"end":{"line":127,"column":23}},"61":{"start":{"line":131,"column":18},"end":{"line":131,"column":36}},"62":{"start":{"line":132,"column":8},"end":{"line":132,"column":22}},"63":{"start":{"line":133,"column":8},"end":{"line":133,"column":46}},"64":{"start":{"line":134,"column":8},"end":{"line":134,"column":17}},"65":{"start":{"line":138,"column":24},"end":{"line":140,"column":38}},"66":{"start":{"line":142,"column":8},"end":{"line":142,"column":23}},"67":{"start":{"line":151,"column":8},"end":{"line":153,"column":null}},"68":{"start":{"line":152,"column":12},"end":{"line":152,"column":38}},"69":{"start":{"line":154,"column":8},"end":{"line":154,"column":32}},"70":{"start":{"line":158,"column":8},"end":{"line":160,"column":null}},"71":{"start":{"line":159,"column":12},"end":{"line":159,"column":44}},"72":{"start":{"line":161,"column":8},"end":{"line":161,"column":36}},"73":{"start":{"line":29,"column":0},"end":{"line":29,"column":13}}},"fnMap":{"0":{"name":"clearGlobalProjectMap","decl":{"start":{"line":21,"column":16},"end":{"line":21,"column":37}},"loc":{"start":{"line":21,"column":37},"end":{"line":24,"column":1}}},"1":{"name":"(anonymous_1)","decl":{"start":{"line":37,"column":4},"end":{"line":37,"column":null}},"loc":{"start":{"line":37,"column":4},"end":{"line":44,"column":5}}},"2":{"name":"(anonymous_2)","decl":{"start":{"line":47,"column":4},"end":{"line":47,"column":18}},"loc":{"start":{"line":47,"column":43},"end":{"line":49,"column":5}}},"3":{"name":"(anonymous_3)","decl":{"start":{"line":52,"column":12},"end":{"line":52,"column":26}},"loc":{"start":{"line":52,"column":51},"end":{"line":56,"column":5}}},"4":{"name":"(anonymous_4)","decl":{"start":{"line":58,"column":12},"end":{"line":58,"column":19}},"loc":{"start":{"line":58,"column":39},"end":{"line":62,"column":5}}},"5":{"name":"(anonymous_5)","decl":{"start":{"line":64,"column":12},"end":{"line":64,"column":22}},"loc":{"start":{"line":64,"column":43},"end":{"line":68,"column":5}}},"6":{"name":"(anonymous_6)","decl":{"start":{"line":75,"column":11},"end":{"line":75,"column":17}},"loc":{"start":{"line":75,"column":66},"end":{"line":112,"column":5}}},"7":{"name":"(anonymous_7)","decl":{"start":{"line":114,"column":11},"end":{"line":114,"column":17}},"loc":{"start":{"line":114,"column":71},"end":{"line":121,"column":5}}},"8":{"name":"(anonymous_8)","decl":{"start":{"line":123,"column":11},"end":{"line":123,"column":17}},"loc":{"start":{"line":123,"column":43},"end":{"line":128,"column":5}}},"9":{"name":"(anonymous_9)","decl":{"start":{"line":130,"column":12},"end":{"line":130,"column":18}},"loc":{"start":{"line":130,"column":45},"end":{"line":135,"column":5}}},"10":{"name":"(anonymous_10)","decl":{"start":{"line":137,"column":12},"end":{"line":137,"column":18}},"loc":{"start":{"line":137,"column":50},"end":{"line":143,"column":5}}},"11":{"name":"(anonymous_11)","decl":{"start":{"line":150,"column":4},"end":{"line":150,"column":12}},"loc":{"start":{"line":150,"column":30},"end":{"line":155,"column":5}}},"12":{"name":"(anonymous_12)","decl":{"start":{"line":157,"column":4},"end":{"line":157,"column":16}},"loc":{"start":{"line":157,"column":44},"end":{"line":162,"column":5}}}},"branchMap":{"0":{"loc":{"start":{"line":53,"column":8},"end":{"line":55,"column":null}},"type":"if","locations":[{"start":{"line":53,"column":8},"end":{"line":55,"column":null}}]},"1":{"loc":{"start":{"line":59,"column":8},"end":{"line":61,"column":null}},"type":"if","locations":[{"start":{"line":59,"column":8},"end":{"line":61,"column":null}}]},"2":{"loc":{"start":{"line":66,"column":24},"end":{"line":66,"column":63}},"type":"cond-expr","locations":[{"start":{"line":66,"column":55},"end":{"line":66,"column":57}},{"start":{"line":66,"column":60},"end":{"line":66,"column":63}}]},"3":{"loc":{"start":{"line":76,"column":8},"end":{"line":77,"column":24}},"type":"if","locations":[{"start":{"line":76,"column":8},"end":{"line":77,"column":24}}]},"4":{"loc":{"start":{"line":85,"column":8},"end":{"line":103,"column":null}},"type":"if","locations":[{"start":{"line":85,"column":8},"end":{"line":103,"column":null}},{"start":{"line":96,"column":15},"end":{"line":103,"column":null}}]},"5":{"loc":{"start":{"line":91,"column":12},"end":{"line":95,"column":null}},"type":"if","locations":[{"start":{"line":91,"column":12},"end":{"line":95,"column":null}}]},"6":{"loc":{"start":{"line":96,"column":15},"end":{"line":103,"column":null}},"type":"if","locations":[{"start":{"line":96,"column":15},"end":{"line":103,"column":null}},{"start":{"line":101,"column":15},"end":{"line":103,"column":null}}]},"7":{"loc":{"start":{"line":138,"column":24},"end":{"line":140,"column":38}},"type":"cond-expr","locations":[{"start":{"line":139,"column":12},"end":{"line":139,"column":54}},{"start":{"line":140,"column":14},"end":{"line":140,"column":38}}]},"8":{"loc":{"start":{"line":151,"column":8},"end":{"line":153,"column":null}},"type":"if","locations":[{"start":{"line":151,"column":8},"end":{"line":153,"column":null}}]},"9":{"loc":{"start":{"line":158,"column":8},"end":{"line":160,"column":null}},"type":"if","locations":[{"start":{"line":158,"column":8},"end":{"line":160,"column":null}}]}},"s":{"0":2,"1":2,"2":2,"3":2,"4":2,"5":2,"6":2,"7":2,"8":2,"9":2,"10":2,"11":0,"12":0,"13":2,"14":0,"15":0,"16":0,"17":0,"18":0,"19":0,"20":0,"21":0,"22":0,"23":0,"24":0,"25":0,"26":0,"27":0,"28":0,"29":0,"30":0,"31":0,"32":0,"33":0,"34":0,"35":0,"36":0,"37":0,"38":0,"39":0,"40":0,"41":0,"42":0,"43":0,"44":0,"45":0,"46":0,"47":0,"48":0,"49":0,"50":0,"51":0,"52":0,"53":0,"54":0,"55":0,"56":0,"57":0,"58":0,"59":0,"60":0,"61":0,"62":0,"63":0,"64":0,"65":0,"66":0,"67":0,"68":0,"69":0,"70":0,"71":0,"72":0,"73":2},"f":{"0":0,"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0},"b":{"0":[0],"1":[0],"2":[0,0],"3":[0],"4":[0,0],"5":[0],"6":[0,0],"7":[0,0],"8":[0],"9":[0]}} +,"/Users/oda/Documents/iPm-tool-test-obsidian-vault/.obsidian/plugins/obsidian-i-pm-tool/src/data-model/OdaPmStep.ts": {"path":"/Users/oda/Documents/iPm-tool-test-obsidian-vault/.obsidian/plugins/obsidian-i-pm-tool/src/data-model/OdaPmStep.ts","statementMap":{"0":{"start":{"line":1,"column":0},"end":{"line":1,"column":60}},"1":{"start":{"line":9,"column":8},"end":{"line":9,"column":23}},"2":{"start":{"line":10,"column":8},"end":{"line":10,"column":53}},"3":{"start":{"line":14,"column":8},"end":{"line":17,"column":null}},"4":{"start":{"line":21,"column":13},"end":{"line":21,"column":82}},"5":{"start":{"line":28,"column":4},"end":{"line":28,"column":26}},"6":{"start":{"line":28,"column":14},"end":{"line":28,"column":26}},"7":{"start":{"line":29,"column":4},"end":{"line":31,"column":null}},"8":{"start":{"line":30,"column":8},"end":{"line":30,"column":49}},"9":{"start":{"line":32,"column":17},"end":{"line":32,"column":35}},"10":{"start":{"line":33,"column":4},"end":{"line":33,"column":33}},"11":{"start":{"line":34,"column":4},"end":{"line":34,"column":16}},"12":{"start":{"line":27,"column":0},"end":{"line":27,"column":16}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":8,"column":4},"end":{"line":8,"column":16}},"loc":{"start":{"line":8,"column":27},"end":{"line":11,"column":5}}},"1":{"name":"(anonymous_1)","decl":{"start":{"line":13,"column":4},"end":{"line":13,"column":12}},"loc":{"start":{"line":13,"column":12},"end":{"line":18,"column":5}}},"2":{"name":"getOrCreateStep","decl":{"start":{"line":27,"column":16},"end":{"line":27,"column":31}},"loc":{"start":{"line":27,"column":55},"end":{"line":35,"column":1}}}},"branchMap":{"0":{"loc":{"start":{"line":28,"column":4},"end":{"line":28,"column":26}},"type":"if","locations":[{"start":{"line":28,"column":4},"end":{"line":28,"column":26}}]},"1":{"loc":{"start":{"line":29,"column":4},"end":{"line":31,"column":null}},"type":"if","locations":[{"start":{"line":29,"column":4},"end":{"line":31,"column":null}}]}},"s":{"0":2,"1":0,"2":0,"3":0,"4":2,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":2},"f":{"0":0,"1":0,"2":0},"b":{"0":[0],"1":[0]}} +,"/Users/oda/Documents/iPm-tool-test-obsidian-vault/.obsidian/plugins/obsidian-i-pm-tool/src/data-model/OdaPmTask.ts": {"path":"/Users/oda/Documents/iPm-tool-test-obsidian-vault/.obsidian/plugins/obsidian-i-pm-tool/src/data-model/OdaPmTask.ts","statementMap":{"0":{"start":{"line":3,"column":0},"end":{"line":3,"column":null}},"1":{"start":{"line":13,"column":0},"end":{"line":13,"column":56}},"2":{"start":{"line":14,"column":0},"end":{"line":14,"column":44}},"3":{"start":{"line":29,"column":8},"end":{"line":29,"column":16}},"4":{"start":{"line":30,"column":8},"end":{"line":30,"column":30}},"5":{"start":{"line":31,"column":8},"end":{"line":31,"column":30}},"6":{"start":{"line":32,"column":8},"end":{"line":32,"column":25}},"7":{"start":{"line":33,"column":8},"end":{"line":33,"column":null}},"8":{"start":{"line":34,"column":8},"end":{"line":34,"column":31}},"9":{"start":{"line":35,"column":8},"end":{"line":41,"column":null}},"10":{"start":{"line":36,"column":12},"end":{"line":40,"column":null}},"11":{"start":{"line":37,"column":29},"end":{"line":37,"column":49}},"12":{"start":{"line":38,"column":16},"end":{"line":39,"column":null}},"13":{"start":{"line":39,"column":20},"end":{"line":39,"column":null}},"14":{"start":{"line":42,"column":8},"end":{"line":42,"column":null}},"15":{"start":{"line":46,"column":8},"end":{"line":51,"column":null}},"16":{"start":{"line":50,"column":53},"end":{"line":50,"column":65}},"17":{"start":{"line":55,"column":8},"end":{"line":55,"column":38}},"18":{"start":{"line":59,"column":8},"end":{"line":67,"column":null}},"19":{"start":{"line":61,"column":32},"end":{"line":61,"column":79}},"20":{"start":{"line":62,"column":16},"end":{"line":62,"column":51}},"21":{"start":{"line":62,"column":38},"end":{"line":62,"column":51}},"22":{"start":{"line":63,"column":16},"end":{"line":63,"column":null}},"23":{"start":{"line":66,"column":16},"end":{"line":66,"column":null}},"24":{"start":{"line":71,"column":8},"end":{"line":71,"column":40}},"25":{"start":{"line":78,"column":8},"end":{"line":81,"column":null}},"26":{"start":{"line":78,"column":21},"end":{"line":78,"column":50}},"27":{"start":{"line":79,"column":12},"end":{"line":80,"column":45}},"28":{"start":{"line":80,"column":16},"end":{"line":80,"column":45}},"29":{"start":{"line":82,"column":8},"end":{"line":82,"column":20}},"30":{"start":{"line":86,"column":8},"end":{"line":86,"column":null}},"31":{"start":{"line":90,"column":8},"end":{"line":90,"column":35}},"32":{"start":{"line":90,"column":22},"end":{"line":90,"column":35}},"33":{"start":{"line":91,"column":8},"end":{"line":99,"column":null}},"34":{"start":{"line":94,"column":16},"end":{"line":94,"column":null}},"35":{"start":{"line":96,"column":31},"end":{"line":96,"column":89}},"36":{"start":{"line":96,"column":61},"end":{"line":96,"column":77}},"37":{"start":{"line":97,"column":16},"end":{"line":97,"column":null}},"38":{"start":{"line":104,"column":8},"end":{"line":104,"column":76}},"39":{"start":{"line":104,"column":45},"end":{"line":104,"column":63}},"40":{"start":{"line":108,"column":21},"end":{"line":108,"column":40}},"41":{"start":{"line":109,"column":8},"end":{"line":109,"column":41}},"42":{"start":{"line":113,"column":8},"end":{"line":113,"column":59}},"43":{"start":{"line":117,"column":22},"end":{"line":117,"column":31}},"44":{"start":{"line":118,"column":8},"end":{"line":122,"column":null}},"45":{"start":{"line":119,"column":12},"end":{"line":121,"column":null}},"46":{"start":{"line":120,"column":16},"end":{"line":120,"column":null}},"47":{"start":{"line":123,"column":8},"end":{"line":123,"column":23}},"48":{"start":{"line":127,"column":8},"end":{"line":132,"column":null}},"49":{"start":{"line":128,"column":12},"end":{"line":130,"column":null}},"50":{"start":{"line":129,"column":16},"end":{"line":129,"column":25}},"51":{"start":{"line":131,"column":12},"end":{"line":131,"column":null}},"52":{"start":{"line":133,"column":8},"end":{"line":133,"column":23}},"53":{"start":{"line":137,"column":25},"end":{"line":137,"column":50}},"54":{"start":{"line":138,"column":8},"end":{"line":138,"column":50}},"55":{"start":{"line":142,"column":8},"end":{"line":147,"column":null}},"56":{"start":{"line":144,"column":16},"end":{"line":144,"column":46}},"57":{"start":{"line":146,"column":16},"end":{"line":146,"column":54}},"58":{"start":{"line":151,"column":26},"end":{"line":151,"column":50}},"59":{"start":{"line":152,"column":8},"end":{"line":152,"column":52}},"60":{"start":{"line":152,"column":35},"end":{"line":152,"column":52}},"61":{"start":{"line":153,"column":8},"end":{"line":153,"column":null}},"62":{"start":{"line":161,"column":8},"end":{"line":165,"column":null}},"63":{"start":{"line":162,"column":12},"end":{"line":164,"column":null}},"64":{"start":{"line":163,"column":16},"end":{"line":163,"column":28}},"65":{"start":{"line":166,"column":8},"end":{"line":166,"column":21}},"66":{"start":{"line":172,"column":8},"end":{"line":172,"column":54}},"67":{"start":{"line":177,"column":8},"end":{"line":179,"column":null}},"68":{"start":{"line":178,"column":12},"end":{"line":178,"column":40}},"69":{"start":{"line":184,"column":8},"end":{"line":184,"column":69}},"70":{"start":{"line":184,"column":41},"end":{"line":184,"column":56}},"71":{"start":{"line":188,"column":8},"end":{"line":188,"column":61}},"72":{"start":{"line":195,"column":8},"end":{"line":195,"column":46}},"73":{"start":{"line":195,"column":38},"end":{"line":195,"column":44}},"74":{"start":{"line":16,"column":0},"end":{"line":16,"column":13}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":28,"column":4},"end":{"line":28,"column":16}},"loc":{"start":{"line":28,"column":50},"end":{"line":43,"column":5}}},"1":{"name":"(anonymous_1)","decl":{"start":{"line":45,"column":4},"end":{"line":45,"column":12}},"loc":{"start":{"line":45,"column":12},"end":{"line":52,"column":5}}},"2":{"name":"(anonymous_2)","decl":{"start":{"line":50,"column":48},"end":{"line":50,"column":49}},"loc":{"start":{"line":50,"column":53},"end":{"line":50,"column":65}}},"3":{"name":"(anonymous_3)","decl":{"start":{"line":54,"column":4},"end":{"line":54,"column":17}},"loc":{"start":{"line":54,"column":17},"end":{"line":56,"column":5}}},"4":{"name":"(anonymous_4)","decl":{"start":{"line":58,"column":4},"end":{"line":58,"column":17}},"loc":{"start":{"line":58,"column":17},"end":{"line":68,"column":5}}},"5":{"name":"(anonymous_5)","decl":{"start":{"line":70,"column":4},"end":{"line":70,"column":15}},"loc":{"start":{"line":70,"column":15},"end":{"line":72,"column":5}}},"6":{"name":"(anonymous_6)","decl":{"start":{"line":77,"column":12},"end":{"line":77,"column":27}},"loc":{"start":{"line":77,"column":27},"end":{"line":83,"column":5}}},"7":{"name":"(anonymous_7)","decl":{"start":{"line":85,"column":12},"end":{"line":85,"column":29}},"loc":{"start":{"line":85,"column":29},"end":{"line":87,"column":5}}},"8":{"name":"(anonymous_8)","decl":{"start":{"line":89,"column":4},"end":{"line":89,"column":19}},"loc":{"start":{"line":89,"column":47},"end":{"line":100,"column":5}}},"9":{"name":"(anonymous_9)","decl":{"start":{"line":96,"column":56},"end":{"line":96,"column":57}},"loc":{"start":{"line":96,"column":61},"end":{"line":96,"column":77}}},"10":{"name":"(anonymous_10)","decl":{"start":{"line":102,"column":4},"end":{"line":102,"column":15}},"loc":{"start":{"line":102,"column":32},"end":{"line":105,"column":5}}},"11":{"name":"(anonymous_11)","decl":{"start":{"line":104,"column":40},"end":{"line":104,"column":41}},"loc":{"start":{"line":104,"column":45},"end":{"line":104,"column":63}}},"12":{"name":"(anonymous_12)","decl":{"start":{"line":107,"column":4},"end":{"line":107,"column":14}},"loc":{"start":{"line":107,"column":30},"end":{"line":110,"column":5}}},"13":{"name":"(anonymous_13)","decl":{"start":{"line":112,"column":4},"end":{"line":112,"column":17}},"loc":{"start":{"line":112,"column":33},"end":{"line":114,"column":5}}},"14":{"name":"(anonymous_14)","decl":{"start":{"line":116,"column":4},"end":{"line":116,"column":21}},"loc":{"start":{"line":116,"column":21},"end":{"line":124,"column":5}}},"15":{"name":"(anonymous_15)","decl":{"start":{"line":126,"column":12},"end":{"line":126,"column":26}},"loc":{"start":{"line":126,"column":42},"end":{"line":134,"column":5}}},"16":{"name":"(anonymous_16)","decl":{"start":{"line":136,"column":12},"end":{"line":136,"column":27}},"loc":{"start":{"line":136,"column":27},"end":{"line":139,"column":5}}},"17":{"name":"(anonymous_17)","decl":{"start":{"line":141,"column":4},"end":{"line":141,"column":19}},"loc":{"start":{"line":141,"column":19},"end":{"line":148,"column":5}}},"18":{"name":"(anonymous_18)","decl":{"start":{"line":150,"column":4},"end":{"line":150,"column":18}},"loc":{"start":{"line":150,"column":46},"end":{"line":154,"column":5}}},"19":{"name":"(anonymous_19)","decl":{"start":{"line":160,"column":4},"end":{"line":160,"column":13}},"loc":{"start":{"line":160,"column":35},"end":{"line":167,"column":5}}},"20":{"name":"(anonymous_20)","decl":{"start":{"line":171,"column":4},"end":{"line":171,"column":17}},"loc":{"start":{"line":171,"column":17},"end":{"line":173,"column":5}}},"21":{"name":"(anonymous_21)","decl":{"start":{"line":175,"column":4},"end":{"line":175,"column":14}},"loc":{"start":{"line":175,"column":36},"end":{"line":180,"column":5}}},"22":{"name":"(anonymous_22)","decl":{"start":{"line":182,"column":4},"end":{"line":182,"column":15}},"loc":{"start":{"line":182,"column":28},"end":{"line":185,"column":5}}},"23":{"name":"(anonymous_23)","decl":{"start":{"line":184,"column":36},"end":{"line":184,"column":37}},"loc":{"start":{"line":184,"column":41},"end":{"line":184,"column":56}}},"24":{"name":"(anonymous_24)","decl":{"start":{"line":187,"column":4},"end":{"line":187,"column":18}},"loc":{"start":{"line":187,"column":18},"end":{"line":189,"column":5}}},"25":{"name":"(anonymous_25)","decl":{"start":{"line":194,"column":4},"end":{"line":194,"column":19}},"loc":{"start":{"line":194,"column":19},"end":{"line":196,"column":5}}},"26":{"name":"(anonymous_26)","decl":{"start":{"line":195,"column":33},"end":{"line":195,"column":34}},"loc":{"start":{"line":195,"column":38},"end":{"line":195,"column":44}}}},"branchMap":{"0":{"loc":{"start":{"line":36,"column":12},"end":{"line":40,"column":null}},"type":"if","locations":[{"start":{"line":36,"column":12},"end":{"line":40,"column":null}}]},"1":{"loc":{"start":{"line":38,"column":16},"end":{"line":39,"column":null}},"type":"if","locations":[{"start":{"line":38,"column":16},"end":{"line":39,"column":null}}]},"2":{"loc":{"start":{"line":59,"column":8},"end":{"line":67,"column":null}},"type":"switch","locations":[{"start":{"line":60,"column":12},"end":{"line":64,"column":null}},{"start":{"line":65,"column":12},"end":{"line":66,"column":null}}]},"3":{"loc":{"start":{"line":61,"column":48},"end":{"line":61,"column":78}},"type":"cond-expr","locations":[{"start":{"line":61,"column":73},"end":{"line":61,"column":75}},{"start":{"line":61,"column":73},"end":{"line":61,"column":78}}]},"4":{"loc":{"start":{"line":61,"column":48},"end":{"line":61,"column":75}},"type":"binary-expr","locations":[{"start":{"line":61,"column":48},"end":{"line":61,"column":75}},{"start":{"line":61,"column":73},"end":{"line":61,"column":75}}]},"5":{"loc":{"start":{"line":62,"column":16},"end":{"line":62,"column":51}},"type":"if","locations":[{"start":{"line":62,"column":16},"end":{"line":62,"column":51}}]},"6":{"loc":{"start":{"line":79,"column":12},"end":{"line":80,"column":45}},"type":"if","locations":[{"start":{"line":79,"column":12},"end":{"line":80,"column":45}}]},"7":{"loc":{"start":{"line":90,"column":8},"end":{"line":90,"column":35}},"type":"if","locations":[{"start":{"line":90,"column":8},"end":{"line":90,"column":35}}]},"8":{"loc":{"start":{"line":91,"column":8},"end":{"line":99,"column":null}},"type":"switch","locations":[{"start":{"line":92,"column":12},"end":{"line":94,"column":null}},{"start":{"line":95,"column":12},"end":{"line":98,"column":null}}]},"9":{"loc":{"start":{"line":94,"column":23},"end":{"line":94,"column":53}},"type":"cond-expr","locations":[{"start":{"line":94,"column":48},"end":{"line":94,"column":50}},{"start":{"line":94,"column":48},"end":{"line":94,"column":53}}]},"10":{"loc":{"start":{"line":94,"column":23},"end":{"line":94,"column":50}},"type":"binary-expr","locations":[{"start":{"line":94,"column":23},"end":{"line":94,"column":50}},{"start":{"line":94,"column":48},"end":{"line":94,"column":50}}]},"11":{"loc":{"start":{"line":97,"column":23},"end":{"line":97,"column":91}},"type":"binary-expr","locations":[{"start":{"line":97,"column":23},"end":{"line":97,"column":80}},{"start":{"line":97,"column":84},"end":{"line":97,"column":91}}]},"12":{"loc":{"start":{"line":119,"column":12},"end":{"line":121,"column":null}},"type":"if","locations":[{"start":{"line":119,"column":12},"end":{"line":121,"column":null}}]},"13":{"loc":{"start":{"line":128,"column":12},"end":{"line":130,"column":null}},"type":"if","locations":[{"start":{"line":128,"column":12},"end":{"line":130,"column":null}}]},"14":{"loc":{"start":{"line":138,"column":35},"end":{"line":138,"column":48}},"type":"cond-expr","locations":[{"start":{"line":138,"column":43},"end":{"line":138,"column":45}},{"start":{"line":138,"column":35},"end":{"line":138,"column":48}}]},"15":{"loc":{"start":{"line":138,"column":35},"end":{"line":138,"column":45}},"type":"binary-expr","locations":[{"start":{"line":138,"column":35},"end":{"line":138,"column":45}},{"start":{"line":138,"column":35},"end":{"line":138,"column":45}}]},"16":{"loc":{"start":{"line":142,"column":8},"end":{"line":147,"column":null}},"type":"switch","locations":[{"start":{"line":143,"column":12},"end":{"line":144,"column":46}},{"start":{"line":145,"column":12},"end":{"line":146,"column":54}}]},"17":{"loc":{"start":{"line":152,"column":8},"end":{"line":152,"column":52}},"type":"if","locations":[{"start":{"line":152,"column":8},"end":{"line":152,"column":52}}]},"18":{"loc":{"start":{"line":162,"column":12},"end":{"line":164,"column":null}},"type":"if","locations":[{"start":{"line":162,"column":12},"end":{"line":164,"column":null}}]},"19":{"loc":{"start":{"line":177,"column":8},"end":{"line":179,"column":null}},"type":"if","locations":[{"start":{"line":177,"column":8},"end":{"line":179,"column":null}}]}},"s":{"0":2,"1":2,"2":2,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0,"15":0,"16":0,"17":0,"18":0,"19":0,"20":0,"21":0,"22":0,"23":0,"24":0,"25":0,"26":0,"27":0,"28":0,"29":0,"30":0,"31":0,"32":0,"33":0,"34":0,"35":0,"36":0,"37":0,"38":0,"39":0,"40":0,"41":0,"42":0,"43":0,"44":0,"45":0,"46":0,"47":0,"48":0,"49":0,"50":0,"51":0,"52":0,"53":0,"54":0,"55":0,"56":0,"57":0,"58":0,"59":0,"60":0,"61":0,"62":0,"63":0,"64":0,"65":0,"66":0,"67":0,"68":0,"69":0,"70":0,"71":0,"72":0,"73":0,"74":2},"f":{"0":0,"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0,"15":0,"16":0,"17":0,"18":0,"19":0,"20":0,"21":0,"22":0,"23":0,"24":0,"25":0,"26":0},"b":{"0":[0],"1":[0],"2":[0,0],"3":[0,0],"4":[0,0],"5":[0],"6":[0],"7":[0],"8":[0,0],"9":[0,0],"10":[0,0],"11":[0,0],"12":[0],"13":[0],"14":[0,0],"15":[0,0],"16":[0,0],"17":[0],"18":[0],"19":[0]}} +,"/Users/oda/Documents/iPm-tool-test-obsidian-vault/.obsidian/plugins/obsidian-i-pm-tool/src/data-model/OdaProjectTree.ts": {"path":"/Users/oda/Documents/iPm-tool-test-obsidian-vault/.obsidian/plugins/obsidian-i-pm-tool/src/data-model/OdaProjectTree.ts","statementMap":{"0":{"start":{"line":4,"column":0},"end":{"line":4,"column":29}},"1":{"start":{"line":15,"column":4},"end":{"line":17,"column":null}},"2":{"start":{"line":16,"column":8},"end":{"line":16,"column":42}},"3":{"start":{"line":18,"column":4},"end":{"line":18,"column":null}},"4":{"start":{"line":12,"column":0},"end":{"line":12,"column":16}},"5":{"start":{"line":23,"column":4},"end":{"line":23,"column":51}},"6":{"start":{"line":26,"column":21},"end":{"line":26,"column":41}},"7":{"start":{"line":27,"column":8},"end":{"line":31,"column":null}},"8":{"start":{"line":28,"column":12},"end":{"line":30,"column":null}},"9":{"start":{"line":29,"column":16},"end":{"line":29,"column":null}},"10":{"start":{"line":32,"column":8},"end":{"line":32,"column":20}},"11":{"start":{"line":36,"column":8},"end":{"line":36,"column":79}},"12":{"start":{"line":40,"column":8},"end":{"line":40,"column":83}},"13":{"start":{"line":21,"column":0},"end":{"line":21,"column":13}}},"fnMap":{"0":{"name":"getProjectByTaskPath","decl":{"start":{"line":12,"column":16},"end":{"line":12,"column":36}},"loc":{"start":{"line":12,"column":88},"end":{"line":19,"column":1}}},"1":{"name":"(anonymous_1)","decl":{"start":{"line":21,"column":0},"end":{"line":21,"column":13}},"loc":{"start":{"line":21,"column":0},"end":{"line":42,"column":1}}},"2":{"name":"(anonymous_2)","decl":{"start":{"line":25,"column":4},"end":{"line":25,"column":10}},"loc":{"start":{"line":25,"column":58},"end":{"line":33,"column":5}}},"3":{"name":"(anonymous_3)","decl":{"start":{"line":35,"column":4},"end":{"line":35,"column":22}},"loc":{"start":{"line":35,"column":40},"end":{"line":37,"column":5}}},"4":{"name":"(anonymous_4)","decl":{"start":{"line":39,"column":4},"end":{"line":39,"column":26}},"loc":{"start":{"line":39,"column":54},"end":{"line":41,"column":5}}}},"branchMap":{},"s":{"0":1,"1":10,"2":6,"3":10,"4":1,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":1},"f":{"0":10,"1":0,"2":0,"3":0,"4":0},"b":{}} +,"/Users/oda/Documents/iPm-tool-test-obsidian-vault/.obsidian/plugins/obsidian-i-pm-tool/src/data-model/workflow-def.ts": {"path":"/Users/oda/Documents/iPm-tool-test-obsidian-vault/.obsidian/plugins/obsidian-i-pm-tool/src/data-model/workflow-def.ts","statementMap":{"0":{"start":{"line":2,"column":0},"end":{"line":2,"column":38}},"1":{"start":{"line":3,"column":0},"end":{"line":3,"column":64}},"2":{"start":{"line":5,"column":13},"end":{"line":5,"column":44}},"3":{"start":{"line":6,"column":13},"end":{"line":6,"column":57}},"4":{"start":{"line":7,"column":13},"end":{"line":7,"column":42}},"5":{"start":{"line":8,"column":13},"end":{"line":8,"column":38}},"6":{"start":{"line":9,"column":13},"end":{"line":9,"column":40}},"7":{"start":{"line":10,"column":13},"end":{"line":10,"column":52}},"8":{"start":{"line":12,"column":13},"end":{"line":15,"column":11}},"9":{"start":{"line":18,"column":39},"end":{"line":18,"column":41}},"10":{"start":{"line":22,"column":4},"end":{"line":26,"column":null}},"11":{"start":{"line":23,"column":8},"end":{"line":25,"column":null}},"12":{"start":{"line":24,"column":12},"end":{"line":24,"column":null}},"13":{"start":{"line":30,"column":4},"end":{"line":30,"column":27}},"14":{"start":{"line":31,"column":4},"end":{"line":31,"column":32}},"15":{"start":{"line":29,"column":0},"end":{"line":29,"column":16}},"16":{"start":{"line":35,"column":4},"end":{"line":35,"column":27}},"17":{"start":{"line":36,"column":4},"end":{"line":36,"column":72}},"18":{"start":{"line":34,"column":0},"end":{"line":34,"column":16}},"19":{"start":{"line":41,"column":20},"end":{"line":41,"column":42}},"20":{"start":{"line":42,"column":4},"end":{"line":42,"column":41}},"21":{"start":{"line":39,"column":0},"end":{"line":39,"column":16}},"22":{"start":{"line":46,"column":17},"end":{"line":46,"column":54}},"23":{"start":{"line":47,"column":4},"end":{"line":47,"column":16}},"24":{"start":{"line":45,"column":0},"end":{"line":45,"column":16}},"25":{"start":{"line":52,"column":23},"end":{"line":52,"column":32}},"26":{"start":{"line":54,"column":17},"end":{"line":54,"column":37}},"27":{"start":{"line":55,"column":4},"end":{"line":55,"column":34}},"28":{"start":{"line":55,"column":15},"end":{"line":55,"column":34}},"29":{"start":{"line":56,"column":4},"end":{"line":58,"column":null}},"30":{"start":{"line":57,"column":8},"end":{"line":57,"column":null}},"31":{"start":{"line":59,"column":4},"end":{"line":59,"column":null}},"32":{"start":{"line":50,"column":0},"end":{"line":50,"column":16}},"33":{"start":{"line":65,"column":30},"end":{"line":65,"column":62}},"34":{"start":{"line":67,"column":34},"end":{"line":67,"column":70}},"35":{"start":{"line":74,"column":18},"end":{"line":74,"column":51}},"36":{"start":{"line":75,"column":4},"end":{"line":75,"column":35}},"37":{"start":{"line":73,"column":0},"end":{"line":73,"column":16}},"38":{"start":{"line":116,"column":4},"end":{"line":116,"column":null}},"39":{"start":{"line":115,"column":0},"end":{"line":115,"column":16}},"40":{"start":{"line":128,"column":27},"end":{"line":128,"column":64}},"41":{"start":{"line":130,"column":4},"end":{"line":130,"column":74}},"42":{"start":{"line":126,"column":0},"end":{"line":126,"column":16}},"43":{"start":{"line":135,"column":4},"end":{"line":135,"column":37}},"44":{"start":{"line":134,"column":0},"end":{"line":134,"column":16}},"45":{"start":{"line":143,"column":4},"end":{"line":143,"column":33}},"46":{"start":{"line":143,"column":20},"end":{"line":143,"column":33}},"47":{"start":{"line":144,"column":4},"end":{"line":144,"column":47}},"48":{"start":{"line":144,"column":35},"end":{"line":144,"column":47}},"49":{"start":{"line":145,"column":28},"end":{"line":145,"column":51}},"50":{"start":{"line":147,"column":28},"end":{"line":147,"column":67}},"51":{"start":{"line":149,"column":4},"end":{"line":149,"column":27}},"52":{"start":{"line":142,"column":0},"end":{"line":142,"column":16}},"53":{"start":{"line":155,"column":4},"end":{"line":159,"column":null}},"54":{"start":{"line":156,"column":8},"end":{"line":158,"column":null}},"55":{"start":{"line":157,"column":12},"end":{"line":157,"column":23}},"56":{"start":{"line":160,"column":4},"end":{"line":160,"column":16}},"57":{"start":{"line":153,"column":0},"end":{"line":153,"column":16}},"58":{"start":{"line":164,"column":17},"end":{"line":164,"column":52}},"59":{"start":{"line":165,"column":4},"end":{"line":165,"column":16}},"60":{"start":{"line":163,"column":0},"end":{"line":163,"column":16}},"61":{"start":{"line":172,"column":19},"end":{"line":172,"column":47}},"62":{"start":{"line":173,"column":4},"end":{"line":177,"column":56}},"63":{"start":{"line":175,"column":8},"end":{"line":175,"column":89}},"64":{"start":{"line":177,"column":8},"end":{"line":177,"column":56}},"65":{"start":{"line":171,"column":0},"end":{"line":171,"column":16}}},"fnMap":{"0":{"name":"initWorkflowTypeTags","decl":{"start":{"line":21,"column":9},"end":{"line":21,"column":29}},"loc":{"start":{"line":21,"column":29},"end":{"line":27,"column":1}}},"1":{"name":"getWorkflowTypeTags","decl":{"start":{"line":29,"column":16},"end":{"line":29,"column":35}},"loc":{"start":{"line":29,"column":35},"end":{"line":32,"column":1}}},"2":{"name":"getWorkflowTypeTag","decl":{"start":{"line":34,"column":16},"end":{"line":34,"column":34}},"loc":{"start":{"line":34,"column":53},"end":{"line":37,"column":1}}},"3":{"name":"isTaskSummaryValid","decl":{"start":{"line":39,"column":16},"end":{"line":39,"column":34}},"loc":{"start":{"line":39,"column":46},"end":{"line":43,"column":1}}},"4":{"name":"matchTags","decl":{"start":{"line":45,"column":16},"end":{"line":45,"column":25}},"loc":{"start":{"line":45,"column":38},"end":{"line":48,"column":1}}},"5":{"name":"trimTagsFromTask","decl":{"start":{"line":50,"column":16},"end":{"line":50,"column":32}},"loc":{"start":{"line":50,"column":44},"end":{"line":60,"column":1}}},"6":{"name":"getWorkflowNameFromRawText","decl":{"start":{"line":73,"column":16},"end":{"line":73,"column":42}},"loc":{"start":{"line":73,"column":55},"end":{"line":76,"column":1}}},"7":{"name":"factoryTask","decl":{"start":{"line":115,"column":16},"end":{"line":115,"column":27}},"loc":{"start":{"line":115,"column":62},"end":{"line":117,"column":1}}},"8":{"name":"addTagText","decl":{"start":{"line":126,"column":16},"end":{"line":126,"column":26}},"loc":{"start":{"line":126,"column":56},"end":{"line":131,"column":1}}},"9":{"name":"removeTagText","decl":{"start":{"line":134,"column":16},"end":{"line":134,"column":29}},"loc":{"start":{"line":134,"column":59},"end":{"line":136,"column":1}}},"10":{"name":"isTaskSingleLine","decl":{"start":{"line":142,"column":16},"end":{"line":142,"column":32}},"loc":{"start":{"line":142,"column":44},"end":{"line":150,"column":1}}},"11":{"name":"getProjectTagFromSTask","decl":{"start":{"line":153,"column":16},"end":{"line":153,"column":38}},"loc":{"start":{"line":153,"column":50},"end":{"line":161,"column":1}}},"12":{"name":"getProjectNameFromTag","decl":{"start":{"line":163,"column":16},"end":{"line":163,"column":37}},"loc":{"start":{"line":163,"column":49},"end":{"line":166,"column":1}}},"13":{"name":"getProjectPathFromSTask","decl":{"start":{"line":171,"column":16},"end":{"line":171,"column":39}},"loc":{"start":{"line":171,"column":73},"end":{"line":178,"column":1}}}},"branchMap":{"0":{"loc":{"start":{"line":22,"column":4},"end":{"line":26,"column":null}},"type":"if","locations":[{"start":{"line":22,"column":4},"end":{"line":26,"column":null}}]},"1":{"loc":{"start":{"line":42,"column":11},"end":{"line":42,"column":40}},"type":"binary-expr","locations":[{"start":{"line":42,"column":11},"end":{"line":42,"column":18}},{"start":{"line":42,"column":22},"end":{"line":42,"column":40}}]},"2":{"loc":{"start":{"line":55,"column":4},"end":{"line":55,"column":34}},"type":"if","locations":[{"start":{"line":55,"column":4},"end":{"line":55,"column":34}}]},"3":{"loc":{"start":{"line":75,"column":11},"end":{"line":75,"column":34}},"type":"cond-expr","locations":[{"start":{"line":75,"column":19},"end":{"line":75,"column":27}},{"start":{"line":75,"column":30},"end":{"line":75,"column":34}}]},"4":{"loc":{"start":{"line":130,"column":46},"end":{"line":130,"column":72}},"type":"cond-expr","locations":[{"start":{"line":130,"column":63},"end":{"line":130,"column":67}},{"start":{"line":130,"column":70},"end":{"line":130,"column":72}}]},"5":{"loc":{"start":{"line":143,"column":4},"end":{"line":143,"column":33}},"type":"if","locations":[{"start":{"line":143,"column":4},"end":{"line":143,"column":33}}]},"6":{"loc":{"start":{"line":144,"column":4},"end":{"line":144,"column":47}},"type":"if","locations":[{"start":{"line":144,"column":4},"end":{"line":144,"column":47}}]},"7":{"loc":{"start":{"line":156,"column":8},"end":{"line":158,"column":null}},"type":"if","locations":[{"start":{"line":156,"column":8},"end":{"line":158,"column":null}}]},"8":{"loc":{"start":{"line":171,"column":53},"end":{"line":171,"column":73}},"type":"default-arg","locations":[{"start":{"line":171,"column":68},"end":{"line":171,"column":73}}]},"9":{"loc":{"start":{"line":173,"column":4},"end":{"line":177,"column":56}},"type":"if","locations":[{"start":{"line":173,"column":4},"end":{"line":177,"column":56}},{"start":{"line":177,"column":8},"end":{"line":177,"column":56}}]},"10":{"loc":{"start":{"line":175,"column":18},"end":{"line":175,"column":41}},"type":"cond-expr","locations":[{"start":{"line":175,"column":33},"end":{"line":175,"column":36}},{"start":{"line":175,"column":39},"end":{"line":175,"column":41}}]},"11":{"loc":{"start":{"line":177,"column":18},"end":{"line":177,"column":41}},"type":"cond-expr","locations":[{"start":{"line":177,"column":33},"end":{"line":177,"column":36}},{"start":{"line":177,"column":39},"end":{"line":177,"column":41}}]}},"s":{"0":2,"1":2,"2":2,"3":2,"4":2,"5":2,"6":2,"7":2,"8":2,"9":2,"10":0,"11":0,"12":0,"13":0,"14":0,"15":2,"16":0,"17":0,"18":2,"19":0,"20":0,"21":2,"22":4,"23":4,"24":2,"25":0,"26":0,"27":0,"28":0,"29":0,"30":0,"31":0,"32":2,"33":2,"34":2,"35":0,"36":0,"37":2,"38":0,"39":2,"40":1,"41":1,"42":2,"43":0,"44":2,"45":0,"46":0,"47":0,"48":0,"49":0,"50":0,"51":0,"52":2,"53":0,"54":0,"55":0,"56":0,"57":2,"58":0,"59":0,"60":2,"61":0,"62":0,"63":0,"64":0,"65":2},"f":{"0":0,"1":0,"2":0,"3":0,"4":4,"5":0,"6":0,"7":0,"8":1,"9":0,"10":0,"11":0,"12":0,"13":0},"b":{"0":[0],"1":[0,0],"2":[0],"3":[0,0],"4":[0,1],"5":[0],"6":[0],"7":[0],"8":[0],"9":[0,0],"10":[0,0],"11":[0,0]}} +,"/Users/oda/Documents/iPm-tool-test-obsidian-vault/.obsidian/plugins/obsidian-i-pm-tool/src/utils/env-util.ts": {"path":"/Users/oda/Documents/iPm-tool-test-obsidian-vault/.obsidian/plugins/obsidian-i-pm-tool/src/utils/env-util.ts","statementMap":{"0":{"start":{"line":1,"column":0},"end":{"line":1,"column":30}},"1":{"start":{"line":3,"column":0},"end":{"line":3,"column":28}},"2":{"start":{"line":5,"column":0},"end":{"line":5,"column":102}},"3":{"start":{"line":9,"column":4},"end":{"line":9,"column":49}},"4":{"start":{"line":8,"column":0},"end":{"line":8,"column":16}},"5":{"start":{"line":13,"column":4},"end":{"line":13,"column":31}},"6":{"start":{"line":13,"column":24},"end":{"line":13,"column":31}},"7":{"start":{"line":14,"column":4},"end":{"line":14,"column":25}},"8":{"start":{"line":12,"column":0},"end":{"line":12,"column":16}},"9":{"start":{"line":18,"column":4},"end":{"line":18,"column":31}},"10":{"start":{"line":18,"column":24},"end":{"line":18,"column":31}},"11":{"start":{"line":19,"column":4},"end":{"line":19,"column":null}},"12":{"start":{"line":17,"column":0},"end":{"line":17,"column":16}},"13":{"start":{"line":24,"column":4},"end":{"line":24,"column":31}},"14":{"start":{"line":24,"column":24},"end":{"line":24,"column":31}},"15":{"start":{"line":25,"column":4},"end":{"line":25,"column":51}},"16":{"start":{"line":26,"column":4},"end":{"line":26,"column":null}},"17":{"start":{"line":23,"column":0},"end":{"line":23,"column":16}},"18":{"start":{"line":30,"column":4},"end":{"line":30,"column":36}},"19":{"start":{"line":31,"column":4},"end":{"line":35,"column":null}},"20":{"start":{"line":32,"column":8},"end":{"line":32,"column":47}},"21":{"start":{"line":33,"column":8},"end":{"line":34,"column":63}},"22":{"start":{"line":34,"column":12},"end":{"line":34,"column":63}},"23":{"start":{"line":39,"column":17},"end":{"line":39,"column":53}},"24":{"start":{"line":40,"column":4},"end":{"line":40,"column":32}},"25":{"start":{"line":41,"column":4},"end":{"line":43,"column":null}},"26":{"start":{"line":42,"column":8},"end":{"line":42,"column":19}},"27":{"start":{"line":47,"column":24},"end":{"line":48,"column":null}},"28":{"start":{"line":48,"column":8},"end":{"line":48,"column":98}},"29":{"start":{"line":50,"column":20},"end":{"line":50,"column":21}},"30":{"start":{"line":51,"column":4},"end":{"line":52,"column":35}},"31":{"start":{"line":54,"column":29},"end":{"line":55,"column":null}},"32":{"start":{"line":55,"column":8},"end":{"line":55,"column":74}},"33":{"start":{"line":57,"column":4},"end":{"line":57,"column":111}},"34":{"start":{"line":59,"column":32},"end":{"line":61,"column":6}},"35":{"start":{"line":60,"column":8},"end":{"line":60,"column":null}},"36":{"start":{"line":60,"column":37},"end":{"line":60,"column":71}},"37":{"start":{"line":62,"column":4},"end":{"line":62,"column":99}},"38":{"start":{"line":63,"column":4},"end":{"line":63,"column":90}},"39":{"start":{"line":65,"column":35},"end":{"line":67,"column":6}},"40":{"start":{"line":66,"column":8},"end":{"line":66,"column":null}},"41":{"start":{"line":66,"column":39},"end":{"line":66,"column":70}},"42":{"start":{"line":68,"column":4},"end":{"line":68,"column":104}},"43":{"start":{"line":69,"column":4},"end":{"line":69,"column":93}},"44":{"start":{"line":71,"column":29},"end":{"line":73,"column":6}},"45":{"start":{"line":72,"column":8},"end":{"line":72,"column":null}},"46":{"start":{"line":74,"column":4},"end":{"line":74,"column":96}},"47":{"start":{"line":75,"column":28},"end":{"line":75,"column":52}},"48":{"start":{"line":76,"column":4},"end":{"line":78,"column":null}},"49":{"start":{"line":77,"column":8},"end":{"line":77,"column":90}},"50":{"start":{"line":80,"column":33},"end":{"line":82,"column":6}},"51":{"start":{"line":81,"column":8},"end":{"line":81,"column":null}},"52":{"start":{"line":83,"column":4},"end":{"line":83,"column":102}},"53":{"start":{"line":84,"column":26},"end":{"line":84,"column":54}},"54":{"start":{"line":85,"column":4},"end":{"line":87,"column":null}},"55":{"start":{"line":86,"column":8},"end":{"line":86,"column":88}},"56":{"start":{"line":90,"column":29},"end":{"line":92,"column":6}},"57":{"start":{"line":91,"column":8},"end":{"line":91,"column":null}},"58":{"start":{"line":93,"column":4},"end":{"line":93,"column":96}},"59":{"start":{"line":94,"column":28},"end":{"line":94,"column":52}},"60":{"start":{"line":95,"column":4},"end":{"line":97,"column":null}},"61":{"start":{"line":96,"column":8},"end":{"line":96,"column":88}},"62":{"start":{"line":99,"column":33},"end":{"line":101,"column":6}},"63":{"start":{"line":100,"column":8},"end":{"line":100,"column":null}},"64":{"start":{"line":102,"column":4},"end":{"line":102,"column":102}},"65":{"start":{"line":103,"column":26},"end":{"line":103,"column":54}},"66":{"start":{"line":104,"column":4},"end":{"line":106,"column":null}},"67":{"start":{"line":105,"column":8},"end":{"line":105,"column":86}},"68":{"start":{"line":109,"column":29},"end":{"line":111,"column":6}},"69":{"start":{"line":110,"column":8},"end":{"line":110,"column":null}},"70":{"start":{"line":112,"column":4},"end":{"line":112,"column":96}},"71":{"start":{"line":113,"column":28},"end":{"line":113,"column":52}},"72":{"start":{"line":114,"column":4},"end":{"line":116,"column":null}},"73":{"start":{"line":115,"column":8},"end":{"line":115,"column":88}},"74":{"start":{"line":118,"column":33},"end":{"line":120,"column":6}},"75":{"start":{"line":119,"column":8},"end":{"line":119,"column":null}},"76":{"start":{"line":121,"column":4},"end":{"line":121,"column":102}},"77":{"start":{"line":122,"column":26},"end":{"line":122,"column":54}},"78":{"start":{"line":123,"column":4},"end":{"line":125,"column":null}},"79":{"start":{"line":124,"column":8},"end":{"line":124,"column":86}},"80":{"start":{"line":131,"column":8},"end":{"line":133,"column":null}},"81":{"start":{"line":132,"column":12},"end":{"line":132,"column":199}},"82":{"start":{"line":136,"column":4},"end":{"line":136,"column":77}},"83":{"start":{"line":137,"column":4},"end":{"line":137,"column":60}},"84":{"start":{"line":138,"column":4},"end":{"line":138,"column":null}},"85":{"start":{"line":139,"column":4},"end":{"line":139,"column":null}},"86":{"start":{"line":140,"column":4},"end":{"line":140,"column":null}},"87":{"start":{"line":141,"column":4},"end":{"line":141,"column":null}},"88":{"start":{"line":142,"column":4},"end":{"line":142,"column":null}},"89":{"start":{"line":143,"column":4},"end":{"line":143,"column":null}},"90":{"start":{"line":148,"column":8},"end":{"line":151,"column":null}},"91":{"start":{"line":149,"column":12},"end":{"line":150,"column":29}},"92":{"start":{"line":154,"column":4},"end":{"line":154,"column":79}},"93":{"start":{"line":155,"column":4},"end":{"line":155,"column":85}},"94":{"start":{"line":156,"column":4},"end":{"line":156,"column":null}},"95":{"start":{"line":157,"column":4},"end":{"line":157,"column":null}},"96":{"start":{"line":158,"column":4},"end":{"line":158,"column":null}},"97":{"start":{"line":159,"column":4},"end":{"line":159,"column":null}},"98":{"start":{"line":160,"column":4},"end":{"line":160,"column":null}},"99":{"start":{"line":161,"column":4},"end":{"line":161,"column":null}},"100":{"start":{"line":167,"column":27},"end":{"line":169,"column":6}},"101":{"start":{"line":168,"column":8},"end":{"line":168,"column":null}},"102":{"start":{"line":170,"column":4},"end":{"line":170,"column":92}},"103":{"start":{"line":171,"column":4},"end":{"line":171,"column":33}},"104":{"start":{"line":172,"column":4},"end":{"line":172,"column":30}},"105":{"start":{"line":177,"column":4},"end":{"line":177,"column":null}},"106":{"start":{"line":178,"column":21},"end":{"line":178,"column":36}},"107":{"start":{"line":180,"column":23},"end":{"line":180,"column":64}},"108":{"start":{"line":180,"column":41},"end":{"line":180,"column":54}},"109":{"start":{"line":181,"column":4},"end":{"line":181,"column":88}},"110":{"start":{"line":182,"column":4},"end":{"line":182,"column":24}},"111":{"start":{"line":183,"column":4},"end":{"line":183,"column":42}},"112":{"start":{"line":185,"column":4},"end":{"line":185,"column":null}},"113":{"start":{"line":176,"column":0},"end":{"line":176,"column":22}}},"fnMap":{"0":{"name":"isProduction","decl":{"start":{"line":8,"column":16},"end":{"line":8,"column":28}},"loc":{"start":{"line":8,"column":28},"end":{"line":10,"column":1}}},"1":{"name":"devLog","decl":{"start":{"line":12,"column":16},"end":{"line":12,"column":22}},"loc":{"start":{"line":12,"column":37},"end":{"line":15,"column":1}}},"2":{"name":"devAssert","decl":{"start":{"line":17,"column":16},"end":{"line":17,"column":25}},"loc":{"start":{"line":17,"column":40},"end":{"line":20,"column":1}}},"3":{"name":"assertOnPluginInit","decl":{"start":{"line":23,"column":16},"end":{"line":23,"column":34}},"loc":{"start":{"line":23,"column":58},"end":{"line":27,"column":1}}},"4":{"name":"expect_project","decl":{"start":{"line":29,"column":9},"end":{"line":29,"column":23}},"loc":{"start":{"line":29,"column":108},"end":{"line":36,"column":1}}},"5":{"name":"expectTaskAbstract","decl":{"start":{"line":38,"column":9},"end":{"line":38,"column":27}},"loc":{"start":{"line":38,"column":95},"end":{"line":44,"column":1}}},"6":{"name":"testProjectDefinition","decl":{"start":{"line":46,"column":15},"end":{"line":46,"column":36}},"loc":{"start":{"line":46,"column":76},"end":{"line":126,"column":null}}},"7":{"name":"(anonymous_8)","decl":{"start":{"line":47,"column":40},"end":{"line":47,"column":41}},"loc":{"start":{"line":48,"column":8},"end":{"line":48,"column":98}}},"8":{"name":"(anonymous_9)","decl":{"start":{"line":54,"column":45},"end":{"line":54,"column":46}},"loc":{"start":{"line":55,"column":8},"end":{"line":55,"column":74}}},"9":{"name":"(anonymous_10)","decl":{"start":{"line":59,"column":48},"end":{"line":59,"column":49}},"loc":{"start":{"line":59,"column":52},"end":{"line":61,"column":5}}},"10":{"name":"(anonymous_11)","decl":{"start":{"line":60,"column":32},"end":{"line":60,"column":33}},"loc":{"start":{"line":60,"column":37},"end":{"line":60,"column":71}}},"11":{"name":"(anonymous_12)","decl":{"start":{"line":65,"column":51},"end":{"line":65,"column":52}},"loc":{"start":{"line":65,"column":55},"end":{"line":67,"column":5}}},"12":{"name":"(anonymous_13)","decl":{"start":{"line":66,"column":34},"end":{"line":66,"column":35}},"loc":{"start":{"line":66,"column":39},"end":{"line":66,"column":70}}},"13":{"name":"(anonymous_14)","decl":{"start":{"line":71,"column":49},"end":{"line":71,"column":50}},"loc":{"start":{"line":71,"column":53},"end":{"line":73,"column":5}}},"14":{"name":"(anonymous_15)","decl":{"start":{"line":80,"column":55},"end":{"line":80,"column":56}},"loc":{"start":{"line":80,"column":59},"end":{"line":82,"column":5}}},"15":{"name":"(anonymous_16)","decl":{"start":{"line":90,"column":49},"end":{"line":90,"column":50}},"loc":{"start":{"line":90,"column":53},"end":{"line":92,"column":5}}},"16":{"name":"(anonymous_17)","decl":{"start":{"line":99,"column":55},"end":{"line":99,"column":56}},"loc":{"start":{"line":99,"column":59},"end":{"line":101,"column":5}}},"17":{"name":"(anonymous_18)","decl":{"start":{"line":109,"column":49},"end":{"line":109,"column":50}},"loc":{"start":{"line":109,"column":53},"end":{"line":111,"column":5}}},"18":{"name":"(anonymous_19)","decl":{"start":{"line":118,"column":55},"end":{"line":118,"column":56}},"loc":{"start":{"line":118,"column":59},"end":{"line":120,"column":5}}},"19":{"name":"testTaskProjectLink","decl":{"start":{"line":128,"column":15},"end":{"line":128,"column":34}},"loc":{"start":{"line":128,"column":48},"end":{"line":144,"column":null}}},"20":{"name":"expectTaskInProject","decl":{"start":{"line":130,"column":13},"end":{"line":130,"column":32}},"loc":{"start":{"line":130,"column":70},"end":{"line":134,"column":5}}},"21":{"name":"(anonymous_23)","decl":{"start":{"line":131,"column":43},"end":{"line":131,"column":44}},"loc":{"start":{"line":131,"column":52},"end":{"line":133,"column":9}}},"22":{"name":"testGetTaskProjectPath","decl":{"start":{"line":146,"column":15},"end":{"line":146,"column":37}},"loc":{"start":{"line":146,"column":51},"end":{"line":162,"column":null}}},"23":{"name":"expectTaskPath","decl":{"start":{"line":147,"column":13},"end":{"line":147,"column":27}},"loc":{"start":{"line":147,"column":58},"end":{"line":152,"column":5}}},"24":{"name":"(anonymous_27)","decl":{"start":{"line":148,"column":43},"end":{"line":148,"column":44}},"loc":{"start":{"line":148,"column":52},"end":{"line":151,"column":9}}},"25":{"name":"test_UT_020_3","decl":{"start":{"line":164,"column":15},"end":{"line":164,"column":28}},"loc":{"start":{"line":164,"column":42},"end":{"line":173,"column":null}}},"26":{"name":"(anonymous_30)","decl":{"start":{"line":167,"column":47},"end":{"line":167,"column":48}},"loc":{"start":{"line":167,"column":51},"end":{"line":169,"column":5}}},"27":{"name":"assertOnDbRefreshed","decl":{"start":{"line":176,"column":22},"end":{"line":176,"column":41}},"loc":{"start":{"line":176,"column":55},"end":{"line":186,"column":null}}},"28":{"name":"(anonymous_33)","decl":{"start":{"line":180,"column":36},"end":{"line":180,"column":37}},"loc":{"start":{"line":180,"column":41},"end":{"line":180,"column":54}}}},"branchMap":{"0":{"loc":{"start":{"line":13,"column":4},"end":{"line":13,"column":31}},"type":"if","locations":[{"start":{"line":13,"column":4},"end":{"line":13,"column":31}}]},"1":{"loc":{"start":{"line":18,"column":4},"end":{"line":18,"column":31}},"type":"if","locations":[{"start":{"line":18,"column":4},"end":{"line":18,"column":31}}]},"2":{"loc":{"start":{"line":24,"column":4},"end":{"line":24,"column":31}},"type":"if","locations":[{"start":{"line":24,"column":4},"end":{"line":24,"column":31}}]},"3":{"loc":{"start":{"line":31,"column":4},"end":{"line":35,"column":null}},"type":"if","locations":[{"start":{"line":31,"column":4},"end":{"line":35,"column":null}}]},"4":{"loc":{"start":{"line":33,"column":8},"end":{"line":34,"column":63}},"type":"if","locations":[{"start":{"line":33,"column":8},"end":{"line":34,"column":63}}]},"5":{"loc":{"start":{"line":41,"column":4},"end":{"line":43,"column":null}},"type":"if","locations":[{"start":{"line":41,"column":4},"end":{"line":43,"column":null}}]},"6":{"loc":{"start":{"line":48,"column":8},"end":{"line":48,"column":98}},"type":"binary-expr","locations":[{"start":{"line":48,"column":8},"end":{"line":48,"column":38}},{"start":{"line":48,"column":43},"end":{"line":48,"column":67}},{"start":{"line":48,"column":71},"end":{"line":48,"column":97}}]},"7":{"loc":{"start":{"line":55,"column":8},"end":{"line":55,"column":74}},"type":"binary-expr","locations":[{"start":{"line":55,"column":8},"end":{"line":55,"column":38}},{"start":{"line":55,"column":42},"end":{"line":55,"column":74}}]},"8":{"loc":{"start":{"line":76,"column":4},"end":{"line":78,"column":null}},"type":"if","locations":[{"start":{"line":76,"column":4},"end":{"line":78,"column":null}}]},"9":{"loc":{"start":{"line":85,"column":4},"end":{"line":87,"column":null}},"type":"if","locations":[{"start":{"line":85,"column":4},"end":{"line":87,"column":null}}]},"10":{"loc":{"start":{"line":95,"column":4},"end":{"line":97,"column":null}},"type":"if","locations":[{"start":{"line":95,"column":4},"end":{"line":97,"column":null}}]},"11":{"loc":{"start":{"line":104,"column":4},"end":{"line":106,"column":null}},"type":"if","locations":[{"start":{"line":104,"column":4},"end":{"line":106,"column":null}}]},"12":{"loc":{"start":{"line":114,"column":4},"end":{"line":116,"column":null}},"type":"if","locations":[{"start":{"line":114,"column":4},"end":{"line":116,"column":null}}]},"13":{"loc":{"start":{"line":123,"column":4},"end":{"line":125,"column":null}},"type":"if","locations":[{"start":{"line":123,"column":4},"end":{"line":125,"column":null}}]}},"s":{"0":2,"1":2,"2":2,"3":0,"4":2,"5":0,"6":0,"7":0,"8":2,"9":0,"10":0,"11":0,"12":2,"13":0,"14":0,"15":0,"16":0,"17":2,"18":0,"19":0,"20":0,"21":0,"22":0,"23":0,"24":0,"25":0,"26":0,"27":0,"28":0,"29":0,"30":0,"31":0,"32":0,"33":0,"34":0,"35":0,"36":0,"37":0,"38":0,"39":0,"40":0,"41":0,"42":0,"43":0,"44":0,"45":0,"46":0,"47":0,"48":0,"49":0,"50":0,"51":0,"52":0,"53":0,"54":0,"55":0,"56":0,"57":0,"58":0,"59":0,"60":0,"61":0,"62":0,"63":0,"64":0,"65":0,"66":0,"67":0,"68":0,"69":0,"70":0,"71":0,"72":0,"73":0,"74":0,"75":0,"76":0,"77":0,"78":0,"79":0,"80":0,"81":0,"82":0,"83":0,"84":0,"85":0,"86":0,"87":0,"88":0,"89":0,"90":0,"91":0,"92":0,"93":0,"94":0,"95":0,"96":0,"97":0,"98":0,"99":0,"100":0,"101":0,"102":0,"103":0,"104":0,"105":0,"106":0,"107":0,"108":0,"109":0,"110":0,"111":0,"112":0,"113":2},"f":{"0":0,"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0,"15":0,"16":0,"17":0,"18":0,"19":0,"20":0,"21":0,"22":0,"23":0,"24":0,"25":0,"26":0,"27":0,"28":0},"b":{"0":[0],"1":[0],"2":[0],"3":[0],"4":[0],"5":[0],"6":[0,0,0],"7":[0,0],"8":[0],"9":[0],"10":[0],"11":[0],"12":[0],"13":[0]}} +} diff --git a/coverage/lcov-report/OdaProjectTree.ts.html b/coverage/lcov-report/OdaProjectTree.ts.html new file mode 100644 index 0000000..65dd82e --- /dev/null +++ b/coverage/lcov-report/OdaProjectTree.ts.html @@ -0,0 +1,211 @@ + + + + + + Code coverage report for OdaProjectTree.ts + + + + + + + + + +
+
+

All files OdaProjectTree.ts

+
+ +
+ 35.71% + Statements + 5/14 +
+ + +
+ 100% + Branches + 0/0 +
+ + +
+ 20% + Functions + 1/5 +
+ + +
+ 35.71% + Lines + 5/14 +
+ + +
+

+ Press n or j to go to the next uncovered block, b, p or k for the previous block. +

+ +
+
+

+
1 +2 +3 +4 +5 +6 +7 +8 +9 +10 +11 +12 +13 +14 +15 +16 +17 +18 +19 +20 +21 +22 +23 +24 +25 +26 +27 +28 +29 +30 +31 +32 +33 +34 +35 +36 +37 +38 +39 +40 +41 +42 +43  +  +  +1x +  +  +  +  +  +  +  +1x +  +  +1x +  +  +1x +  +  +1x +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  + 
import {OdaPmTask} from "./OdaPmTask";
+import {OdaPmProject} from "./OdaPmProject";
+import {I_OdaPmWorkflow} from "./workflow-def";
+import * as path from "path";
+ 
+ 
+/**
+ * The root is /.
+ * @param projectDict Path to OdaPmProject
+ * @param taskPath
+ */
+export function getProjectByTaskPath<T>(projectDict: Record<string, T>, taskPath: string) {
+    // This is checking implementation: if a task has no project defined with it or in its file, 
+    //      it will find projects in its parent directory.
+    while (!projectDict.hasOwnProperty(taskPath)) {
+        taskPath = path.dirname(taskPath);
+    }
+    return projectDict[taskPath]
+}
+ 
+export class OdaProjectTree {
+    // Path to Project
+    projectDict: Record<string, OdaPmProject> = {};
+ 
+    static buildProjectShadowTree(projects: OdaPmProject[]): OdaProjectTree {
+        const tree = new OdaProjectTree();
+        for (const project of projects) {
+            for (const path of project.defPaths) {
+                tree.projectDict[path] = project
+            }
+        }
+        return tree;
+    }
+ 
+    getProjectByPmTask(pmTask: OdaPmTask): OdaPmProject {
+        return getProjectByTaskPath(this.projectDict, pmTask.getProjectPath());
+    }
+ 
+    getProjectByPmWorkflow(pmWorkflow: I_OdaPmWorkflow): OdaPmProject {
+        return getProjectByTaskPath(this.projectDict, pmWorkflow.getProjectPath());
+    }
+}
+ 
+ +
+
+ + + + + + + + \ No newline at end of file diff --git a/coverage/lcov-report/base.css b/coverage/lcov-report/base.css new file mode 100644 index 0000000..f418035 --- /dev/null +++ b/coverage/lcov-report/base.css @@ -0,0 +1,224 @@ +body, html { + margin:0; padding: 0; + height: 100%; +} +body { + font-family: Helvetica Neue, Helvetica, Arial; + font-size: 14px; + color:#333; +} +.small { font-size: 12px; } +*, *:after, *:before { + -webkit-box-sizing:border-box; + -moz-box-sizing:border-box; + box-sizing:border-box; + } +h1 { font-size: 20px; margin: 0;} +h2 { font-size: 14px; } +pre { + font: 12px/1.4 Consolas, "Liberation Mono", Menlo, Courier, monospace; + margin: 0; + padding: 0; + -moz-tab-size: 2; + -o-tab-size: 2; + tab-size: 2; +} +a { color:#0074D9; text-decoration:none; } +a:hover { text-decoration:underline; } +.strong { font-weight: bold; } +.space-top1 { padding: 10px 0 0 0; } +.pad2y { padding: 20px 0; } +.pad1y { padding: 10px 0; } +.pad2x { padding: 0 20px; } +.pad2 { padding: 20px; } +.pad1 { padding: 10px; } +.space-left2 { padding-left:55px; } +.space-right2 { padding-right:20px; } +.center { text-align:center; } +.clearfix { display:block; } +.clearfix:after { + content:''; + display:block; + height:0; + clear:both; + visibility:hidden; + } +.fl { float: left; } +@media only screen and (max-width:640px) { + .col3 { width:100%; max-width:100%; } + .hide-mobile { display:none!important; } +} + +.quiet { + color: #7f7f7f; + color: rgba(0,0,0,0.5); +} +.quiet a { opacity: 0.7; } + +.fraction { + font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace; + font-size: 10px; + color: #555; + background: #E8E8E8; + padding: 4px 5px; + border-radius: 3px; + vertical-align: middle; +} + +div.path a:link, div.path a:visited { color: #333; } +table.coverage { + border-collapse: collapse; + margin: 10px 0 0 0; + padding: 0; +} + +table.coverage td { + margin: 0; + padding: 0; + vertical-align: top; +} +table.coverage td.line-count { + text-align: right; + padding: 0 5px 0 20px; +} +table.coverage td.line-coverage { + text-align: right; + padding-right: 10px; + min-width:20px; +} + +table.coverage td span.cline-any { + display: inline-block; + padding: 0 5px; + width: 100%; +} +.missing-if-branch { + display: inline-block; + margin-right: 5px; + border-radius: 3px; + position: relative; + padding: 0 4px; + background: #333; + color: yellow; +} + +.skip-if-branch { + display: none; + margin-right: 10px; + position: relative; + padding: 0 4px; + background: #ccc; + color: white; +} +.missing-if-branch .typ, .skip-if-branch .typ { + color: inherit !important; +} +.coverage-summary { + border-collapse: collapse; + width: 100%; +} +.coverage-summary tr { border-bottom: 1px solid #bbb; } +.keyline-all { border: 1px solid #ddd; } +.coverage-summary td, .coverage-summary th { padding: 10px; } +.coverage-summary tbody { border: 1px solid #bbb; } +.coverage-summary td { border-right: 1px solid #bbb; } +.coverage-summary td:last-child { border-right: none; } +.coverage-summary th { + text-align: left; + font-weight: normal; + white-space: nowrap; +} +.coverage-summary th.file { border-right: none !important; } +.coverage-summary th.pct { } +.coverage-summary th.pic, +.coverage-summary th.abs, +.coverage-summary td.pct, +.coverage-summary td.abs { text-align: right; } +.coverage-summary td.file { white-space: nowrap; } +.coverage-summary td.pic { min-width: 120px !important; } +.coverage-summary tfoot td { } + +.coverage-summary .sorter { + height: 10px; + width: 7px; + display: inline-block; + margin-left: 0.5em; + background: url(sort-arrow-sprite.png) no-repeat scroll 0 0 transparent; +} +.coverage-summary .sorted .sorter { + background-position: 0 -20px; +} +.coverage-summary .sorted-desc .sorter { + background-position: 0 -10px; +} +.status-line { height: 10px; } +/* yellow */ +.cbranch-no { background: yellow !important; color: #111; } +/* dark red */ +.red.solid, .status-line.low, .low .cover-fill { background:#C21F39 } +.low .chart { border:1px solid #C21F39 } +.highlighted, +.highlighted .cstat-no, .highlighted .fstat-no, .highlighted .cbranch-no{ + background: #C21F39 !important; +} +/* medium red */ +.cstat-no, .fstat-no, .cbranch-no, .cbranch-no { background:#F6C6CE } +/* light red */ +.low, .cline-no { background:#FCE1E5 } +/* light green */ +.high, .cline-yes { background:rgb(230,245,208) } +/* medium green */ +.cstat-yes { background:rgb(161,215,106) } +/* dark green */ +.status-line.high, .high .cover-fill { background:rgb(77,146,33) } +.high .chart { border:1px solid rgb(77,146,33) } +/* dark yellow (gold) */ +.status-line.medium, .medium .cover-fill { background: #f9cd0b; } +.medium .chart { border:1px solid #f9cd0b; } +/* light yellow */ +.medium { background: #fff4c2; } + +.cstat-skip { background: #ddd; color: #111; } +.fstat-skip { background: #ddd; color: #111 !important; } +.cbranch-skip { background: #ddd !important; color: #111; } + +span.cline-neutral { background: #eaeaea; } + +.coverage-summary td.empty { + opacity: .5; + padding-top: 4px; + padding-bottom: 4px; + line-height: 1; + color: #888; +} + +.cover-fill, .cover-empty { + display:inline-block; + height: 12px; +} +.chart { + line-height: 0; +} +.cover-empty { + background: white; +} +.cover-full { + border-right: none !important; +} +pre.prettyprint { + border: none !important; + padding: 0 !important; + margin: 0 !important; +} +.com { color: #999 !important; } +.ignore-none { color: #999; font-weight: normal; } + +.wrapper { + min-height: 100%; + height: auto !important; + height: 100%; + margin: 0 auto -48px; +} +.footer, .push { + height: 48px; +} diff --git a/coverage/lcov-report/block-navigation.js b/coverage/lcov-report/block-navigation.js new file mode 100644 index 0000000..cc12130 --- /dev/null +++ b/coverage/lcov-report/block-navigation.js @@ -0,0 +1,87 @@ +/* eslint-disable */ +var jumpToCode = (function init() { + // Classes of code we would like to highlight in the file view + var missingCoverageClasses = ['.cbranch-no', '.cstat-no', '.fstat-no']; + + // Elements to highlight in the file listing view + var fileListingElements = ['td.pct.low']; + + // We don't want to select elements that are direct descendants of another match + var notSelector = ':not(' + missingCoverageClasses.join('):not(') + ') > '; // becomes `:not(a):not(b) > ` + + // Selecter that finds elements on the page to which we can jump + var selector = + fileListingElements.join(', ') + + ', ' + + notSelector + + missingCoverageClasses.join(', ' + notSelector); // becomes `:not(a):not(b) > a, :not(a):not(b) > b` + + // The NodeList of matching elements + var missingCoverageElements = document.querySelectorAll(selector); + + var currentIndex; + + function toggleClass(index) { + missingCoverageElements + .item(currentIndex) + .classList.remove('highlighted'); + missingCoverageElements.item(index).classList.add('highlighted'); + } + + function makeCurrent(index) { + toggleClass(index); + currentIndex = index; + missingCoverageElements.item(index).scrollIntoView({ + behavior: 'smooth', + block: 'center', + inline: 'center' + }); + } + + function goToPrevious() { + var nextIndex = 0; + if (typeof currentIndex !== 'number' || currentIndex === 0) { + nextIndex = missingCoverageElements.length - 1; + } else if (missingCoverageElements.length > 1) { + nextIndex = currentIndex - 1; + } + + makeCurrent(nextIndex); + } + + function goToNext() { + var nextIndex = 0; + + if ( + typeof currentIndex === 'number' && + currentIndex < missingCoverageElements.length - 1 + ) { + nextIndex = currentIndex + 1; + } + + makeCurrent(nextIndex); + } + + return function jump(event) { + if ( + document.getElementById('fileSearch') === document.activeElement && + document.activeElement != null + ) { + // if we're currently focused on the search input, we don't want to navigate + return; + } + + switch (event.which) { + case 78: // n + case 74: // j + goToNext(); + break; + case 66: // b + case 75: // k + case 80: // p + goToPrevious(); + break; + } + }; +})(); +window.addEventListener('keydown', jumpToCode); diff --git a/coverage/lcov-report/data-model/BaseDatabaseObject.ts.html b/coverage/lcov-report/data-model/BaseDatabaseObject.ts.html new file mode 100644 index 0000000..fd3bbf4 --- /dev/null +++ b/coverage/lcov-report/data-model/BaseDatabaseObject.ts.html @@ -0,0 +1,103 @@ + + + + + + Code coverage report for data-model/BaseDatabaseObject.ts + + + + + + + + + +
+
+

All files / data-model BaseDatabaseObject.ts

+
+ +
+ 50% + Statements + 1/2 +
+ + +
+ 100% + Branches + 0/0 +
+ + +
+ 0% + Functions + 0/1 +
+ + +
+ 50% + Lines + 1/2 +
+ + +
+

+ Press n or j to go to the next uncovered block, b, p or k for the previous block. +

+ +
+
+

+
1 +2 +3 +4 +5 +6 +72x +  +  +  +  +  + 
export class BaseDatabaseObject {
+    internalKey: number; // int
+    constructor() {
+        this.internalKey = 0;
+    }
+}
+ 
+ +
+
+ + + + + + + + \ No newline at end of file diff --git a/coverage/lcov-report/data-model/OdaPmProject.ts.html b/coverage/lcov-report/data-model/OdaPmProject.ts.html new file mode 100644 index 0000000..99677e3 --- /dev/null +++ b/coverage/lcov-report/data-model/OdaPmProject.ts.html @@ -0,0 +1,580 @@ + + + + + + Code coverage report for data-model/OdaPmProject.ts + + + + + + + + + +
+
+

All files / data-model OdaPmProject.ts

+
+ +
+ 17.56% + Statements + 13/74 +
+ + +
+ 0% + Branches + 0/14 +
+ + +
+ 0% + Functions + 0/13 +
+ + +
+ 17.56% + Lines + 13/74 +
+ + +
+

+ Press n or j to go to the next uncovered block, b, p or k for the previous block. +

+ +
+
+

+
1 +2 +3 +4 +5 +6 +7 +8 +9 +10 +11 +12 +13 +14 +15 +16 +17 +18 +19 +20 +21 +22 +23 +24 +25 +26 +27 +28 +29 +30 +31 +32 +33 +34 +35 +36 +37 +38 +39 +40 +41 +42 +43 +44 +45 +46 +47 +48 +49 +50 +51 +52 +53 +54 +55 +56 +57 +58 +59 +60 +61 +62 +63 +64 +65 +66 +67 +68 +69 +70 +71 +72 +73 +74 +75 +76 +77 +78 +79 +80 +81 +82 +83 +84 +85 +86 +87 +88 +89 +90 +91 +92 +93 +94 +95 +96 +97 +98 +99 +100 +101 +102 +103 +104 +105 +106 +107 +108 +109 +110 +111 +112 +113 +114 +115 +116 +117 +118 +119 +120 +121 +122 +123 +124 +125 +126 +127 +128 +129 +130 +131 +132 +133 +134 +135 +136 +137 +138 +139 +140 +141 +142 +143 +144 +145 +146 +147 +148 +149 +150 +151 +152 +153 +154 +155 +156 +157 +158 +159 +160 +161 +162 +163 +164 +165 +166  +2x +2x +2x +  +2x +  +2x +2x +2x +2x +2x +  +  +  +  +  +2x +2x +  +2x +  +  +  +  +  +  +  +2x +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  + 
import {SMarkdownPage} from "obsidian-dataview";
+import {devLog} from "../utils/env-util";
+import {getProjectNameFromTag, I_OdaPmWorkflow} from "./workflow-def";
+import {BaseDatabaseObject} from "./BaseDatabaseObject";
+import {OdaPmTask} from "./OdaPmTask";
+import * as path from "path";
+ 
+const Frontmatter_FolderProject = "tpm_project_root";
+const Frontmatter_FileProject = "tpm_project";
+export const ProjectName_Unclassified = "Unclassified";
+export const Tag_Prefix_Project = "#tpm/project/";
+const Project_Def_Enum_Array = [
+    "folder", // Project_FolderProject_Frontmatter
+    "file", // Project_FileProject_Frontmatter
+    "tag_override", // task or wf override
+    "system"//unclassified
+]
+let currentMaxProjectId = 0;
+export const globalProjectMap: Map<string, OdaPmProject> = new Map<string, OdaPmProject>();
+ 
+export function clearGlobalProjectMap() {
+    globalProjectMap.clear();
+    currentMaxProjectId = 0;
+}
+ 
+export
+type ProjectDefinedType = typeof Project_Def_Enum_Array[number]
+ 
+export class OdaPmProject extends BaseDatabaseObject {
+    name: string;
+    definedTypes: ProjectDefinedType[];
+    pages: SMarkdownPage[];
+    workflows: I_OdaPmWorkflow[];
+    pmTasks: OdaPmTask[];
+    defPaths: string[]; // Each project has multiple paths
+ 
+    constructor() {
+        super();
+        this.definedTypes = []
+        this.pages = []
+        this.workflows = []
+        this.pmTasks = []
+        this.defPaths = [];
+    }
+ 
+ 
+    hasDefinedType(type: ProjectDefinedType) {
+        return this.definedTypes.includes(type);
+    }
+ 
+// region Factory
+    private addDefinedType(type: ProjectDefinedType) {
+        Iif (!this.hasDefinedType(type)) {
+            this.definedTypes.push(type);
+        }
+    }
+ 
+    private addPage(page: SMarkdownPage) {
+        Iif (!this.pages.includes(page)) {
+            this.pages.push(page);
+        }
+    }
+ 
+    private addDefPath(obsidianPath: string) {
+        // Obsidian path is relative. Add '/' before path to form a tree
+        obsidianPath = (obsidianPath.startsWith("/") ? "" : "/") + obsidianPath; // prevent doubling leading '/'
+        this.defPaths.push(obsidianPath);
+    }
+ 
+    /**
+     *
+     * @param page
+     * @return null if no new project is created.
+     */
+    public static createProjectFromFrontmatter(page: SMarkdownPage) {
+        Iif (!page)
+            return null;
+ 
+        const fm = page["frontmatter"];
+        const keys = Object.keys(fm);
+ 
+        let name = null;
+        let definedType = null;
+        let defPath = null;
+        if (keys.includes(Frontmatter_FolderProject)) {
+            name = fm[Frontmatter_FolderProject];
+            definedType = "folder";
+            // If defined by a folder root (TPM-0.2.0-1-1), path = folder's path, not the file's path.
+            defPath = path.dirname(page.path);
+ 
+            Iif (keys.includes(Frontmatter_FileProject)) {
+                // TPM-0.2.0-1-5
+                // TODO Notify is disturbing in dev mode
+                devLog(`Frontmatter in ${page.path} has both folder and file frontmatter. Using ${Frontmatter_FolderProject}.`, 5)
+            }
+        } else if (keys.includes(Frontmatter_FileProject)) {
+            name = fm[Frontmatter_FileProject];
+            definedType = "file";
+            // If this project is defined by a file (TPM-0.2.0-1-3), it's path is the same as the file.
+            defPath = page.path;
+        } else {
+            return null;
+        }
+ 
+        const project = this.getOrCreateProject(name)
+        project.addDefinedType(definedType);
+        project.addPage(page);
+        project.addDefPath(defPath)
+        globalProjectMap.set(name, project);
+        devLog(`Project ${name} created. Adding page ${page.path}.`)
+        return project;
+    }
+ 
+    public static createProjectFromTaskTag(task: OdaPmTask, tag: string) {
+        const name = getProjectNameFromTag(tag);
+        const project = this.getOrCreateProject(name)
+        project.addDefinedType('tag_override');
+        // If defined by a task, path = `path/to/file:{project name}`. 
+        project.addDefPath(task.getProjectPath());
+        return project;
+    }
+ 
+    public static createUnclassifiedProject() {
+        const project = this.getOrCreateProject(ProjectName_Unclassified)
+        project.addDefinedType("system")
+        project.addDefPath("");
+        return project;
+    }
+ 
+    private static createProject(name: string) {
+        const p = new OdaPmProject();
+        p.name = name;
+        p.internalKey = ++currentMaxProjectId;
+        return p;
+    }
+ 
+    private static getOrCreateProject(name: string) {
+        const project = globalProjectMap.has(name) ?
+            globalProjectMap.get(name) as OdaPmProject
+            : this.createProject(name);
+ 
+        return project;
+    }
+ 
+ 
+// endregion
+ 
+ 
+// region Link Task and Workflow
+    linkTask(pmTask: OdaPmTask) {
+        Iif (!this.pmTasks.includes(pmTask)) {
+            this.pmTasks.push(pmTask);
+        }
+        pmTask.addProject(this);
+    }
+ 
+    linkWorkflow(pmWorkflow: I_OdaPmWorkflow) {
+        Iif (!this.workflows.includes(pmWorkflow)) {
+            this.workflows.push(pmWorkflow);
+        }
+        pmWorkflow.addProject(this);
+    }
+ 
+// endregion
+}
+ 
+ +
+
+ + + + + + + + \ No newline at end of file diff --git a/coverage/lcov-report/data-model/OdaPmStep.ts.html b/coverage/lcov-report/data-model/OdaPmStep.ts.html new file mode 100644 index 0000000..3598f83 --- /dev/null +++ b/coverage/lcov-report/data-model/OdaPmStep.ts.html @@ -0,0 +1,190 @@ + + + + + + Code coverage report for data-model/OdaPmStep.ts + + + + + + + + + +
+
+

All files / data-model OdaPmStep.ts

+
+ +
+ 23.07% + Statements + 3/13 +
+ + +
+ 0% + Branches + 0/2 +
+ + +
+ 0% + Functions + 0/3 +
+ + +
+ 25% + Lines + 3/12 +
+ + +
+

+ Press n or j to go to the next uncovered block, b, p or k for the previous block. +

+ +
+
+

+
1 +2 +3 +4 +5 +6 +7 +8 +9 +10 +11 +12 +13 +14 +15 +16 +17 +18 +19 +20 +21 +22 +23 +24 +25 +26 +27 +28 +29 +30 +31 +32 +33 +34 +35 +362x +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +2x +  +  +  +  +  +2x +  +  +  +  +  +  +  +  + 
import {I_OdaPmStep, Tag_Prefix_Step} from "./workflow-def";
+ 
+class OdaPmStep implements I_OdaPmStep {
+    tag: string;
+    name: string;
+ 
+ 
+    constructor(tag: string) {
+        this.tag = tag;
+        this.name = tag.replace(Tag_Prefix_Step, "");
+    }
+ 
+    toObject() {
+        return {
+            // tag: this.tag,
+            name: this.name,
+        }
+    }
+}
+ 
+export const globalStepMap: Map<string, OdaPmStep> = new Map<string, OdaPmStep>();
+ 
+/**
+ * use global Pm Step library instead of creating new instances
+ * @param tag
+ */
+export function getOrCreateStep(tag: string | undefined): OdaPmStep | null {
+    Iif (!tag) return null;
+    Iif (globalStepMap.has(tag)) {
+        return <OdaPmStep>globalStepMap.get(tag);
+    }
+    const step = new OdaPmStep(tag);
+    globalStepMap.set(tag, step);
+    return step;
+}
+ 
+ +
+
+ + + + + + + + \ No newline at end of file diff --git a/coverage/lcov-report/data-model/OdaPmTask.ts.html b/coverage/lcov-report/data-model/OdaPmTask.ts.html new file mode 100644 index 0000000..0b557b9 --- /dev/null +++ b/coverage/lcov-report/data-model/OdaPmTask.ts.html @@ -0,0 +1,676 @@ + + + + + + Code coverage report for data-model/OdaPmTask.ts + + + + + + + + + +
+
+

All files / data-model OdaPmTask.ts

+
+ +
+ 5.33% + Statements + 4/75 +
+ + +
+ 0% + Branches + 0/30 +
+ + +
+ 0% + Functions + 0/27 +
+ + +
+ 5.97% + Lines + 4/67 +
+ + +
+

+ Press n or j to go to the next uncovered block, b, p or k for the previous block. +

+ +
+
+

+
1 +2 +3 +4 +5 +6 +7 +8 +9 +10 +11 +12 +13 +14 +15 +16 +17 +18 +19 +20 +21 +22 +23 +24 +25 +26 +27 +28 +29 +30 +31 +32 +33 +34 +35 +36 +37 +38 +39 +40 +41 +42 +43 +44 +45 +46 +47 +48 +49 +50 +51 +52 +53 +54 +55 +56 +57 +58 +59 +60 +61 +62 +63 +64 +65 +66 +67 +68 +69 +70 +71 +72 +73 +74 +75 +76 +77 +78 +79 +80 +81 +82 +83 +84 +85 +86 +87 +88 +89 +90 +91 +92 +93 +94 +95 +96 +97 +98 +99 +100 +101 +102 +103 +104 +105 +106 +107 +108 +109 +110 +111 +112 +113 +114 +115 +116 +117 +118 +119 +120 +121 +122 +123 +124 +125 +126 +127 +128 +129 +130 +131 +132 +133 +134 +135 +136 +137 +138 +139 +140 +141 +142 +143 +144 +145 +146 +147 +148 +149 +150 +151 +152 +153 +154 +155 +156 +157 +158 +159 +160 +161 +162 +163 +164 +165 +166 +167 +168 +169 +170 +171 +172 +173 +174 +175 +176 +177 +178 +179 +180 +181 +182 +183 +184 +185 +186 +187 +188 +189 +190 +191 +192 +193 +194 +195 +196 +197 +198  +  +2x +  +  +  +  +  +  +  +  +  +2x +2x +  +2x +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  + 
import {STask} from "obsidian-dataview";
+import {OdaPmProject} from "./OdaPmProject";
+import {
+    addTagText,
+    getProjectPathFromSTask,
+    getProjectTagFromSTask,
+    I_OdaPmProjectTask,
+    I_OdaPmStep,
+    I_OdaPmWorkflow,
+    removeTagText,
+    trimTagsFromTask
+} from "./workflow-def";
+import {BaseDatabaseObject} from "./BaseDatabaseObject";
+import {getOrCreateStep} from "./OdaPmStep";
+ 
+export class OdaPmTask extends BaseDatabaseObject implements I_OdaPmProjectTask {
+    boundTask: STask;
+    // without any step and typeDef tags
+    summary: string;
+    // raw
+    text: string;
+    type: I_OdaPmWorkflow;
+    // One for chain. Many for checkbox
+    currentSteps: I_OdaPmStep[];
+    // 0.2.0
+    projects: OdaPmProject[];
+ 
+    constructor(type: I_OdaPmWorkflow, task: STask) {
+        super();
+        this.boundTask = task;
+        this.text = task.text;
+        this.type = type;
+        this.summary = trimTagsFromTask(task)
+        this.currentSteps = [];
+        for (const tag of task.tags) {
+            Iif (type.includesStep(tag)) {
+                const step = getOrCreateStep(tag);
+                Iif (step !== null)
+                    this.currentSteps.push(step)
+            }
+        }
+        this.projects = []
+    }
+ 
+    toObject() {
+        return {
+            summary: this.summary,
+            text: this.text,
+            type: this.type,
+            currentSteps: this.currentSteps.map(k => k.toObject()),
+        }
+    }
+ 
+    isMdCompleted() {
+        return this.boundTask.checked;
+    }
+ 
+    stepCompleted(): boolean {
+        switch (this.type.type) {
+            case "chain": {
+                const tagStep = getOrCreateStep(this.type.stepsDef.last()?.tag);
+                Iif (tagStep === null) return false;
+                return this.currentSteps.includes(tagStep)
+            }
+            case "checkbox":
+                return this.allStepsCompleted()
+        }
+    }
+ 
+    getLastStep(): I_OdaPmStep | undefined {
+        return this.currentSteps.last();
+    }
+ 
+    /**
+     *  Users may add step tags in md, we find the furthest step in the chain.
+     */
+    private getFurthestStep() {
+        for (let i = this.type.stepsDef.length - 1; i >= 0; i--) {
+            Iif (this.currentSteps.includes(this.type.stepsDef[i]))
+                return this.type.stepsDef[i];
+        }
+        return null;
+    }
+ 
+    private allStepsCompleted(): boolean {
+        return this.currentSteps.length == this.type.stepsDef.length
+    }
+ 
+    lackOnlyOneStep(stepTag: string | undefined): boolean {
+        Iif (!stepTag) return false;
+        switch (this.type.type) {
+            case "chain":
+                // This is the last step, ofc we lack this.
+                return this.type.stepsDef.last()?.tag === stepTag
+            case "checkbox": {
+                const hasTag = this.currentSteps.filter(k => k.tag == stepTag).length > 0;
+                return this.currentSteps.length == this.type.stepsDef.length - 1 && !hasTag
+            }
+        }
+    }
+ 
+    hasStepName(stepName: string) {
+        // TODO Performance
+        return this.currentSteps.filter(k => k.name == stepName).length > 0;
+    }
+ 
+    addStepTag(stepTag: string): string {
+        const text = this.boundTask.text;
+        return addTagText(text, stepTag);
+    }
+ 
+    removeStepTag(stepTag: string) {
+        return removeTagText(this.boundTask.text, stepTag);
+    }
+ 
+    removeAllStepTags() {
+        let oriText = this.text;
+        for (const step of this.type.stepsDef) {
+            Iif (this.currentSteps.includes(step)) {
+                oriText = removeTagText(oriText, step.tag)
+            }
+        }
+        return oriText;
+    }
+ 
+    private addAllStepTags(oriText: string) {
+        for (const step of this.type.stepsDef) {
+            Iif (this.currentSteps.includes(step)) {
+                continue;
+            }
+            oriText = addTagText(oriText, step.tag)
+        }
+        return oriText;
+    }
+ 
+    private keepLastStepTag() {
+        const lastStep = this.type.stepsDef.last();
+        return this.keepOneStepTag(lastStep?.tag);
+    }
+ 
+    completeStepTag() {
+        switch (this.type.type) {
+            case "chain":
+                return this.keepLastStepTag();
+            case "checkbox":
+                return this.addAllStepTags(this.text);
+        }
+    }
+ 
+    keepOneStepTag(stepTag: string | undefined) {
+        const cleanText = this.removeAllStepTags();
+        Iif (stepTag === undefined) return cleanText;
+        return addTagText(cleanText, stepTag)
+    }
+ 
+    /**
+     * Union > 0
+     * @param displayTags
+     */
+    hasAnyTag(displayTags: string[]) {
+        for (const tag of this.boundTask.tags) {
+            Iif (displayTags.includes(tag)) {
+                return true;
+            }
+        }
+        return false;
+    }
+ 
+    // region Project
+ 
+    getProjectTag(): string | null {
+        return getProjectTagFromSTask(this.boundTask);
+    }
+ 
+    addProject(project: OdaPmProject) {
+        // TODO performance
+        Iif (!this.projects.includes(project)) {
+            this.projects.push(project);
+        }
+    }
+ 
+    isInProject(name: string) {
+        // TODO performance
+        return this.projects.filter(k => k.name === name).length > 0;
+    }
+ 
+    getProjectPath(): string {
+        return getProjectPathFromSTask(this.boundTask, true);
+    }
+ 
+    // endregion
+ 
+    // debug
+    getProjectNames(): string[] {
+        return this.projects.map(k => k.name);
+    }
+}
+ 
+ +
+
+ + + + + + + + \ No newline at end of file diff --git a/coverage/lcov-report/data-model/OdaProjectTree.ts.html b/coverage/lcov-report/data-model/OdaProjectTree.ts.html new file mode 100644 index 0000000..792b7ab --- /dev/null +++ b/coverage/lcov-report/data-model/OdaProjectTree.ts.html @@ -0,0 +1,211 @@ + + + + + + Code coverage report for data-model/OdaProjectTree.ts + + + + + + + + + +
+
+

All files / data-model OdaProjectTree.ts

+
+ +
+ 42.85% + Statements + 6/14 +
+ + +
+ 100% + Branches + 0/0 +
+ + +
+ 20% + Functions + 1/5 +
+ + +
+ 42.85% + Lines + 6/14 +
+ + +
+

+ Press n or j to go to the next uncovered block, b, p or k for the previous block. +

+ +
+
+

+
1 +2 +3 +4 +5 +6 +7 +8 +9 +10 +11 +12 +13 +14 +15 +16 +17 +18 +19 +20 +21 +22 +23 +24 +25 +26 +27 +28 +29 +30 +31 +32 +33 +34 +35 +36 +37 +38 +39 +40 +41 +42 +43  +  +  +1x +  +  +  +  +  +  +  +1x +  +  +10x +6x +  +10x +  +  +1x +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  + 
import {OdaPmTask} from "./OdaPmTask";
+import {OdaPmProject} from "./OdaPmProject";
+import {I_OdaPmWorkflow} from "./workflow-def";
+import * as path from "path";
+ 
+ 
+/**
+ * The root is /.
+ * @param projectDict Path to OdaPmProject
+ * @param taskPath
+ */
+export function getProjectByTaskPath<T>(projectDict: Record<string, T>, taskPath: string) {
+    // This is checking implementation: if a task has no project defined with it or in its file, 
+    //      it will find projects in its parent directory.
+    while (!projectDict.hasOwnProperty(taskPath)) {
+        taskPath = path.dirname(taskPath);
+    }
+    return projectDict[taskPath]
+}
+ 
+export class OdaProjectTree {
+    // Path to Project
+    projectDict: Record<string, OdaPmProject> = {};
+ 
+    static buildProjectShadowTree(projects: OdaPmProject[]): OdaProjectTree {
+        const tree = new OdaProjectTree();
+        for (const project of projects) {
+            for (const path of project.defPaths) {
+                tree.projectDict[path] = project
+            }
+        }
+        return tree;
+    }
+ 
+    getProjectByPmTask(pmTask: OdaPmTask): OdaPmProject {
+        return getProjectByTaskPath(this.projectDict, pmTask.getProjectPath());
+    }
+ 
+    getProjectByPmWorkflow(pmWorkflow: I_OdaPmWorkflow): OdaPmProject {
+        return getProjectByTaskPath(this.projectDict, pmWorkflow.getProjectPath());
+    }
+}
+ 
+ +
+
+ + + + + + + + \ No newline at end of file diff --git a/coverage/lcov-report/data-model/index.html b/coverage/lcov-report/data-model/index.html new file mode 100644 index 0000000..92d8780 --- /dev/null +++ b/coverage/lcov-report/data-model/index.html @@ -0,0 +1,191 @@ + + + + + + Code coverage report for data-model + + + + + + + + + +
+
+

All files data-model

+
+ +
+ 22.95% + Statements + 56/244 +
+ + +
+ 1.56% + Branches + 1/64 +
+ + +
+ 4.76% + Functions + 3/63 +
+ + +
+ 24.13% + Lines + 56/232 +
+ + +
+

+ Press n or j to go to the next uncovered block, b, p or k for the previous block. +

+ +
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FileStatementsBranchesFunctionsLines
BaseDatabaseObject.ts +
+
50%1/2100%0/00%0/150%1/2
OdaPmProject.ts +
+
17.56%13/740%0/140%0/1317.56%13/74
OdaPmStep.ts +
+
23.07%3/130%0/20%0/325%3/12
OdaPmTask.ts +
+
5.33%4/750%0/300%0/275.97%4/67
OdaProjectTree.ts +
+
42.85%6/14100%0/020%1/542.85%6/14
workflow-def.ts +
+
43.93%29/665.55%1/1814.28%2/1446.03%29/63
+
+
+
+ + + + + + + + \ No newline at end of file diff --git a/coverage/lcov-report/data-model/workflow-def.ts.html b/coverage/lcov-report/data-model/workflow-def.ts.html new file mode 100644 index 0000000..9a29b8c --- /dev/null +++ b/coverage/lcov-report/data-model/workflow-def.ts.html @@ -0,0 +1,625 @@ + + + + + + Code coverage report for data-model/workflow-def.ts + + + + + + + + + +
+
+

All files / data-model workflow-def.ts

+
+ +
+ 43.93% + Statements + 29/66 +
+ + +
+ 5.55% + Branches + 1/18 +
+ + +
+ 14.28% + Functions + 2/14 +
+ + +
+ 46.03% + Lines + 29/63 +
+ + +
+

+ Press n or j to go to the next uncovered block, b, p or k for the previous block. +

+ +
+
+

+
1 +2 +3 +4 +5 +6 +7 +8 +9 +10 +11 +12 +13 +14 +15 +16 +17 +18 +19 +20 +21 +22 +23 +24 +25 +26 +27 +28 +29 +30 +31 +32 +33 +34 +35 +36 +37 +38 +39 +40 +41 +42 +43 +44 +45 +46 +47 +48 +49 +50 +51 +52 +53 +54 +55 +56 +57 +58 +59 +60 +61 +62 +63 +64 +65 +66 +67 +68 +69 +70 +71 +72 +73 +74 +75 +76 +77 +78 +79 +80 +81 +82 +83 +84 +85 +86 +87 +88 +89 +90 +91 +92 +93 +94 +95 +96 +97 +98 +99 +100 +101 +102 +103 +104 +105 +106 +107 +108 +109 +110 +111 +112 +113 +114 +115 +116 +117 +118 +119 +120 +121 +122 +123 +124 +125 +126 +127 +128 +129 +130 +131 +132 +133 +134 +135 +136 +137 +138 +139 +140 +141 +142 +143 +144 +145 +146 +147 +148 +149 +150 +151 +152 +153 +154 +155 +156 +157 +158 +159 +160 +161 +162 +163 +164 +165 +166 +167 +168 +169 +170 +171 +172 +173 +174 +175 +176 +177 +178 +179 +180 +181  +2x +2x +  +2x +2x +2x +2x +2x +2x +  +2x +  +  +  +  +  +2x +  +  +  +  +  +  +  +  +  +  +2x +  +  +  +  +2x +  +  +  +  +2x +  +  +  +  +  +2x +4x +4x +  +  +2x +  +  +  +  +  +  +  +  +  +  +  +  +  +  +2x +  +2x +  +  +  +  +  +2x +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +2x +  +  +  +  +  +  +  +  +  +  +2x +  +1x +  +1x +  +  +  +2x +  +  +  +  +  +  +  +2x +  +  +  +  +  +  +  +  +  +  +2x +  +  +  +  +  +  +  +  +  +2x +  +  +  +  +  +  +  +2x +  +  +  +  +  +  +  +  +  + 
import {STask} from "obsidian-dataview";
+import {OdaPmTask} from "./OdaPmTask";
+import {OdaPmProject, Tag_Prefix_Project} from "./OdaPmProject";
+ 
+export const Tag_Prefix_Step = "#tpm/step/";
+export const Tag_Prefix_Workflow = "#tpm/workflow_type/";
+export const Tag_Prefix_Tag = "#tpm/tag/";
+export const TaskStatus_checked = "x";
+export const TaskStatus_unchecked = " ";
+export const Tag_Prefix_TaskType = "#tpm/workflow/";
+ 
+export const Workflow_Type_Enum_Array = [
+    "chain",
+    "checkbox",
+] as const;
+export type WorkflowType = typeof Workflow_Type_Enum_Array[number];
+ 
+const Type_Definition_Tags: string[] = []
+ 
+ 
+function initWorkflowTypeTags() {
+    Iif (Type_Definition_Tags.length == 0) {
+        for (const workflow of Workflow_Type_Enum_Array) {
+            Type_Definition_Tags.push(Tag_Prefix_Workflow + workflow)
+        }
+    }
+}
+ 
+export function getWorkflowTypeTags(): string[] {
+    initWorkflowTypeTags();
+    return Type_Definition_Tags;
+}
+ 
+export function getWorkflowTypeTag(type: WorkflowType): string {
+    initWorkflowTypeTags();
+    return Type_Definition_Tags[Workflow_Type_Enum_Array.indexOf(type)];
+}
+ 
+export function isTaskSummaryValid(task: STask) {
+    // Empty names for workflow def and tasks are not allowed
+    const summary = trimTagsFromTask(task)
+    return summary && summary.length > 0;
+}
+ 
+export function matchTags(text: string) {
+    const tags = text.match(POTENTIAL_FULLTAG_MATCHER)
+    return tags;
+}
+ 
+export function trimTagsFromTask(task: STask): string {
+    // remove all tags from text
+    let text: string = task.text;
+    // dataview's tag matching may contain false positive. for example [[#Render]] will be recognized as a tag
+    const tags = matchTags(task.text);
+    Iif (!tags) return text.trim();
+    for (const tag of tags) {
+        text = text.replace(tag, "")
+    }
+    return text.trim()
+}
+ 
+// https://github.com/blacksmithgu/obsidian-dataview/blob/322217ad563defbc213f6731c9cd5a5f5a7e3638/src/data-import/common.ts#L5
+// Forbid @ since obsidian does not allow it
+ 
+const POTENTIAL_TAG_MATCHER = /[^+@\s,;.:!&*?'"`()\[\]{}]+/giu;
+// With hashtag and spaces before
+const POTENTIAL_FULLTAG_MATCHER = /\s+#[^+@\s,;.:!&*?'"`()\[\]{}]+/giu;
+ 
+/**
+ * Only take the first word
+ * @param text workflow name without tags
+ */
+export function getWorkflowNameFromRawText(text: string) {
+    const found = text.match(POTENTIAL_TAG_MATCHER)
+    return found ? found[0] : null;
+}
+ 
+export interface I_OdaPmProjectTask {
+ 
+    // 0.2.0
+    projects: OdaPmProject[];
+    addProject: (project: OdaPmProject) => void;
+    isInProject: (name: string) => boolean;
+    /**
+     * Called when no project is added. Returns the path of the markdown path.
+     */
+    getProjectPath: () => string;
+}
+ 
+// Unit Test
+// console.log(getWorkflowNameFromRawText("带你飞 带你飞2  \n vads ads f \t li"))
+ 
+export interface I_OdaPmStep {
+    tag: string;
+    name: string;
+    toObject: () => object
+}
+ 
+ 
+export interface I_OdaPmWorkflow extends I_OdaPmProjectTask {
+    boundTask: STask;
+    name: string;
+    stepsDef: I_OdaPmStep[];
+    type: WorkflowType;
+    tag: string;
+ 
+    clearSteps: () => void
+    addStep: (tag: string) => void
+    includesStep: (tag: string) => boolean
+}
+ 
+/**
+ * Dont check.
+ */
+export function factoryTask(task: STask, type: I_OdaPmWorkflow) {
+    return new OdaPmTask(type, task)
+}
+ 
+ 
+// region StepTag Manipulate
+/**
+ * add a tag at the end of the line. the tag will be followed by a space
+ * @param text
+ * @param stepTag
+ */
+export function addTagText(text: string, stepTag: string) {
+    // With the rule that a task cannot cross multiple lines, we can safely assume that the last char is \n if there is a \n.
+    const hasTrailingEol = text.indexOf("\n") == text.length - 1
+    // We believe dataview gives the correct result. In the latter case there will be no step.tag in the original text if includes is false.
+    return `${text.trimEnd()} ${stepTag} ` + (hasTrailingEol ? "\n" : "");
+}
+ 
+// TODO wont remove the space before or after the tag
+export function removeTagText(text: string, stepTag: string) {
+    return text.replace(stepTag, "");
+}
+ 
+ 
+// endregion
+ 
+ 
+export function isTaskSingleLine(task: STask) {
+    Iif (!task.text) return false;
+    Iif (!task.text.includes("\n")) return true;
+    const firstOccurrence = task.text.indexOf("\n");
+    // check if there are text after the first occurrence
+    const hasTextAfterEol = task.text.length <= firstOccurrence + 1;
+ 
+    return hasTextAfterEol;
+}
+ 
+// region Project 
+export function getProjectTagFromSTask(task: STask) {
+ 
+    for (const tag of task.tags) {
+        Iif (tag.startsWith(Tag_Prefix_Project)) {
+            return tag;
+        }
+    }
+    return null;
+}
+ 
+export function getProjectNameFromTag(tag: string) {
+    const name = tag.replace(Tag_Prefix_Project, "");
+    return name;
+}
+ 
+// - A task's path is
+// 1. If it defines a project, the project name is appended.
+// 2. If not, the task's path is the same as the file's.
+export function getProjectPathFromSTask(task: STask, leadingSlash = false) {
+    const prjTag = getProjectTagFromSTask(task);
+    if (prjTag !== null) {
+        // If defined by a task, path = `path/to/file:{project name}`. 
+        return `${leadingSlash ? "/" : ""}${task.path}:${getProjectNameFromTag(prjTag)}`;
+    } else
+        return `${leadingSlash ? "/" : ""}${task.path}`;
+}
+ 
+// endregion
+ 
+ +
+
+ + + + + + + + \ No newline at end of file diff --git a/coverage/lcov-report/favicon.png b/coverage/lcov-report/favicon.png new file mode 100644 index 0000000..c1525b8 Binary files /dev/null and b/coverage/lcov-report/favicon.png differ diff --git a/coverage/lcov-report/index.html b/coverage/lcov-report/index.html new file mode 100644 index 0000000..14e33cf --- /dev/null +++ b/coverage/lcov-report/index.html @@ -0,0 +1,131 @@ + + + + + + Code coverage report for All files + + + + + + + + + +
+
+

All files

+
+ +
+ 17.87% + Statements + 64/358 +
+ + +
+ 1.23% + Branches + 1/81 +
+ + +
+ 3.26% + Functions + 3/92 +
+ + +
+ 18.82% + Lines + 64/340 +
+ + +
+

+ Press n or j to go to the next uncovered block, b, p or k for the previous block. +

+ +
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FileStatementsBranchesFunctionsLines
data-model +
+
22.95%56/2441.56%1/644.76%3/6324.13%56/232
utils +
+
7.01%8/1140%0/170%0/297.4%8/108
+
+
+
+ + + + + + + + \ No newline at end of file diff --git a/coverage/lcov-report/prettify.css b/coverage/lcov-report/prettify.css new file mode 100644 index 0000000..b317a7c --- /dev/null +++ b/coverage/lcov-report/prettify.css @@ -0,0 +1 @@ +.pln{color:#000}@media screen{.str{color:#080}.kwd{color:#008}.com{color:#800}.typ{color:#606}.lit{color:#066}.pun,.opn,.clo{color:#660}.tag{color:#008}.atn{color:#606}.atv{color:#080}.dec,.var{color:#606}.fun{color:red}}@media print,projection{.str{color:#060}.kwd{color:#006;font-weight:bold}.com{color:#600;font-style:italic}.typ{color:#404;font-weight:bold}.lit{color:#044}.pun,.opn,.clo{color:#440}.tag{color:#006;font-weight:bold}.atn{color:#404}.atv{color:#060}}pre.prettyprint{padding:2px;border:1px solid #888}ol.linenums{margin-top:0;margin-bottom:0}li.L0,li.L1,li.L2,li.L3,li.L5,li.L6,li.L7,li.L8{list-style-type:none}li.L1,li.L3,li.L5,li.L7,li.L9{background:#eee} diff --git a/coverage/lcov-report/prettify.js b/coverage/lcov-report/prettify.js new file mode 100644 index 0000000..b322523 --- /dev/null +++ b/coverage/lcov-report/prettify.js @@ -0,0 +1,2 @@ +/* eslint-disable */ +window.PR_SHOULD_USE_CONTINUATION=true;(function(){var h=["break,continue,do,else,for,if,return,while"];var u=[h,"auto,case,char,const,default,double,enum,extern,float,goto,int,long,register,short,signed,sizeof,static,struct,switch,typedef,union,unsigned,void,volatile"];var p=[u,"catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"];var l=[p,"alignof,align_union,asm,axiom,bool,concept,concept_map,const_cast,constexpr,decltype,dynamic_cast,explicit,export,friend,inline,late_check,mutable,namespace,nullptr,reinterpret_cast,static_assert,static_cast,template,typeid,typename,using,virtual,where"];var x=[p,"abstract,boolean,byte,extends,final,finally,implements,import,instanceof,null,native,package,strictfp,super,synchronized,throws,transient"];var R=[x,"as,base,by,checked,decimal,delegate,descending,dynamic,event,fixed,foreach,from,group,implicit,in,interface,internal,into,is,lock,object,out,override,orderby,params,partial,readonly,ref,sbyte,sealed,stackalloc,string,select,uint,ulong,unchecked,unsafe,ushort,var"];var r="all,and,by,catch,class,else,extends,false,finally,for,if,in,is,isnt,loop,new,no,not,null,of,off,on,or,return,super,then,true,try,unless,until,when,while,yes";var w=[p,"debugger,eval,export,function,get,null,set,undefined,var,with,Infinity,NaN"];var s="caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END";var I=[h,"and,as,assert,class,def,del,elif,except,exec,finally,from,global,import,in,is,lambda,nonlocal,not,or,pass,print,raise,try,with,yield,False,True,None"];var f=[h,"alias,and,begin,case,class,def,defined,elsif,end,ensure,false,in,module,next,nil,not,or,redo,rescue,retry,self,super,then,true,undef,unless,until,when,yield,BEGIN,END"];var H=[h,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"];var A=[l,R,w,s+I,f,H];var e=/^(DIR|FILE|vector|(de|priority_)?queue|list|stack|(const_)?iterator|(multi)?(set|map)|bitset|u?(int|float)\d*)/;var C="str";var z="kwd";var j="com";var O="typ";var G="lit";var L="pun";var F="pln";var m="tag";var E="dec";var J="src";var P="atn";var n="atv";var N="nocode";var M="(?:^^\\.?|[+-]|\\!|\\!=|\\!==|\\#|\\%|\\%=|&|&&|&&=|&=|\\(|\\*|\\*=|\\+=|\\,|\\-=|\\->|\\/|\\/=|:|::|\\;|<|<<|<<=|<=|=|==|===|>|>=|>>|>>=|>>>|>>>=|\\?|\\@|\\[|\\^|\\^=|\\^\\^|\\^\\^=|\\{|\\||\\|=|\\|\\||\\|\\|=|\\~|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\\s*";function k(Z){var ad=0;var S=false;var ac=false;for(var V=0,U=Z.length;V122)){if(!(al<65||ag>90)){af.push([Math.max(65,ag)|32,Math.min(al,90)|32])}if(!(al<97||ag>122)){af.push([Math.max(97,ag)&~32,Math.min(al,122)&~32])}}}}af.sort(function(av,au){return(av[0]-au[0])||(au[1]-av[1])});var ai=[];var ap=[NaN,NaN];for(var ar=0;arat[0]){if(at[1]+1>at[0]){an.push("-")}an.push(T(at[1]))}}an.push("]");return an.join("")}function W(al){var aj=al.source.match(new RegExp("(?:\\[(?:[^\\x5C\\x5D]|\\\\[\\s\\S])*\\]|\\\\u[A-Fa-f0-9]{4}|\\\\x[A-Fa-f0-9]{2}|\\\\[0-9]+|\\\\[^ux0-9]|\\(\\?[:!=]|[\\(\\)\\^]|[^\\x5B\\x5C\\(\\)\\^]+)","g"));var ah=aj.length;var an=[];for(var ak=0,am=0;ak=2&&ai==="["){aj[ak]=X(ag)}else{if(ai!=="\\"){aj[ak]=ag.replace(/[a-zA-Z]/g,function(ao){var ap=ao.charCodeAt(0);return"["+String.fromCharCode(ap&~32,ap|32)+"]"})}}}}return aj.join("")}var aa=[];for(var V=0,U=Z.length;V=0;){S[ac.charAt(ae)]=Y}}var af=Y[1];var aa=""+af;if(!ag.hasOwnProperty(aa)){ah.push(af);ag[aa]=null}}ah.push(/[\0-\uffff]/);V=k(ah)})();var X=T.length;var W=function(ah){var Z=ah.sourceCode,Y=ah.basePos;var ad=[Y,F];var af=0;var an=Z.match(V)||[];var aj={};for(var ae=0,aq=an.length;ae=5&&"lang-"===ap.substring(0,5);if(am&&!(ai&&typeof ai[1]==="string")){am=false;ap=J}if(!am){aj[ag]=ap}}var ab=af;af+=ag.length;if(!am){ad.push(Y+ab,ap)}else{var al=ai[1];var ak=ag.indexOf(al);var ac=ak+al.length;if(ai[2]){ac=ag.length-ai[2].length;ak=ac-al.length}var ar=ap.substring(5);B(Y+ab,ag.substring(0,ak),W,ad);B(Y+ab+ak,al,q(ar,al),ad);B(Y+ab+ac,ag.substring(ac),W,ad)}}ah.decorations=ad};return W}function i(T){var W=[],S=[];if(T.tripleQuotedStrings){W.push([C,/^(?:\'\'\'(?:[^\'\\]|\\[\s\S]|\'{1,2}(?=[^\']))*(?:\'\'\'|$)|\"\"\"(?:[^\"\\]|\\[\s\S]|\"{1,2}(?=[^\"]))*(?:\"\"\"|$)|\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$))/,null,"'\""])}else{if(T.multiLineStrings){W.push([C,/^(?:\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$)|\`(?:[^\\\`]|\\[\s\S])*(?:\`|$))/,null,"'\"`"])}else{W.push([C,/^(?:\'(?:[^\\\'\r\n]|\\.)*(?:\'|$)|\"(?:[^\\\"\r\n]|\\.)*(?:\"|$))/,null,"\"'"])}}if(T.verbatimStrings){S.push([C,/^@\"(?:[^\"]|\"\")*(?:\"|$)/,null])}var Y=T.hashComments;if(Y){if(T.cStyleComments){if(Y>1){W.push([j,/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,null,"#"])}else{W.push([j,/^#(?:(?:define|elif|else|endif|error|ifdef|include|ifndef|line|pragma|undef|warning)\b|[^\r\n]*)/,null,"#"])}S.push([C,/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h|[a-z]\w*)>/,null])}else{W.push([j,/^#[^\r\n]*/,null,"#"])}}if(T.cStyleComments){S.push([j,/^\/\/[^\r\n]*/,null]);S.push([j,/^\/\*[\s\S]*?(?:\*\/|$)/,null])}if(T.regexLiterals){var X=("/(?=[^/*])(?:[^/\\x5B\\x5C]|\\x5C[\\s\\S]|\\x5B(?:[^\\x5C\\x5D]|\\x5C[\\s\\S])*(?:\\x5D|$))+/");S.push(["lang-regex",new RegExp("^"+M+"("+X+")")])}var V=T.types;if(V){S.push([O,V])}var U=(""+T.keywords).replace(/^ | $/g,"");if(U.length){S.push([z,new RegExp("^(?:"+U.replace(/[\s,]+/g,"|")+")\\b"),null])}W.push([F,/^\s+/,null," \r\n\t\xA0"]);S.push([G,/^@[a-z_$][a-z_$@0-9]*/i,null],[O,/^(?:[@_]?[A-Z]+[a-z][A-Za-z_$@0-9]*|\w+_t\b)/,null],[F,/^[a-z_$][a-z_$@0-9]*/i,null],[G,new RegExp("^(?:0x[a-f0-9]+|(?:\\d(?:_\\d+)*\\d*(?:\\.\\d*)?|\\.\\d\\+)(?:e[+\\-]?\\d+)?)[a-z]*","i"),null,"0123456789"],[F,/^\\[\s\S]?/,null],[L,/^.[^\s\w\.$@\'\"\`\/\#\\]*/,null]);return g(W,S)}var K=i({keywords:A,hashComments:true,cStyleComments:true,multiLineStrings:true,regexLiterals:true});function Q(V,ag){var U=/(?:^|\s)nocode(?:\s|$)/;var ab=/\r\n?|\n/;var ac=V.ownerDocument;var S;if(V.currentStyle){S=V.currentStyle.whiteSpace}else{if(window.getComputedStyle){S=ac.defaultView.getComputedStyle(V,null).getPropertyValue("white-space")}}var Z=S&&"pre"===S.substring(0,3);var af=ac.createElement("LI");while(V.firstChild){af.appendChild(V.firstChild)}var W=[af];function ae(al){switch(al.nodeType){case 1:if(U.test(al.className)){break}if("BR"===al.nodeName){ad(al);if(al.parentNode){al.parentNode.removeChild(al)}}else{for(var an=al.firstChild;an;an=an.nextSibling){ae(an)}}break;case 3:case 4:if(Z){var am=al.nodeValue;var aj=am.match(ab);if(aj){var ai=am.substring(0,aj.index);al.nodeValue=ai;var ah=am.substring(aj.index+aj[0].length);if(ah){var ak=al.parentNode;ak.insertBefore(ac.createTextNode(ah),al.nextSibling)}ad(al);if(!ai){al.parentNode.removeChild(al)}}}break}}function ad(ak){while(!ak.nextSibling){ak=ak.parentNode;if(!ak){return}}function ai(al,ar){var aq=ar?al.cloneNode(false):al;var ao=al.parentNode;if(ao){var ap=ai(ao,1);var an=al.nextSibling;ap.appendChild(aq);for(var am=an;am;am=an){an=am.nextSibling;ap.appendChild(am)}}return aq}var ah=ai(ak.nextSibling,0);for(var aj;(aj=ah.parentNode)&&aj.nodeType===1;){ah=aj}W.push(ah)}for(var Y=0;Y=S){ah+=2}if(V>=ap){Z+=2}}}var t={};function c(U,V){for(var S=V.length;--S>=0;){var T=V[S];if(!t.hasOwnProperty(T)){t[T]=U}else{if(window.console){console.warn("cannot override language handler %s",T)}}}}function q(T,S){if(!(T&&t.hasOwnProperty(T))){T=/^\s*]*(?:>|$)/],[j,/^<\!--[\s\S]*?(?:-\->|$)/],["lang-",/^<\?([\s\S]+?)(?:\?>|$)/],["lang-",/^<%([\s\S]+?)(?:%>|$)/],[L,/^(?:<[%?]|[%?]>)/],["lang-",/^]*>([\s\S]+?)<\/xmp\b[^>]*>/i],["lang-js",/^]*>([\s\S]*?)(<\/script\b[^>]*>)/i],["lang-css",/^]*>([\s\S]*?)(<\/style\b[^>]*>)/i],["lang-in.tag",/^(<\/?[a-z][^<>]*>)/i]]),["default-markup","htm","html","mxml","xhtml","xml","xsl"]);c(g([[F,/^[\s]+/,null," \t\r\n"],[n,/^(?:\"[^\"]*\"?|\'[^\']*\'?)/,null,"\"'"]],[[m,/^^<\/?[a-z](?:[\w.:-]*\w)?|\/?>$/i],[P,/^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i],["lang-uq.val",/^=\s*([^>\'\"\s]*(?:[^>\'\"\s\/]|\/(?=\s)))/],[L,/^[=<>\/]+/],["lang-js",/^on\w+\s*=\s*\"([^\"]+)\"/i],["lang-js",/^on\w+\s*=\s*\'([^\']+)\'/i],["lang-js",/^on\w+\s*=\s*([^\"\'>\s]+)/i],["lang-css",/^style\s*=\s*\"([^\"]+)\"/i],["lang-css",/^style\s*=\s*\'([^\']+)\'/i],["lang-css",/^style\s*=\s*([^\"\'>\s]+)/i]]),["in.tag"]);c(g([],[[n,/^[\s\S]+/]]),["uq.val"]);c(i({keywords:l,hashComments:true,cStyleComments:true,types:e}),["c","cc","cpp","cxx","cyc","m"]);c(i({keywords:"null,true,false"}),["json"]);c(i({keywords:R,hashComments:true,cStyleComments:true,verbatimStrings:true,types:e}),["cs"]);c(i({keywords:x,cStyleComments:true}),["java"]);c(i({keywords:H,hashComments:true,multiLineStrings:true}),["bsh","csh","sh"]);c(i({keywords:I,hashComments:true,multiLineStrings:true,tripleQuotedStrings:true}),["cv","py"]);c(i({keywords:s,hashComments:true,multiLineStrings:true,regexLiterals:true}),["perl","pl","pm"]);c(i({keywords:f,hashComments:true,multiLineStrings:true,regexLiterals:true}),["rb"]);c(i({keywords:w,cStyleComments:true,regexLiterals:true}),["js"]);c(i({keywords:r,hashComments:3,cStyleComments:true,multilineStrings:true,tripleQuotedStrings:true,regexLiterals:true}),["coffee"]);c(g([],[[C,/^[\s\S]+/]]),["regex"]);function d(V){var U=V.langExtension;try{var S=a(V.sourceNode);var T=S.sourceCode;V.sourceCode=T;V.spans=S.spans;V.basePos=0;q(U,T)(V);D(V)}catch(W){if("console" in window){console.log(W&&W.stack?W.stack:W)}}}function y(W,V,U){var S=document.createElement("PRE");S.innerHTML=W;if(U){Q(S,U)}var T={langExtension:V,numberLines:U,sourceNode:S};d(T);return S.innerHTML}function b(ad){function Y(af){return document.getElementsByTagName(af)}var ac=[Y("pre"),Y("code"),Y("xmp")];var T=[];for(var aa=0;aa=0){var ah=ai.match(ab);var am;if(!ah&&(am=o(aj))&&"CODE"===am.tagName){ah=am.className.match(ab)}if(ah){ah=ah[1]}var al=false;for(var ak=aj.parentNode;ak;ak=ak.parentNode){if((ak.tagName==="pre"||ak.tagName==="code"||ak.tagName==="xmp")&&ak.className&&ak.className.indexOf("prettyprint")>=0){al=true;break}}if(!al){var af=aj.className.match(/\blinenums\b(?::(\d+))?/);af=af?af[1]&&af[1].length?+af[1]:true:false;if(af){Q(aj,af)}S={langExtension:ah,sourceNode:aj,numberLines:af};d(S)}}}if(X]*(?:>|$)/],[PR.PR_COMMENT,/^<\!--[\s\S]*?(?:-\->|$)/],[PR.PR_PUNCTUATION,/^(?:<[%?]|[%?]>)/],["lang-",/^<\?([\s\S]+?)(?:\?>|$)/],["lang-",/^<%([\s\S]+?)(?:%>|$)/],["lang-",/^]*>([\s\S]+?)<\/xmp\b[^>]*>/i],["lang-handlebars",/^]*type\s*=\s*['"]?text\/x-handlebars-template['"]?\b[^>]*>([\s\S]*?)(<\/script\b[^>]*>)/i],["lang-js",/^]*>([\s\S]*?)(<\/script\b[^>]*>)/i],["lang-css",/^]*>([\s\S]*?)(<\/style\b[^>]*>)/i],["lang-in.tag",/^(<\/?[a-z][^<>]*>)/i],[PR.PR_DECLARATION,/^{{[#^>/]?\s*[\w.][^}]*}}/],[PR.PR_DECLARATION,/^{{&?\s*[\w.][^}]*}}/],[PR.PR_DECLARATION,/^{{{>?\s*[\w.][^}]*}}}/],[PR.PR_COMMENT,/^{{![^}]*}}/]]),["handlebars","hbs"]);PR.registerLangHandler(PR.createSimpleLexer([[PR.PR_PLAIN,/^[ \t\r\n\f]+/,null," \t\r\n\f"]],[[PR.PR_STRING,/^\"(?:[^\n\r\f\\\"]|\\(?:\r\n?|\n|\f)|\\[\s\S])*\"/,null],[PR.PR_STRING,/^\'(?:[^\n\r\f\\\']|\\(?:\r\n?|\n|\f)|\\[\s\S])*\'/,null],["lang-css-str",/^url\(([^\)\"\']*)\)/i],[PR.PR_KEYWORD,/^(?:url|rgb|\!important|@import|@page|@media|@charset|inherit)(?=[^\-\w]|$)/i,null],["lang-css-kw",/^(-?(?:[_a-z]|(?:\\[0-9a-f]+ ?))(?:[_a-z0-9\-]|\\(?:\\[0-9a-f]+ ?))*)\s*:/i],[PR.PR_COMMENT,/^\/\*[^*]*\*+(?:[^\/*][^*]*\*+)*\//],[PR.PR_COMMENT,/^(?:)/],[PR.PR_LITERAL,/^(?:\d+|\d*\.\d+)(?:%|[a-z]+)?/i],[PR.PR_LITERAL,/^#(?:[0-9a-f]{3}){1,2}/i],[PR.PR_PLAIN,/^-?(?:[_a-z]|(?:\\[\da-f]+ ?))(?:[_a-z\d\-]|\\(?:\\[\da-f]+ ?))*/i],[PR.PR_PUNCTUATION,/^[^\s\w\'\"]+/]]),["css"]);PR.registerLangHandler(PR.createSimpleLexer([],[[PR.PR_KEYWORD,/^-?(?:[_a-z]|(?:\\[\da-f]+ ?))(?:[_a-z\d\-]|\\(?:\\[\da-f]+ ?))*/i]]),["css-kw"]);PR.registerLangHandler(PR.createSimpleLexer([],[[PR.PR_STRING,/^[^\)\"\']+/]]),["css-str"]); diff --git a/coverage/lcov-report/sort-arrow-sprite.png b/coverage/lcov-report/sort-arrow-sprite.png new file mode 100644 index 0000000..6ed6831 Binary files /dev/null and b/coverage/lcov-report/sort-arrow-sprite.png differ diff --git a/coverage/lcov-report/sorter.js b/coverage/lcov-report/sorter.js new file mode 100644 index 0000000..2bb296a --- /dev/null +++ b/coverage/lcov-report/sorter.js @@ -0,0 +1,196 @@ +/* eslint-disable */ +var addSorting = (function() { + 'use strict'; + var cols, + currentSort = { + index: 0, + desc: false + }; + + // returns the summary table element + function getTable() { + return document.querySelector('.coverage-summary'); + } + // returns the thead element of the summary table + function getTableHeader() { + return getTable().querySelector('thead tr'); + } + // returns the tbody element of the summary table + function getTableBody() { + return getTable().querySelector('tbody'); + } + // returns the th element for nth column + function getNthColumn(n) { + return getTableHeader().querySelectorAll('th')[n]; + } + + function onFilterInput() { + const searchValue = document.getElementById('fileSearch').value; + const rows = document.getElementsByTagName('tbody')[0].children; + for (let i = 0; i < rows.length; i++) { + const row = rows[i]; + if ( + row.textContent + .toLowerCase() + .includes(searchValue.toLowerCase()) + ) { + row.style.display = ''; + } else { + row.style.display = 'none'; + } + } + } + + // loads the search box + function addSearchBox() { + var template = document.getElementById('filterTemplate'); + var templateClone = template.content.cloneNode(true); + templateClone.getElementById('fileSearch').oninput = onFilterInput; + template.parentElement.appendChild(templateClone); + } + + // loads all columns + function loadColumns() { + var colNodes = getTableHeader().querySelectorAll('th'), + colNode, + cols = [], + col, + i; + + for (i = 0; i < colNodes.length; i += 1) { + colNode = colNodes[i]; + col = { + key: colNode.getAttribute('data-col'), + sortable: !colNode.getAttribute('data-nosort'), + type: colNode.getAttribute('data-type') || 'string' + }; + cols.push(col); + if (col.sortable) { + col.defaultDescSort = col.type === 'number'; + colNode.innerHTML = + colNode.innerHTML + ''; + } + } + return cols; + } + // attaches a data attribute to every tr element with an object + // of data values keyed by column name + function loadRowData(tableRow) { + var tableCols = tableRow.querySelectorAll('td'), + colNode, + col, + data = {}, + i, + val; + for (i = 0; i < tableCols.length; i += 1) { + colNode = tableCols[i]; + col = cols[i]; + val = colNode.getAttribute('data-value'); + if (col.type === 'number') { + val = Number(val); + } + data[col.key] = val; + } + return data; + } + // loads all row data + function loadData() { + var rows = getTableBody().querySelectorAll('tr'), + i; + + for (i = 0; i < rows.length; i += 1) { + rows[i].data = loadRowData(rows[i]); + } + } + // sorts the table using the data for the ith column + function sortByIndex(index, desc) { + var key = cols[index].key, + sorter = function(a, b) { + a = a.data[key]; + b = b.data[key]; + return a < b ? -1 : a > b ? 1 : 0; + }, + finalSorter = sorter, + tableBody = document.querySelector('.coverage-summary tbody'), + rowNodes = tableBody.querySelectorAll('tr'), + rows = [], + i; + + if (desc) { + finalSorter = function(a, b) { + return -1 * sorter(a, b); + }; + } + + for (i = 0; i < rowNodes.length; i += 1) { + rows.push(rowNodes[i]); + tableBody.removeChild(rowNodes[i]); + } + + rows.sort(finalSorter); + + for (i = 0; i < rows.length; i += 1) { + tableBody.appendChild(rows[i]); + } + } + // removes sort indicators for current column being sorted + function removeSortIndicators() { + var col = getNthColumn(currentSort.index), + cls = col.className; + + cls = cls.replace(/ sorted$/, '').replace(/ sorted-desc$/, ''); + col.className = cls; + } + // adds sort indicators for current column being sorted + function addSortIndicators() { + getNthColumn(currentSort.index).className += currentSort.desc + ? ' sorted-desc' + : ' sorted'; + } + // adds event listeners for all sorter widgets + function enableUI() { + var i, + el, + ithSorter = function ithSorter(i) { + var col = cols[i]; + + return function() { + var desc = col.defaultDescSort; + + if (currentSort.index === i) { + desc = !currentSort.desc; + } + sortByIndex(i, desc); + removeSortIndicators(); + currentSort.index = i; + currentSort.desc = desc; + addSortIndicators(); + }; + }; + for (i = 0; i < cols.length; i += 1) { + if (cols[i].sortable) { + // add the click event handler on the th so users + // dont have to click on those tiny arrows + el = getNthColumn(i).querySelector('.sorter').parentElement; + if (el.addEventListener) { + el.addEventListener('click', ithSorter(i)); + } else { + el.attachEvent('onclick', ithSorter(i)); + } + } + } + } + // adds sorting functionality to the UI + return function() { + if (!getTable()) { + return; + } + cols = loadColumns(); + loadData(); + addSearchBox(); + addSortIndicators(); + enableUI(); + }; +})(); + +window.addEventListener('load', addSorting); diff --git a/coverage/lcov-report/utils/env-util.ts.html b/coverage/lcov-report/utils/env-util.ts.html new file mode 100644 index 0000000..32a135f --- /dev/null +++ b/coverage/lcov-report/utils/env-util.ts.html @@ -0,0 +1,643 @@ + + + + + + Code coverage report for utils/env-util.ts + + + + + + + + + +
+
+

All files / utils env-util.ts

+
+ +
+ 7.01% + Statements + 8/114 +
+ + +
+ 0% + Branches + 0/17 +
+ + +
+ 0% + Functions + 0/29 +
+ + +
+ 7.4% + Lines + 8/108 +
+ + +
+

+ Press n or j to go to the next uncovered block, b, p or k for the previous block. +

+ +
+
+

+
1 +2 +3 +4 +5 +6 +7 +8 +9 +10 +11 +12 +13 +14 +15 +16 +17 +18 +19 +20 +21 +22 +23 +24 +25 +26 +27 +28 +29 +30 +31 +32 +33 +34 +35 +36 +37 +38 +39 +40 +41 +42 +43 +44 +45 +46 +47 +48 +49 +50 +51 +52 +53 +54 +55 +56 +57 +58 +59 +60 +61 +62 +63 +64 +65 +66 +67 +68 +69 +70 +71 +72 +73 +74 +75 +76 +77 +78 +79 +80 +81 +82 +83 +84 +85 +86 +87 +88 +89 +90 +91 +92 +93 +94 +95 +96 +97 +98 +99 +100 +101 +102 +103 +104 +105 +106 +107 +108 +109 +110 +111 +112 +113 +114 +115 +116 +117 +118 +119 +120 +121 +122 +123 +124 +125 +126 +127 +128 +129 +130 +131 +132 +133 +134 +135 +136 +137 +138 +139 +140 +141 +142 +143 +144 +145 +146 +147 +148 +149 +150 +151 +152 +153 +154 +155 +156 +157 +158 +159 +160 +161 +162 +163 +164 +165 +166 +167 +168 +169 +170 +171 +172 +173 +174 +175 +176 +177 +178 +179 +180 +181 +182 +183 +184 +185 +186 +1872x +  +2x +  +2x +  +  +2x +  +  +  +2x +  +  +  +  +2x +  +  +  +  +  +2x +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +2x +  +  +  +  +  +  +  +  +  +  + 
import process from "process";
+import OdaPmToolPlugin from "../main";
+import {expect} from "chai";
+import {OdaPmDb} from "../data-model/odaPmDb";
+import {OdaPmProject, ProjectDefinedType, ProjectName_Unclassified} from "../data-model/OdaPmProject";
+import {OdaPmTask} from "../data-model/OdaPmTask";
+ 
+export function isProduction() {
+    return process.env.NODE_ENV === "production";
+}
+ 
+export function devLog(...args: any[]) {
+    Iif (isProduction()) return;
+    console.log(...args);
+}
+ 
+export function devAssert(...args: any[]) {
+    Iif (isProduction()) return;
+    console.assert(...args)
+}
+ 
+// Test in dev mode.
+export function assertOnPluginInit(plugin: OdaPmToolPlugin) {
+    Iif (isProduction()) return;
+    console.log("Assert start: on plugin init...");
+    console.log("Assert End: on plugin init.")
+}
+ 
+function expect_project(prj: OdaPmProject | undefined, projectName: string, definedType?: ProjectDefinedType) {
+    expect(prj).to.not.be.undefined;
+    Iif (prj) {
+        expect(prj.name).to.equal(projectName);
+        Iif (definedType)
+            expect(prj.hasDefinedType(definedType)).to.be.true;
+    }
+}
+ 
+function expectTaskAbstract(pmDb: OdaPmDb, taskSummary: string, func: (task: OdaPmTask) => void) {
+    const task = pmDb.getPmTaskBySummary(taskSummary);
+    expect(task).to.not.be.null;
+    Iif (task) {
+        func(task);
+    }
+}
+ 
+async function testProjectDefinition(projects: OdaPmProject[], pmDb: OdaPmDb) {
+    const ut_projects = projects.filter(k =>
+        k.name.startsWith("UT_020_1_") && (k.hasDefinedType("file") || k.hasDefinedType("folder"))
+    );
+    const correct = 4;
+    expect(ut_projects, `Front matter defined projects not matched. Prefix 'UT_020_1_'.`)
+        .to.have.lengthOf(correct);
+ 
+    const ut_task_projects = projects.filter(k =>
+        k.name.startsWith("UT_020_1_") && k.hasDefinedType("tag_override")
+    );
+    expect(ut_task_projects, `Task tag defined projects not matched. Prefix 'UT_020_1_'.`).to.have.lengthOf(1);
+ 
+    const ut_020_2_1_projects = projects.filter(k => {
+        return k.pmTasks.filter(m => m.summary.startsWith("UT_020_2_1")).length > 0
+    }); // The task starting with UT_020_2_1 is in Unclassified project.
+    expect(ut_020_2_1_projects, `PmTask with prefix 'UT_020_2_1' not matched`).to.have.lengthOf(1);
+    expect_project(ut_020_2_1_projects.first(), ProjectName_Unclassified, "tag_override");
+ 
+    const ut_020_2_1_projects_wf = projects.filter(k => {
+        return k.workflows.filter(m => m.name.startsWith("UT_020_2_1")).length > 0
+    }); // The workflow starting with UT_020_2_1 is in Unclassified project.
+    expect(ut_020_2_1_projects_wf, `Workflow with prefix 'UT_020_2_1' not matched`).to.have.lengthOf(1);
+    expect_project(ut_020_2_1_projects_wf.first(), ProjectName_Unclassified, "tag_override");
+ 
+    const ut_020_2_2_tasks = pmDb.pmTasks.filter(k => {
+        return k.summary.startsWith("UT_020_2_2")
+    })
+    expect(ut_020_2_2_tasks, `PmTask with prefix 'UT_020_2_2' not matched`).to.have.lengthOf(1);
+    const ut_020_2_2_task = ut_020_2_2_tasks.first();
+    Iif (ut_020_2_2_task) {
+        expect(ut_020_2_2_task.isInProject("UT_020_2_Project_Layer_1_folder_definition"));
+    }
+ 
+    const ut_020_2_2_workflows = pmDb.workflows.filter(k => {
+        return k.name.startsWith("UT_020_2_2")
+    });
+    expect(ut_020_2_2_workflows, `Workflow with prefix 'UT_020_2_2' not matched`).to.have.lengthOf(1);
+    const ut_020_2_2_wf = ut_020_2_2_workflows.first();
+    Iif (ut_020_2_2_wf) {
+        expect(ut_020_2_2_wf.isInProject("UT_020_2_Project_Layer_1_folder_definition"));
+    }
+ 
+ 
+    const ut_020_2_3_tasks = pmDb.pmTasks.filter(k => {
+        return k.summary.startsWith("UT_020_2_3")
+    })
+    expect(ut_020_2_3_tasks, `PmTask with prefix 'UT_020_2_3' not matched`).to.have.lengthOf(1);
+    const ut_020_2_3_task = ut_020_2_3_tasks.first();
+    Iif (ut_020_2_3_task) {
+        expect(ut_020_2_3_task.isInProject("UT_020_2_Project_Layer_1_file_definition"));
+    }
+ 
+    const ut_020_2_3_workflows = pmDb.workflows.filter(k => {
+        return k.name.startsWith("UT_020_2_3")
+    });
+    expect(ut_020_2_3_workflows, `Workflow with prefix 'UT_020_2_3' not matched`).to.have.lengthOf(1);
+    const ut_020_2_3_wf = ut_020_2_3_workflows.first();
+    Iif (ut_020_2_3_wf) {
+        expect(ut_020_2_3_wf.isInProject("UT_020_2_Project_Layer_1_file_definition"));
+    }
+ 
+ 
+    const ut_020_2_4_tasks = pmDb.pmTasks.filter(k => {
+        return k.summary.startsWith("UT_020_2_4")
+    })
+    expect(ut_020_2_4_tasks, `PmTask with prefix 'UT_020_2_4' not matched`).to.have.lengthOf(1);
+    const ut_020_2_4_task = ut_020_2_4_tasks.first();
+    Iif (ut_020_2_4_task) {
+        expect(ut_020_2_4_task.isInProject("UT_020_2_Project_Layer_1_task_definition"));
+    }
+ 
+    const ut_020_2_4_workflows = pmDb.workflows.filter(k => {
+        return k.name.startsWith("UT_020_2_4")
+    });
+    expect(ut_020_2_4_workflows, `Workflow with prefix 'UT_020_2_4' not matched`).to.have.lengthOf(1);
+    const ut_020_2_4_wf = ut_020_2_4_workflows.first();
+    Iif (ut_020_2_4_wf) {
+        expect(ut_020_2_4_wf.isInProject("UT_020_2_Project_Layer_1_task_definition"));
+    }
+}
+ 
+async function testTaskProjectLink(pmDb: OdaPmDb) {
+ 
+    function expectTaskInProject(taskName: string, projectName: string) {
+        expectTaskAbstract(pmDb, taskName, (task) => {
+            expect(task.isInProject(projectName), `Task ${taskName} not in project ${projectName}. Task Path: ${task.getProjectPath()}. Task Project: ${JSON.stringify(task.getProjectNames())}`).true;
+        })
+    }
+ 
+    expectTaskInProject("UT_020_3_2_Unclassified", ProjectName_Unclassified);
+    expectTaskInProject("UT_020_3_2_Prj4", "UT_020_3_Prj4");
+    expectTaskInProject("UT_020_3_2_file1_Prj1", "UT_020_3_Prj1")
+    expectTaskInProject("UT_020_3_2_file2_Prj2", "UT_020_3_Prj2")
+    expectTaskInProject("UT_020_3_2_file3_Prj1", "UT_020_3_Prj1")
+    expectTaskInProject("UT_020_3_2_file3_Prj3", "UT_020_3_Prj3")
+    expectTaskInProject("UT_020_3_2_file4_Prj3", "UT_020_3_Prj3")
+    devLog("Test PASSED: Task Project Link.")
+}
+ 
+async function testGetTaskProjectPath(pmDb: OdaPmDb) {
+    function expectTaskPath(taskName: string, path: string) {
+        expectTaskAbstract(pmDb, taskName, (task) => {
+            expect(task.getProjectPath(), `Task ${taskName} 's path not matched.`)
+                .equal(path);
+        })
+    }
+ 
+    expectTaskPath("UT_020_3_2_Unclassified", "/UT_020_3 layer 0 file_any.md");
+    expectTaskPath("UT_020_3_2_Prj4", "/UT_020_3 layer 0 file_any.md:UT_020_3_Prj4");
+    expectTaskPath("UT_020_3_2_file1_Prj1", "/UT_020_3 project Folder/UT_020_3 projectroot Prj1.md")
+    expectTaskPath("UT_020_3_2_file2_Prj2", "/UT_020_3 project Folder/UT_020_3 file2 Prj2.md")
+    expectTaskPath("UT_020_3_2_file3_Prj1", "/UT_020_3 project Folder/UT_020_3 file3 Prj1.md")
+    expectTaskPath("UT_020_3_2_file3_Prj3", "/UT_020_3 project Folder/UT_020_3 file3 Prj1.md:UT_020_3_Prj3")
+    expectTaskPath("UT_020_3_2_file4_Prj3", "/UT_020_3 project Folder/UT_020_3 file4 Prj3.md")
+    devLog("Test PASSED: Get Task Project Path.")
+}
+ 
+async function test_UT_020_3(pmDb: OdaPmDb) {
+    // UT_020_3
+    // Sanity check
+    const ut_020_3_tasks = pmDb.pmTasks.filter(k => {
+        return k.summary.startsWith("UT_020_3")
+    });
+    expect(ut_020_3_tasks, `PmTask with prefix 'UT_020_3' not matched`).to.have.lengthOf(7);
+    testGetTaskProjectPath(pmDb);
+    testTaskProjectLink(pmDb);
+}
+ 
+// make this async so the failing tests won't block the plugin and database initialization process.
+export async function assert(pmDb: OdaPmDb) {
+    devLog("Assert start: on db refreshed...")
+    const projects = pmDb.pmProjects;
+ 
+    const projectIds = projects.map(k => k.internalKey).unique();
+    expect(projectIds, `Project ids are not unique.`).to.have.lengthOf(projects.length);
+    test_UT_020_3(pmDb);
+    testProjectDefinition(projects, pmDb);
+ 
+    devLog("Assert end: on db refreshed...")
+}
+ 
+ +
+
+ + + + + + + + diff --git a/coverage/lcov-report/utils/index.html b/coverage/lcov-report/utils/index.html new file mode 100644 index 0000000..08e8574 --- /dev/null +++ b/coverage/lcov-report/utils/index.html @@ -0,0 +1,116 @@ + + + + + + Code coverage report for utils + + + + + + + + + +
+
+

All files utils

+
+ +
+ 7.01% + Statements + 8/114 +
+ + +
+ 0% + Branches + 0/17 +
+ + +
+ 0% + Functions + 0/29 +
+ + +
+ 7.4% + Lines + 8/108 +
+ + +
+

+ Press n or j to go to the next uncovered block, b, p or k for the previous block. +

+ +
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FileStatementsBranchesFunctionsLines
env-util.ts +
+
7.01%8/1140%0/170%0/297.4%8/108
+
+
+
+ + + + + + + + \ No newline at end of file diff --git a/coverage/lcov.info b/coverage/lcov.info new file mode 100644 index 0000000..ac2968d --- /dev/null +++ b/coverage/lcov.info @@ -0,0 +1,668 @@ +TN: +SF:src/data-model/BaseDatabaseObject.ts +FN:3,(anonymous_0) +FNF:1 +FNH:0 +FNDA:0,(anonymous_0) +DA:1,2 +DA:4,0 +LF:2 +LH:1 +BRF:0 +BRH:0 +end_of_record +TN: +SF:src/data-model/OdaPmProject.ts +FN:21,clearGlobalProjectMap +FN:37,(anonymous_1) +FN:47,(anonymous_2) +FN:52,(anonymous_3) +FN:58,(anonymous_4) +FN:64,(anonymous_5) +FN:75,(anonymous_6) +FN:114,(anonymous_7) +FN:123,(anonymous_8) +FN:130,(anonymous_9) +FN:137,(anonymous_10) +FN:150,(anonymous_11) +FN:157,(anonymous_12) +FNF:13 +FNH:0 +FNDA:0,clearGlobalProjectMap +FNDA:0,(anonymous_1) +FNDA:0,(anonymous_2) +FNDA:0,(anonymous_3) +FNDA:0,(anonymous_4) +FNDA:0,(anonymous_5) +FNDA:0,(anonymous_6) +FNDA:0,(anonymous_7) +FNDA:0,(anonymous_8) +FNDA:0,(anonymous_9) +FNDA:0,(anonymous_10) +FNDA:0,(anonymous_11) +FNDA:0,(anonymous_12) +DA:2,2 +DA:3,2 +DA:4,2 +DA:6,2 +DA:8,2 +DA:9,2 +DA:10,2 +DA:11,2 +DA:12,2 +DA:18,2 +DA:19,2 +DA:21,2 +DA:22,0 +DA:23,0 +DA:29,2 +DA:38,0 +DA:39,0 +DA:40,0 +DA:41,0 +DA:42,0 +DA:43,0 +DA:48,0 +DA:53,0 +DA:54,0 +DA:59,0 +DA:60,0 +DA:66,0 +DA:67,0 +DA:76,0 +DA:77,0 +DA:79,0 +DA:80,0 +DA:82,0 +DA:83,0 +DA:84,0 +DA:85,0 +DA:86,0 +DA:87,0 +DA:89,0 +DA:91,0 +DA:94,0 +DA:96,0 +DA:97,0 +DA:98,0 +DA:100,0 +DA:102,0 +DA:105,0 +DA:106,0 +DA:107,0 +DA:108,0 +DA:109,0 +DA:110,0 +DA:111,0 +DA:115,0 +DA:116,0 +DA:117,0 +DA:119,0 +DA:120,0 +DA:124,0 +DA:125,0 +DA:126,0 +DA:127,0 +DA:131,0 +DA:132,0 +DA:133,0 +DA:134,0 +DA:138,0 +DA:142,0 +DA:151,0 +DA:152,0 +DA:154,0 +DA:158,0 +DA:159,0 +DA:161,0 +LF:74 +LH:13 +BRDA:53,0,0,0 +BRDA:59,1,0,0 +BRDA:66,2,0,0 +BRDA:66,2,1,0 +BRDA:76,3,0,0 +BRDA:85,4,0,0 +BRDA:85,4,1,0 +BRDA:91,5,0,0 +BRDA:96,6,0,0 +BRDA:96,6,1,0 +BRDA:138,7,0,0 +BRDA:138,7,1,0 +BRDA:151,8,0,0 +BRDA:158,9,0,0 +BRF:14 +BRH:0 +end_of_record +TN: +SF:src/data-model/OdaPmStep.ts +FN:8,(anonymous_0) +FN:13,(anonymous_1) +FN:27,getOrCreateStep +FNF:3 +FNH:0 +FNDA:0,(anonymous_0) +FNDA:0,(anonymous_1) +FNDA:0,getOrCreateStep +DA:1,2 +DA:9,0 +DA:10,0 +DA:14,0 +DA:21,2 +DA:27,2 +DA:28,0 +DA:29,0 +DA:30,0 +DA:32,0 +DA:33,0 +DA:34,0 +LF:12 +LH:3 +BRDA:28,0,0,0 +BRDA:29,1,0,0 +BRF:2 +BRH:0 +end_of_record +TN: +SF:src/data-model/OdaPmTask.ts +FN:28,(anonymous_0) +FN:45,(anonymous_1) +FN:50,(anonymous_2) +FN:54,(anonymous_3) +FN:58,(anonymous_4) +FN:70,(anonymous_5) +FN:77,(anonymous_6) +FN:85,(anonymous_7) +FN:89,(anonymous_8) +FN:96,(anonymous_9) +FN:102,(anonymous_10) +FN:104,(anonymous_11) +FN:107,(anonymous_12) +FN:112,(anonymous_13) +FN:116,(anonymous_14) +FN:126,(anonymous_15) +FN:136,(anonymous_16) +FN:141,(anonymous_17) +FN:150,(anonymous_18) +FN:160,(anonymous_19) +FN:171,(anonymous_20) +FN:175,(anonymous_21) +FN:182,(anonymous_22) +FN:184,(anonymous_23) +FN:187,(anonymous_24) +FN:194,(anonymous_25) +FN:195,(anonymous_26) +FNF:27 +FNH:0 +FNDA:0,(anonymous_0) +FNDA:0,(anonymous_1) +FNDA:0,(anonymous_2) +FNDA:0,(anonymous_3) +FNDA:0,(anonymous_4) +FNDA:0,(anonymous_5) +FNDA:0,(anonymous_6) +FNDA:0,(anonymous_7) +FNDA:0,(anonymous_8) +FNDA:0,(anonymous_9) +FNDA:0,(anonymous_10) +FNDA:0,(anonymous_11) +FNDA:0,(anonymous_12) +FNDA:0,(anonymous_13) +FNDA:0,(anonymous_14) +FNDA:0,(anonymous_15) +FNDA:0,(anonymous_16) +FNDA:0,(anonymous_17) +FNDA:0,(anonymous_18) +FNDA:0,(anonymous_19) +FNDA:0,(anonymous_20) +FNDA:0,(anonymous_21) +FNDA:0,(anonymous_22) +FNDA:0,(anonymous_23) +FNDA:0,(anonymous_24) +FNDA:0,(anonymous_25) +FNDA:0,(anonymous_26) +DA:3,2 +DA:13,2 +DA:14,2 +DA:16,2 +DA:29,0 +DA:30,0 +DA:31,0 +DA:32,0 +DA:33,0 +DA:34,0 +DA:35,0 +DA:36,0 +DA:37,0 +DA:38,0 +DA:39,0 +DA:42,0 +DA:46,0 +DA:50,0 +DA:55,0 +DA:59,0 +DA:61,0 +DA:62,0 +DA:63,0 +DA:66,0 +DA:71,0 +DA:78,0 +DA:79,0 +DA:80,0 +DA:82,0 +DA:86,0 +DA:90,0 +DA:91,0 +DA:94,0 +DA:96,0 +DA:97,0 +DA:104,0 +DA:108,0 +DA:109,0 +DA:113,0 +DA:117,0 +DA:118,0 +DA:119,0 +DA:120,0 +DA:123,0 +DA:127,0 +DA:128,0 +DA:129,0 +DA:131,0 +DA:133,0 +DA:137,0 +DA:138,0 +DA:142,0 +DA:144,0 +DA:146,0 +DA:151,0 +DA:152,0 +DA:153,0 +DA:161,0 +DA:162,0 +DA:163,0 +DA:166,0 +DA:172,0 +DA:177,0 +DA:178,0 +DA:184,0 +DA:188,0 +DA:195,0 +LF:67 +LH:4 +BRDA:36,0,0,0 +BRDA:38,1,0,0 +BRDA:59,2,0,0 +BRDA:59,2,1,0 +BRDA:61,3,0,0 +BRDA:61,3,1,0 +BRDA:61,4,0,0 +BRDA:61,4,1,0 +BRDA:62,5,0,0 +BRDA:79,6,0,0 +BRDA:90,7,0,0 +BRDA:91,8,0,0 +BRDA:91,8,1,0 +BRDA:94,9,0,0 +BRDA:94,9,1,0 +BRDA:94,10,0,0 +BRDA:94,10,1,0 +BRDA:97,11,0,0 +BRDA:97,11,1,0 +BRDA:119,12,0,0 +BRDA:128,13,0,0 +BRDA:138,14,0,0 +BRDA:138,14,1,0 +BRDA:138,15,0,0 +BRDA:138,15,1,0 +BRDA:142,16,0,0 +BRDA:142,16,1,0 +BRDA:152,17,0,0 +BRDA:162,18,0,0 +BRDA:177,19,0,0 +BRF:30 +BRH:0 +end_of_record +TN: +SF:src/data-model/OdaProjectTree.ts +FN:12,getProjectByTaskPath +FN:21,(anonymous_1) +FN:25,(anonymous_2) +FN:35,(anonymous_3) +FN:39,(anonymous_4) +FNF:5 +FNH:1 +FNDA:10,getProjectByTaskPath +FNDA:0,(anonymous_1) +FNDA:0,(anonymous_2) +FNDA:0,(anonymous_3) +FNDA:0,(anonymous_4) +DA:4,1 +DA:12,1 +DA:15,10 +DA:16,6 +DA:18,10 +DA:21,1 +DA:23,0 +DA:26,0 +DA:27,0 +DA:28,0 +DA:29,0 +DA:32,0 +DA:36,0 +DA:40,0 +LF:14 +LH:6 +BRF:0 +BRH:0 +end_of_record +TN: +SF:src/data-model/workflow-def.ts +FN:21,initWorkflowTypeTags +FN:29,getWorkflowTypeTags +FN:34,getWorkflowTypeTag +FN:39,isTaskSummaryValid +FN:45,matchTags +FN:50,trimTagsFromTask +FN:73,getWorkflowNameFromRawText +FN:115,factoryTask +FN:126,addTagText +FN:134,removeTagText +FN:142,isTaskSingleLine +FN:153,getProjectTagFromSTask +FN:163,getProjectNameFromTag +FN:171,getProjectPathFromSTask +FNF:14 +FNH:2 +FNDA:0,initWorkflowTypeTags +FNDA:0,getWorkflowTypeTags +FNDA:0,getWorkflowTypeTag +FNDA:0,isTaskSummaryValid +FNDA:4,matchTags +FNDA:0,trimTagsFromTask +FNDA:0,getWorkflowNameFromRawText +FNDA:0,factoryTask +FNDA:1,addTagText +FNDA:0,removeTagText +FNDA:0,isTaskSingleLine +FNDA:0,getProjectTagFromSTask +FNDA:0,getProjectNameFromTag +FNDA:0,getProjectPathFromSTask +DA:2,2 +DA:3,2 +DA:5,2 +DA:6,2 +DA:7,2 +DA:8,2 +DA:9,2 +DA:10,2 +DA:12,2 +DA:18,2 +DA:22,0 +DA:23,0 +DA:24,0 +DA:29,2 +DA:30,0 +DA:31,0 +DA:34,2 +DA:35,0 +DA:36,0 +DA:39,2 +DA:41,0 +DA:42,0 +DA:45,2 +DA:46,4 +DA:47,4 +DA:50,2 +DA:52,0 +DA:54,0 +DA:55,0 +DA:56,0 +DA:57,0 +DA:59,0 +DA:65,2 +DA:67,2 +DA:73,2 +DA:74,0 +DA:75,0 +DA:115,2 +DA:116,0 +DA:126,2 +DA:128,1 +DA:130,1 +DA:134,2 +DA:135,0 +DA:142,2 +DA:143,0 +DA:144,0 +DA:145,0 +DA:147,0 +DA:149,0 +DA:153,2 +DA:155,0 +DA:156,0 +DA:157,0 +DA:160,0 +DA:163,2 +DA:164,0 +DA:165,0 +DA:171,2 +DA:172,0 +DA:173,0 +DA:175,0 +DA:177,0 +LF:63 +LH:29 +BRDA:22,0,0,0 +BRDA:42,1,0,0 +BRDA:42,1,1,0 +BRDA:55,2,0,0 +BRDA:75,3,0,0 +BRDA:75,3,1,0 +BRDA:130,4,0,0 +BRDA:130,4,1,1 +BRDA:143,5,0,0 +BRDA:144,6,0,0 +BRDA:156,7,0,0 +BRDA:171,8,0,0 +BRDA:173,9,0,0 +BRDA:173,9,1,0 +BRDA:175,10,0,0 +BRDA:175,10,1,0 +BRDA:177,11,0,0 +BRDA:177,11,1,0 +BRF:18 +BRH:1 +end_of_record +TN: +SF:src/utils/env-util.ts +FN:8,isProduction +FN:12,devLog +FN:17,devAssert +FN:23,assertOnPluginInit +FN:29,expect_project +FN:38,expectTaskAbstract +FN:46,testProjectDefinition +FN:47,(anonymous_8) +FN:54,(anonymous_9) +FN:59,(anonymous_10) +FN:60,(anonymous_11) +FN:65,(anonymous_12) +FN:66,(anonymous_13) +FN:71,(anonymous_14) +FN:80,(anonymous_15) +FN:90,(anonymous_16) +FN:99,(anonymous_17) +FN:109,(anonymous_18) +FN:118,(anonymous_19) +FN:128,testTaskProjectLink +FN:130,expectTaskInProject +FN:131,(anonymous_23) +FN:146,testGetTaskProjectPath +FN:147,expectTaskPath +FN:148,(anonymous_27) +FN:164,test_UT_020_3 +FN:167,(anonymous_30) +FN:176,assert +FN:180,(anonymous_33) +FNF:29 +FNH:0 +FNDA:0,isProduction +FNDA:0,devLog +FNDA:0,devAssert +FNDA:0,assertOnPluginInit +FNDA:0,expect_project +FNDA:0,expectTaskAbstract +FNDA:0,testProjectDefinition +FNDA:0,(anonymous_8) +FNDA:0,(anonymous_9) +FNDA:0,(anonymous_10) +FNDA:0,(anonymous_11) +FNDA:0,(anonymous_12) +FNDA:0,(anonymous_13) +FNDA:0,(anonymous_14) +FNDA:0,(anonymous_15) +FNDA:0,(anonymous_16) +FNDA:0,(anonymous_17) +FNDA:0,(anonymous_18) +FNDA:0,(anonymous_19) +FNDA:0,testTaskProjectLink +FNDA:0,expectTaskInProject +FNDA:0,(anonymous_23) +FNDA:0,testGetTaskProjectPath +FNDA:0,expectTaskPath +FNDA:0,(anonymous_27) +FNDA:0,test_UT_020_3 +FNDA:0,(anonymous_30) +FNDA:0,assert +FNDA:0,(anonymous_33) +DA:1,2 +DA:3,2 +DA:5,2 +DA:8,2 +DA:9,0 +DA:12,2 +DA:13,0 +DA:14,0 +DA:17,2 +DA:18,0 +DA:19,0 +DA:23,2 +DA:24,0 +DA:25,0 +DA:26,0 +DA:30,0 +DA:31,0 +DA:32,0 +DA:33,0 +DA:34,0 +DA:39,0 +DA:40,0 +DA:41,0 +DA:42,0 +DA:47,0 +DA:48,0 +DA:50,0 +DA:51,0 +DA:54,0 +DA:55,0 +DA:57,0 +DA:59,0 +DA:60,0 +DA:62,0 +DA:63,0 +DA:65,0 +DA:66,0 +DA:68,0 +DA:69,0 +DA:71,0 +DA:72,0 +DA:74,0 +DA:75,0 +DA:76,0 +DA:77,0 +DA:80,0 +DA:81,0 +DA:83,0 +DA:84,0 +DA:85,0 +DA:86,0 +DA:90,0 +DA:91,0 +DA:93,0 +DA:94,0 +DA:95,0 +DA:96,0 +DA:99,0 +DA:100,0 +DA:102,0 +DA:103,0 +DA:104,0 +DA:105,0 +DA:109,0 +DA:110,0 +DA:112,0 +DA:113,0 +DA:114,0 +DA:115,0 +DA:118,0 +DA:119,0 +DA:121,0 +DA:122,0 +DA:123,0 +DA:124,0 +DA:131,0 +DA:132,0 +DA:136,0 +DA:137,0 +DA:138,0 +DA:139,0 +DA:140,0 +DA:141,0 +DA:142,0 +DA:143,0 +DA:148,0 +DA:149,0 +DA:154,0 +DA:155,0 +DA:156,0 +DA:157,0 +DA:158,0 +DA:159,0 +DA:160,0 +DA:161,0 +DA:167,0 +DA:168,0 +DA:170,0 +DA:171,0 +DA:172,0 +DA:176,2 +DA:177,0 +DA:178,0 +DA:180,0 +DA:181,0 +DA:182,0 +DA:183,0 +DA:185,0 +LF:108 +LH:8 +BRDA:13,0,0,0 +BRDA:18,1,0,0 +BRDA:24,2,0,0 +BRDA:31,3,0,0 +BRDA:33,4,0,0 +BRDA:41,5,0,0 +BRDA:48,6,0,0 +BRDA:48,6,1,0 +BRDA:48,6,2,0 +BRDA:55,7,0,0 +BRDA:55,7,1,0 +BRDA:76,8,0,0 +BRDA:85,9,0,0 +BRDA:95,10,0,0 +BRDA:104,11,0,0 +BRDA:114,12,0,0 +BRDA:123,13,0,0 +BRF:17 +BRH:0 +end_of_record diff --git a/manifest.json b/manifest.json index 74c4be7..258c82b 100644 --- a/manifest.json +++ b/manifest.json @@ -7,5 +7,5 @@ "authorUrl": "https://github.com/Odaimoko", "fundingUrl": "https://ko-fi.com/odaimoko", "isDesktopOnly": true, - "version": "0.1.5" + "version": "0.2.0" } \ No newline at end of file diff --git a/package.json b/package.json index 9de049a..4488186 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "tag-project", - "version": "0.1.5", + "version": "0.2.0", "description": "This is a sample plugin for Obsidian (https://obsidian.md)", "main": "main.js", "scripts": { diff --git a/versions.json b/versions.json index 4937714..5009ce7 100644 --- a/versions.json +++ b/versions.json @@ -5,5 +5,6 @@ "0.1.2": "1.4.13", "0.1.3": "1.4.13", "0.1.4": "1.4.13", - "0.1.5": "1.4.13" + "0.1.5": "1.4.13", + "0.2.0": "1.4.13" } \ No newline at end of file