diff --git a/coverage/clover.xml b/coverage/clover.xml index d40a918..a4c8410 100644 --- a/coverage/clover.xml +++ b/coverage/clover.xml @@ -1,102 +1,78 @@ - - - + + + - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - + + - - - + + + - - + - - - - - - - + + + + - - - - - - - - - - - + + + + + + - - - - - - + + + - - - - - - - - - - - - - - - - - - - - + + + + + + + + diff --git a/coverage/coverage-final.json b/coverage/coverage-final.json index e3276b6..cdaff77 100644 --- a/coverage/coverage-final.json +++ b/coverage/coverage-final.json @@ -1,9 +1,6 @@ -{"/Users/joaomantovani/projects/forceupdate/forceupdate-reactnative/src/index.tsx": {"path":"/Users/joaomantovani/projects/forceupdate/forceupdate-reactnative/src/index.tsx","statementMap":{"0":{"start":{"line":28,"column":51},"end":{"line":131,"column":1}},"1":{"start":{"line":36,"column":42},"end":{"line":36,"column":77}},"2":{"start":{"line":37,"column":36},"end":{"line":37,"column":65}},"3":{"start":{"line":39,"column":4},"end":{"line":39,"column":54}},"4":{"start":{"line":49,"column":6},"end":{"line":49,"column":11}},"5":{"start":{"line":51,"column":2},"end":{"line":94,"column":5}},"6":{"start":{"line":52,"column":4},"end":{"line":52,"column":23}},"7":{"start":{"line":54,"column":4},"end":{"line":56,"column":5}},"8":{"start":{"line":55,"column":6},"end":{"line":55,"column":23}},"9":{"start":{"line":58,"column":4},"end":{"line":84,"column":9}},"10":{"start":{"line":65,"column":8},"end":{"line":65,"column":33}},"11":{"start":{"line":67,"column":8},"end":{"line":69,"column":9}},"12":{"start":{"line":68,"column":10},"end":{"line":68,"column":42}},"13":{"start":{"line":72,"column":8},"end":{"line":72,"column":39}},"14":{"start":{"line":74,"column":8},"end":{"line":76,"column":9}},"15":{"start":{"line":75,"column":10},"end":{"line":75,"column":45}},"16":{"start":{"line":79,"column":8},"end":{"line":79,"column":28}},"17":{"start":{"line":81,"column":8},"end":{"line":83,"column":9}},"18":{"start":{"line":82,"column":10},"end":{"line":82,"column":25}},"19":{"start":{"line":96,"column":2},"end":{"line":98,"column":3}},"20":{"start":{"line":97,"column":4},"end":{"line":97,"column":32}},"21":{"start":{"line":100,"column":2},"end":{"line":102,"column":3}},"22":{"start":{"line":101,"column":4},"end":{"line":101,"column":58}},"23":{"start":{"line":104,"column":2},"end":{"line":114,"column":3}},"24":{"start":{"line":105,"column":4},"end":{"line":113,"column":6}},"25":{"start":{"line":116,"column":2},"end":{"line":128,"column":3}},"26":{"start":{"line":117,"column":4},"end":{"line":127,"column":6}},"27":{"start":{"line":130,"column":2},"end":{"line":130,"column":25}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":28,"column":51},"end":{"line":28,"column":52}},"loc":{"start":{"line":35,"column":20},"end":{"line":131,"column":1}},"line":35},"1":{"name":"(anonymous_1)","decl":{"start":{"line":51,"column":18},"end":{"line":51,"column":19}},"loc":{"start":{"line":51,"column":24},"end":{"line":85,"column":3}},"line":51},"2":{"name":"(anonymous_2)","decl":{"start":{"line":64,"column":12},"end":{"line":64,"column":13}},"loc":{"start":{"line":64,"column":26},"end":{"line":70,"column":7}},"line":64},"3":{"name":"(anonymous_3)","decl":{"start":{"line":71,"column":13},"end":{"line":71,"column":14}},"loc":{"start":{"line":71,"column":24},"end":{"line":77,"column":7}},"line":71},"4":{"name":"(anonymous_4)","decl":{"start":{"line":78,"column":15},"end":{"line":78,"column":16}},"loc":{"start":{"line":78,"column":21},"end":{"line":84,"column":7}},"line":78}},"branchMap":{"0":{"loc":{"start":{"line":54,"column":4},"end":{"line":56,"column":5}},"type":"if","locations":[{"start":{"line":54,"column":4},"end":{"line":56,"column":5}},{"start":{},"end":{}}],"line":54},"1":{"loc":{"start":{"line":67,"column":8},"end":{"line":69,"column":9}},"type":"if","locations":[{"start":{"line":67,"column":8},"end":{"line":69,"column":9}},{"start":{},"end":{}}],"line":67},"2":{"loc":{"start":{"line":74,"column":8},"end":{"line":76,"column":9}},"type":"if","locations":[{"start":{"line":74,"column":8},"end":{"line":76,"column":9}},{"start":{},"end":{}}],"line":74},"3":{"loc":{"start":{"line":81,"column":8},"end":{"line":83,"column":9}},"type":"if","locations":[{"start":{"line":81,"column":8},"end":{"line":83,"column":9}},{"start":{},"end":{}}],"line":81},"4":{"loc":{"start":{"line":96,"column":2},"end":{"line":98,"column":3}},"type":"if","locations":[{"start":{"line":96,"column":2},"end":{"line":98,"column":3}},{"start":{},"end":{}}],"line":96},"5":{"loc":{"start":{"line":100,"column":2},"end":{"line":102,"column":3}},"type":"if","locations":[{"start":{"line":100,"column":2},"end":{"line":102,"column":3}},{"start":{},"end":{}}],"line":100},"6":{"loc":{"start":{"line":104,"column":2},"end":{"line":114,"column":3}},"type":"if","locations":[{"start":{"line":104,"column":2},"end":{"line":114,"column":3}},{"start":{},"end":{}}],"line":104},"7":{"loc":{"start":{"line":111,"column":23},"end":{"line":111,"column":59}},"type":"cond-expr","locations":[{"start":{"line":111,"column":39},"end":{"line":111,"column":52}},{"start":{"line":111,"column":55},"end":{"line":111,"column":59}}],"line":111},"8":{"loc":{"start":{"line":116,"column":2},"end":{"line":128,"column":3}},"type":"if","locations":[{"start":{"line":116,"column":2},"end":{"line":128,"column":3}},{"start":{},"end":{}}],"line":116},"9":{"loc":{"start":{"line":124,"column":18},"end":{"line":124,"column":44}},"type":"cond-expr","locations":[{"start":{"line":124,"column":29},"end":{"line":124,"column":37}},{"start":{"line":124,"column":40},"end":{"line":124,"column":44}}],"line":124},"10":{"loc":{"start":{"line":125,"column":19},"end":{"line":125,"column":47}},"type":"cond-expr","locations":[{"start":{"line":125,"column":31},"end":{"line":125,"column":40}},{"start":{"line":125,"column":43},"end":{"line":125,"column":47}}],"line":125}},"s":{"0":1,"1":64,"2":64,"3":64,"4":64,"5":64,"6":21,"7":21,"8":20,"9":21,"10":17,"11":17,"12":16,"13":5,"14":5,"15":4,"16":21,"17":21,"18":20,"19":64,"20":43,"21":21,"22":5,"23":16,"24":3,"25":13,"26":5,"27":8},"f":{"0":64,"1":21,"2":17,"3":5,"4":21},"b":{"0":[20,1],"1":[16,1],"2":[4,1],"3":[20,1],"4":[43,21],"5":[5,16],"6":[3,13],"7":[1,2],"8":[5,8],"9":[3,2],"10":[3,2]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"6a093d7d49150109a81830064bcc0338c3579c58"} -,"/Users/joaomantovani/projects/forceupdate/forceupdate-reactnative/src/components/Center.tsx": {"path":"/Users/joaomantovani/projects/forceupdate/forceupdate-reactnative/src/components/Center.tsx","statementMap":{"0":{"start":{"line":8,"column":50},"end":{"line":14,"column":1}},"1":{"start":{"line":9,"column":2},"end":{"line":13,"column":4}},"2":{"start":{"line":16,"column":15},"end":{"line":22,"column":2}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":8,"column":50},"end":{"line":8,"column":51}},"loc":{"start":{"line":8,"column":68},"end":{"line":14,"column":1}},"line":8}},"branchMap":{},"s":{"0":4,"1":52,"2":4},"f":{"0":52},"b":{},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"55601c99d77996dd7ef6f5525691814dc1a9767b"} -,"/Users/joaomantovani/projects/forceupdate/forceupdate-reactnative/src/components/CustomModal.tsx": {"path":"/Users/joaomantovani/projects/forceupdate/forceupdate-reactnative/src/components/CustomModal.tsx","statementMap":{"0":{"start":{"line":24,"column":20},"end":{"line":24,"column":50}},"1":{"start":{"line":26,"column":45},"end":{"line":54,"column":1}},"2":{"start":{"line":27,"column":2},"end":{"line":53,"column":4}},"3":{"start":{"line":43,"column":14},"end":{"line":47,"column":16}},"4":{"start":{"line":56,"column":15},"end":{"line":93,"column":2}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":26,"column":45},"end":{"line":26,"column":46}},"loc":{"start":{"line":26,"column":78},"end":{"line":54,"column":1}},"line":26},"1":{"name":"(anonymous_1)","decl":{"start":{"line":42,"column":25},"end":{"line":42,"column":26}},"loc":{"start":{"line":43,"column":14},"end":{"line":47,"column":16}},"line":43}},"branchMap":{},"s":{"0":3,"1":3,"2":8,"3":10,"4":3},"f":{"0":8,"1":10},"b":{},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"4363f453aca297a2beacf7246bfe1c160a7e1a01"} -,"/Users/joaomantovani/projects/forceupdate/forceupdate-reactnative/src/components/ErrorComponent.tsx": {"path":"/Users/joaomantovani/projects/forceupdate/forceupdate-reactnative/src/components/ErrorComponent.tsx","statementMap":{"0":{"start":{"line":10,"column":2},"end":{"line":14,"column":4}}},"fnMap":{"0":{"name":"ErrorComponent","decl":{"start":{"line":5,"column":24},"end":{"line":5,"column":38}},"loc":{"start":{"line":9,"column":3},"end":{"line":15,"column":1}},"line":9}},"branchMap":{},"s":{"0":6},"f":{"0":6},"b":{},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"b0ec5357db7ddedc48f67ea856dca48e3ffc614d"} -,"/Users/joaomantovani/projects/forceupdate/forceupdate-reactnative/src/components/ForceUpdateModal.tsx": {"path":"/Users/joaomantovani/projects/forceupdate/forceupdate-reactnative/src/components/ForceUpdateModal.tsx","statementMap":{"0":{"start":{"line":13,"column":61},"end":{"line":39,"column":1}},"1":{"start":{"line":20,"column":23},"end":{"line":23,"column":32}},"2":{"start":{"line":21,"column":4},"end":{"line":21,"column":31}},"3":{"start":{"line":22,"column":4},"end":{"line":22,"column":37}},"4":{"start":{"line":25,"column":2},"end":{"line":38,"column":4}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":13,"column":61},"end":{"line":13,"column":62}},"loc":{"start":{"line":19,"column":6},"end":{"line":39,"column":1}},"line":19},"1":{"name":"(anonymous_1)","decl":{"start":{"line":20,"column":35},"end":{"line":20,"column":36}},"loc":{"start":{"line":20,"column":41},"end":{"line":23,"column":3}},"line":20}},"branchMap":{"0":{"loc":{"start":{"line":22,"column":4},"end":{"line":22,"column":36}},"type":"binary-expr","locations":[{"start":{"line":22,"column":4},"end":{"line":22,"column":17}},{"start":{"line":22,"column":21},"end":{"line":22,"column":36}}],"line":22}},"s":{"0":2,"1":6,"2":3,"3":3,"4":6},"f":{"0":6,"1":3},"b":{"0":[3,3]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"72d271925543ae064f859813488e406405a38752"} -,"/Users/joaomantovani/projects/forceupdate/forceupdate-reactnative/src/components/Loading.tsx": {"path":"/Users/joaomantovani/projects/forceupdate/forceupdate-reactnative/src/components/Loading.tsx","statementMap":{"0":{"start":{"line":5,"column":32},"end":{"line":17,"column":1}},"1":{"start":{"line":6,"column":2},"end":{"line":16,"column":4}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":5,"column":32},"end":{"line":5,"column":33}},"loc":{"start":{"line":5,"column":38},"end":{"line":17,"column":1}},"line":5}},"branchMap":{},"s":{"0":2,"1":45},"f":{"0":45},"b":{},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"ba7aaa030a8d1079f685e716f3b05ad56c7dc6ec"} -,"/Users/joaomantovani/projects/forceupdate/forceupdate-reactnative/src/components/UpdateModal.tsx": {"path":"/Users/joaomantovani/projects/forceupdate/forceupdate-reactnative/src/components/UpdateModal.tsx","statementMap":{"0":{"start":{"line":14,"column":51},"end":{"line":62,"column":1}},"1":{"start":{"line":23,"column":23},"end":{"line":26,"column":27}},"2":{"start":{"line":24,"column":4},"end":{"line":24,"column":27}},"3":{"start":{"line":25,"column":4},"end":{"line":25,"column":31}},"4":{"start":{"line":28,"column":21},"end":{"line":30,"column":17}},"5":{"start":{"line":29,"column":4},"end":{"line":29,"column":29}},"6":{"start":{"line":32,"column":2},"end":{"line":59,"column":5}},"7":{"start":{"line":33,"column":4},"end":{"line":51,"column":6}},"8":{"start":{"line":61,"column":2},"end":{"line":61,"column":14}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":14,"column":51},"end":{"line":14,"column":52}},"loc":{"start":{"line":22,"column":6},"end":{"line":62,"column":1}},"line":22},"1":{"name":"(anonymous_1)","decl":{"start":{"line":23,"column":35},"end":{"line":23,"column":36}},"loc":{"start":{"line":23,"column":41},"end":{"line":26,"column":3}},"line":23},"2":{"name":"(anonymous_2)","decl":{"start":{"line":28,"column":33},"end":{"line":28,"column":34}},"loc":{"start":{"line":28,"column":39},"end":{"line":30,"column":3}},"line":28},"3":{"name":"(anonymous_3)","decl":{"start":{"line":32,"column":18},"end":{"line":32,"column":19}},"loc":{"start":{"line":32,"column":24},"end":{"line":52,"column":3}},"line":32}},"branchMap":{"0":{"loc":{"start":{"line":24,"column":4},"end":{"line":24,"column":26}},"type":"binary-expr","locations":[{"start":{"line":24,"column":4},"end":{"line":24,"column":12}},{"start":{"line":24,"column":16},"end":{"line":24,"column":26}}],"line":24},"1":{"loc":{"start":{"line":29,"column":4},"end":{"line":29,"column":28}},"type":"binary-expr","locations":[{"start":{"line":29,"column":4},"end":{"line":29,"column":13}},{"start":{"line":29,"column":17},"end":{"line":29,"column":28}}],"line":29}},"s":{"0":2,"1":7,"2":1,"3":1,"4":7,"5":1,"6":7,"7":7,"8":7},"f":{"0":7,"1":1,"2":1,"3":7},"b":{"0":[1,1],"1":[1,1]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"34c635e8393f3546ee96e356f09b1999d24555ae"} -,"/Users/joaomantovani/projects/forceupdate/forceupdate-reactnative/src/services/fetchdata.ts": {"path":"/Users/joaomantovani/projects/forceupdate/forceupdate-reactnative/src/services/fetchdata.ts","statementMap":{"0":{"start":{"line":24,"column":17},"end":{"line":24,"column":54}},"1":{"start":{"line":32,"column":2},"end":{"line":62,"column":3}},"2":{"start":{"line":33,"column":21},"end":{"line":45,"column":6}},"3":{"start":{"line":47,"column":4},"end":{"line":56,"column":5}},"4":{"start":{"line":48,"column":24},"end":{"line":48,"column":54}},"5":{"start":{"line":49,"column":6},"end":{"line":55,"column":7}},"6":{"start":{"line":50,"column":8},"end":{"line":52,"column":11}},"7":{"start":{"line":54,"column":8},"end":{"line":54,"column":67}},"8":{"start":{"line":58,"column":40},"end":{"line":58,"column":61}},"9":{"start":{"line":59,"column":4},"end":{"line":59,"column":16}},"10":{"start":{"line":61,"column":4},"end":{"line":61,"column":16}}},"fnMap":{"0":{"name":"fetchData","decl":{"start":{"line":26,"column":22},"end":{"line":26,"column":31}},"loc":{"start":{"line":31,"column":47},"end":{"line":63,"column":1}},"line":31}},"branchMap":{"0":{"loc":{"start":{"line":47,"column":4},"end":{"line":56,"column":5}},"type":"if","locations":[{"start":{"line":47,"column":4},"end":{"line":56,"column":5}},{"start":{},"end":{}}],"line":47},"1":{"loc":{"start":{"line":54,"column":24},"end":{"line":54,"column":65}},"type":"binary-expr","locations":[{"start":{"line":54,"column":24},"end":{"line":54,"column":44}},{"start":{"line":54,"column":48},"end":{"line":54,"column":65}}],"line":54}},"s":{"0":1,"1":2,"2":2,"3":2,"4":1,"5":1,"6":1,"7":1,"8":1,"9":1,"10":1},"f":{"0":2},"b":{"0":[1,1],"1":[1,1]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"59e4b2e1a81089795be07fe1e6b4c3f6dc21abd3"} +{"/Users/joaomantovani/projects/forceupdate/forceupdate-reactnative/src/index.tsx": {"path":"/Users/joaomantovani/projects/forceupdate/forceupdate-reactnative/src/index.tsx","statementMap":{"0":{"start":{"line":29,"column":51},"end":{"line":139,"column":1}},"1":{"start":{"line":38,"column":42},"end":{"line":38,"column":77}},"2":{"start":{"line":39,"column":36},"end":{"line":39,"column":65}},"3":{"start":{"line":41,"column":4},"end":{"line":41,"column":54}},"4":{"start":{"line":51,"column":6},"end":{"line":51,"column":11}},"5":{"start":{"line":53,"column":2},"end":{"line":96,"column":5}},"6":{"start":{"line":54,"column":4},"end":{"line":54,"column":23}},"7":{"start":{"line":56,"column":4},"end":{"line":58,"column":5}},"8":{"start":{"line":57,"column":6},"end":{"line":57,"column":23}},"9":{"start":{"line":60,"column":4},"end":{"line":86,"column":9}},"10":{"start":{"line":67,"column":8},"end":{"line":67,"column":33}},"11":{"start":{"line":69,"column":8},"end":{"line":71,"column":9}},"12":{"start":{"line":70,"column":10},"end":{"line":70,"column":42}},"13":{"start":{"line":74,"column":8},"end":{"line":74,"column":39}},"14":{"start":{"line":76,"column":8},"end":{"line":78,"column":9}},"15":{"start":{"line":77,"column":10},"end":{"line":77,"column":45}},"16":{"start":{"line":81,"column":8},"end":{"line":81,"column":28}},"17":{"start":{"line":83,"column":8},"end":{"line":85,"column":9}},"18":{"start":{"line":84,"column":10},"end":{"line":84,"column":25}},"19":{"start":{"line":98,"column":2},"end":{"line":100,"column":3}},"20":{"start":{"line":99,"column":4},"end":{"line":99,"column":32}},"21":{"start":{"line":102,"column":2},"end":{"line":104,"column":3}},"22":{"start":{"line":103,"column":4},"end":{"line":103,"column":58}},"23":{"start":{"line":106,"column":2},"end":{"line":119,"column":3}},"24":{"start":{"line":107,"column":4},"end":{"line":118,"column":6}},"25":{"start":{"line":121,"column":2},"end":{"line":136,"column":3}},"26":{"start":{"line":122,"column":4},"end":{"line":135,"column":6}},"27":{"start":{"line":138,"column":2},"end":{"line":138,"column":25}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":29,"column":51},"end":{"line":29,"column":52}},"loc":{"start":{"line":37,"column":20},"end":{"line":139,"column":1}},"line":37},"1":{"name":"(anonymous_1)","decl":{"start":{"line":53,"column":18},"end":{"line":53,"column":19}},"loc":{"start":{"line":53,"column":24},"end":{"line":87,"column":3}},"line":53},"2":{"name":"(anonymous_2)","decl":{"start":{"line":66,"column":12},"end":{"line":66,"column":13}},"loc":{"start":{"line":66,"column":26},"end":{"line":72,"column":7}},"line":66},"3":{"name":"(anonymous_3)","decl":{"start":{"line":73,"column":13},"end":{"line":73,"column":14}},"loc":{"start":{"line":73,"column":24},"end":{"line":79,"column":7}},"line":73},"4":{"name":"(anonymous_4)","decl":{"start":{"line":80,"column":15},"end":{"line":80,"column":16}},"loc":{"start":{"line":80,"column":21},"end":{"line":86,"column":7}},"line":80}},"branchMap":{"0":{"loc":{"start":{"line":35,"column":2},"end":{"line":35,"column":26}},"type":"default-arg","locations":[{"start":{"line":35,"column":22},"end":{"line":35,"column":26}}],"line":35},"1":{"loc":{"start":{"line":56,"column":4},"end":{"line":58,"column":5}},"type":"if","locations":[{"start":{"line":56,"column":4},"end":{"line":58,"column":5}},{"start":{},"end":{}}],"line":56},"2":{"loc":{"start":{"line":69,"column":8},"end":{"line":71,"column":9}},"type":"if","locations":[{"start":{"line":69,"column":8},"end":{"line":71,"column":9}},{"start":{},"end":{}}],"line":69},"3":{"loc":{"start":{"line":76,"column":8},"end":{"line":78,"column":9}},"type":"if","locations":[{"start":{"line":76,"column":8},"end":{"line":78,"column":9}},{"start":{},"end":{}}],"line":76},"4":{"loc":{"start":{"line":83,"column":8},"end":{"line":85,"column":9}},"type":"if","locations":[{"start":{"line":83,"column":8},"end":{"line":85,"column":9}},{"start":{},"end":{}}],"line":83},"5":{"loc":{"start":{"line":98,"column":2},"end":{"line":100,"column":3}},"type":"if","locations":[{"start":{"line":98,"column":2},"end":{"line":100,"column":3}},{"start":{},"end":{}}],"line":98},"6":{"loc":{"start":{"line":102,"column":2},"end":{"line":104,"column":3}},"type":"if","locations":[{"start":{"line":102,"column":2},"end":{"line":104,"column":3}},{"start":{},"end":{}}],"line":102},"7":{"loc":{"start":{"line":106,"column":2},"end":{"line":119,"column":3}},"type":"if","locations":[{"start":{"line":106,"column":2},"end":{"line":119,"column":3}},{"start":{},"end":{}}],"line":106},"8":{"loc":{"start":{"line":113,"column":23},"end":{"line":113,"column":59}},"type":"cond-expr","locations":[{"start":{"line":113,"column":39},"end":{"line":113,"column":52}},{"start":{"line":113,"column":55},"end":{"line":113,"column":59}}],"line":113},"9":{"loc":{"start":{"line":121,"column":2},"end":{"line":136,"column":3}},"type":"if","locations":[{"start":{"line":121,"column":2},"end":{"line":136,"column":3}},{"start":{},"end":{}}],"line":121},"10":{"loc":{"start":{"line":129,"column":18},"end":{"line":129,"column":44}},"type":"cond-expr","locations":[{"start":{"line":129,"column":29},"end":{"line":129,"column":37}},{"start":{"line":129,"column":40},"end":{"line":129,"column":44}}],"line":129},"11":{"loc":{"start":{"line":130,"column":19},"end":{"line":130,"column":47}},"type":"cond-expr","locations":[{"start":{"line":130,"column":31},"end":{"line":130,"column":40}},{"start":{"line":130,"column":43},"end":{"line":130,"column":47}}],"line":130}},"s":{"0":1,"1":73,"2":73,"3":73,"4":73,"5":73,"6":24,"7":24,"8":23,"9":24,"10":20,"11":20,"12":19,"13":5,"14":5,"15":4,"16":24,"17":24,"18":23,"19":73,"20":49,"21":24,"22":5,"23":19,"24":4,"25":15,"26":7,"27":8},"f":{"0":73,"1":24,"2":20,"3":5,"4":24},"b":{"0":[67],"1":[23,1],"2":[19,1],"3":[4,1],"4":[23,1],"5":[49,24],"6":[5,19],"7":[4,15],"8":[2,2],"9":[7,8],"10":[5,2],"11":[3,4]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"4d63903f8288a44b3bbec970e732a679c04fd4f7"} +,"/Users/joaomantovani/projects/forceupdate/forceupdate-reactnative/src/components/AppBackgroundView.tsx": {"path":"/Users/joaomantovani/projects/forceupdate/forceupdate-reactnative/src/components/AppBackgroundView.tsx","statementMap":{"0":{"start":{"line":9,"column":67},"end":{"line":17,"column":1}},"1":{"start":{"line":12,"column":2},"end":{"line":16,"column":4}},"2":{"start":{"line":19,"column":15},"end":{"line":23,"column":2}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":9,"column":67},"end":{"line":9,"column":68}},"loc":{"start":{"line":11,"column":6},"end":{"line":17,"column":1}},"line":11}},"branchMap":{},"s":{"0":5,"1":18,"2":5},"f":{"0":18},"b":{},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"594f996d9acc5d6ccaf4c6f241220e3b9a361026"} +,"/Users/joaomantovani/projects/forceupdate/forceupdate-reactnative/src/components/CustomModal.tsx": {"path":"/Users/joaomantovani/projects/forceupdate/forceupdate-reactnative/src/components/CustomModal.tsx","statementMap":{"0":{"start":{"line":26,"column":20},"end":{"line":26,"column":50}},"1":{"start":{"line":28,"column":45},"end":{"line":64,"column":1}},"2":{"start":{"line":34,"column":2},"end":{"line":63,"column":4}},"3":{"start":{"line":52,"column":16},"end":{"line":56,"column":18}},"4":{"start":{"line":66,"column":15},"end":{"line":106,"column":2}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":28,"column":45},"end":{"line":28,"column":46}},"loc":{"start":{"line":33,"column":6},"end":{"line":64,"column":1}},"line":33},"1":{"name":"(anonymous_1)","decl":{"start":{"line":51,"column":27},"end":{"line":51,"column":28}},"loc":{"start":{"line":52,"column":16},"end":{"line":56,"column":18}},"line":52}},"branchMap":{"0":{"loc":{"start":{"line":36,"column":7},"end":{"line":36,"column":68}},"type":"binary-expr","locations":[{"start":{"line":36,"column":7},"end":{"line":36,"column":15}},{"start":{"line":36,"column":19},"end":{"line":36,"column":68}}],"line":36}},"s":{"0":3,"1":3,"2":11,"3":13,"4":3},"f":{"0":11,"1":13},"b":{"0":[11,7]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"a18a76612324c3534a9e6dfd3e2c0056467ab0cb"} +,"/Users/joaomantovani/projects/forceupdate/forceupdate-reactnative/src/components/ForceUpdateModal.tsx": {"path":"/Users/joaomantovani/projects/forceupdate/forceupdate-reactnative/src/components/ForceUpdateModal.tsx","statementMap":{"0":{"start":{"line":15,"column":61},"end":{"line":45,"column":1}},"1":{"start":{"line":24,"column":23},"end":{"line":27,"column":32}},"2":{"start":{"line":25,"column":4},"end":{"line":25,"column":31}},"3":{"start":{"line":26,"column":4},"end":{"line":26,"column":37}},"4":{"start":{"line":29,"column":2},"end":{"line":44,"column":4}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":15,"column":61},"end":{"line":15,"column":62}},"loc":{"start":{"line":23,"column":6},"end":{"line":45,"column":1}},"line":23},"1":{"name":"(anonymous_1)","decl":{"start":{"line":24,"column":35},"end":{"line":24,"column":36}},"loc":{"start":{"line":24,"column":41},"end":{"line":27,"column":3}},"line":24}},"branchMap":{"0":{"loc":{"start":{"line":26,"column":4},"end":{"line":26,"column":36}},"type":"binary-expr","locations":[{"start":{"line":26,"column":4},"end":{"line":26,"column":17}},{"start":{"line":26,"column":21},"end":{"line":26,"column":36}}],"line":26},"1":{"loc":{"start":{"line":42,"column":7},"end":{"line":42,"column":42}},"type":"cond-expr","locations":[{"start":{"line":42,"column":27},"end":{"line":42,"column":35}},{"start":{"line":42,"column":38},"end":{"line":42,"column":42}}],"line":42}},"s":{"0":2,"1":9,"2":3,"3":3,"4":9},"f":{"0":9,"1":3},"b":{"0":[3,3],"1":[7,2]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"b7daa6f077548f24fd108ce8806d4ece827b68a9"} +,"/Users/joaomantovani/projects/forceupdate/forceupdate-reactnative/src/components/UpdateModal.tsx": {"path":"/Users/joaomantovani/projects/forceupdate/forceupdate-reactnative/src/components/UpdateModal.tsx","statementMap":{"0":{"start":{"line":17,"column":51},"end":{"line":71,"column":1}},"1":{"start":{"line":28,"column":23},"end":{"line":31,"column":27}},"2":{"start":{"line":29,"column":4},"end":{"line":29,"column":27}},"3":{"start":{"line":30,"column":4},"end":{"line":30,"column":31}},"4":{"start":{"line":33,"column":21},"end":{"line":35,"column":17}},"5":{"start":{"line":34,"column":4},"end":{"line":34,"column":29}},"6":{"start":{"line":37,"column":2},"end":{"line":64,"column":5}},"7":{"start":{"line":38,"column":4},"end":{"line":56,"column":6}},"8":{"start":{"line":66,"column":2},"end":{"line":68,"column":3}},"9":{"start":{"line":67,"column":4},"end":{"line":67,"column":61}},"10":{"start":{"line":70,"column":2},"end":{"line":70,"column":14}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":17,"column":51},"end":{"line":17,"column":52}},"loc":{"start":{"line":27,"column":6},"end":{"line":71,"column":1}},"line":27},"1":{"name":"(anonymous_1)","decl":{"start":{"line":28,"column":35},"end":{"line":28,"column":36}},"loc":{"start":{"line":28,"column":41},"end":{"line":31,"column":3}},"line":28},"2":{"name":"(anonymous_2)","decl":{"start":{"line":33,"column":33},"end":{"line":33,"column":34}},"loc":{"start":{"line":33,"column":39},"end":{"line":35,"column":3}},"line":33},"3":{"name":"(anonymous_3)","decl":{"start":{"line":37,"column":18},"end":{"line":37,"column":19}},"loc":{"start":{"line":37,"column":24},"end":{"line":57,"column":3}},"line":37}},"branchMap":{"0":{"loc":{"start":{"line":25,"column":2},"end":{"line":25,"column":26}},"type":"default-arg","locations":[{"start":{"line":25,"column":22},"end":{"line":25,"column":26}}],"line":25},"1":{"loc":{"start":{"line":29,"column":4},"end":{"line":29,"column":26}},"type":"binary-expr","locations":[{"start":{"line":29,"column":4},"end":{"line":29,"column":12}},{"start":{"line":29,"column":16},"end":{"line":29,"column":26}}],"line":29},"2":{"loc":{"start":{"line":34,"column":4},"end":{"line":34,"column":28}},"type":"binary-expr","locations":[{"start":{"line":34,"column":4},"end":{"line":34,"column":13}},{"start":{"line":34,"column":17},"end":{"line":34,"column":28}}],"line":34},"3":{"loc":{"start":{"line":66,"column":2},"end":{"line":68,"column":3}},"type":"if","locations":[{"start":{"line":66,"column":2},"end":{"line":68,"column":3}},{"start":{},"end":{}}],"line":66}},"s":{"0":2,"1":11,"2":1,"3":1,"4":11,"5":1,"6":11,"7":11,"8":11,"9":10,"10":1},"f":{"0":11,"1":1,"2":1,"3":11},"b":{"0":[2],"1":[1,1],"2":[1,1],"3":[10,1]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"56dfa93e899841bdf6c053abdaa693cb5bdde28a"} } diff --git a/coverage/lcov-report/index.html b/coverage/lcov-report/index.html index 6292ee0..c729354 100644 --- a/coverage/lcov-report/index.html +++ b/coverage/lcov-report/index.html @@ -25,28 +25,28 @@

All files

100% Statements - 64/64 + 52/52
100% Branches - 32/32 + 36/36
100% Functions - 17/17 + 14/14
100% Lines - 64/64 + 52/52
@@ -86,7 +86,7 @@

All files

100% 28/28 100% - 22/22 + 23/23 100% 5/5 100% @@ -99,28 +99,13 @@

All files

100% - 25/25 + 24/24 100% - 6/6 + 13/13 100% - 11/11 + 9/9 100% - 25/25 - - - - src/services - -
- - 100% - 11/11 - 100% - 4/4 - 100% - 1/1 - 100% - 11/11 + 24/24 @@ -131,7 +116,7 @@

All files

+ + + + + + \ No newline at end of file diff --git a/coverage/lcov-report/src/components/CustomModal.tsx.html b/coverage/lcov-report/src/components/CustomModal.tsx.html index d636869..efd3a3e 100644 --- a/coverage/lcov-report/src/components/CustomModal.tsx.html +++ b/coverage/lcov-report/src/components/CustomModal.tsx.html @@ -32,7 +32,7 @@

All files / src/componen
100% Branches - 0/0 + 2/2
@@ -156,7 +156,22 @@

All files / src/componen 91 92 93 -94  +94 +95 +96 +97 +98 +99 +100 +101 +102 +103 +104 +105 +106 +107  +  +        @@ -182,7 +197,13 @@

All files / src/componen 3x   3x -8x +  +  +  +  +  +11x +        @@ -198,7 +219,9 @@

All files / src/componen       -10x +  +13x +        @@ -249,6 +272,9 @@

All files / src/componen       +  +  +   
import React from 'react';
 import {
   Modal,
@@ -258,12 +284,14 @@ 

All files / src/componen StyleSheet, Dimensions, } from 'react-native'; +import { AppBackgroundView } from './AppBackgroundView';   export interface IButton { text: string; onPress: () => void; isPreferred?: boolean; style?: 'default' | 'cancel'; + children?: React.ReactNode; }   export interface IModal { @@ -274,33 +302,41 @@

All files / src/componen   const windowWidth = Dimensions.get('window').width;   -export const CustomModal: React.FC<IModal> = ({ message, title, buttons }) => { +export const CustomModal: React.FC<IModal> = ({ + message, + title, + buttons, + children, +}) => { return ( - <Modal - visible={true} - animationType="fade" - transparent={true} - testID="custom-modal" - > - <View style={styles.modalBackground}> - <View style={styles.alertBox}> - <View style={styles.box}> - <Text style={styles.title}>{title}</Text> - <Text style={styles.message}>{message}</Text> - </View> - <View style={styles.divider} /> - <View style={styles.buttonBox}> - {buttons.map((button, index) => ( - <Button - key={index} - title={button.text} - onPress={button.onPress} - /> - ))} + <> + {children && <AppBackgroundView>{children}</AppBackgroundView>} + <Modal + visible={true} + animationType="fade" + transparent={true} + testID="custom-modal" + > + <View style={styles.modalBackground}> + <View style={styles.alertBox}> + <View style={styles.box}> + <Text style={styles.title}>{title}</Text> + <Text style={styles.message}>{message}</Text> + </View> + <View style={styles.divider} /> + <View style={styles.buttonBox}> + {buttons.map((button, index) => ( + <Button + key={index} + title={button.text} + onPress={button.onPress} + /> + ))} + </View> </View> </View> - </View> - </Modal> + </Modal> + </> ); };   @@ -341,6 +377,9 @@

All files / src/componen backgroundColor: 'lightgray', marginVertical: 10, }, + testID: { + flex: 1, + }, });  

@@ -349,7 +388,7 @@

All files / src/componen