From b122dd2093a0b13f058c5ece456d133209014d96 Mon Sep 17 00:00:00 2001 From: Byakuren Hijiri Date: Wed, 29 May 2024 22:15:58 -0300 Subject: [PATCH] chore(ci+test): Don't format JSON dumps in tests --- .prettierignore | 1 + test/contracts/conditional-1.cfg.json | 32 +++++++++++++++------ test/contracts/linear-flow-1.cfg.json | 26 ++++++++++++----- test/contracts/loops-1.cfg.json | 39 +++++++++++++++++++------- test/contracts/readonly-1.cfg.json | 40 ++++++++++++++++++++------- test/contracts/readonly-2.cfg.json | 18 ++++++++---- test/contracts/zero-address.cfg.json | 2 +- 7 files changed, 117 insertions(+), 41 deletions(-) create mode 100644 .prettierignore diff --git a/.prettierignore b/.prettierignore new file mode 100644 index 00000000..9afcc1c8 --- /dev/null +++ b/.prettierignore @@ -0,0 +1 @@ +test/contracts diff --git a/test/contracts/conditional-1.cfg.json b/test/contracts/conditional-1.cfg.json index fea0db8f..eb82c4f1 100644 --- a/test/contracts/conditional-1.cfg.json +++ b/test/contracts/conditional-1.cfg.json @@ -9,30 +9,46 @@ "id": 145, "stmtID": 2000, "srcEdges": [], - "dstEdges": [147] + "dstEdges": [ + 147 + ] }, { "id": 146, "stmtID": 2007, - "srcEdges": [147], - "dstEdges": [149, 150, 152] + "srcEdges": [ + 147 + ], + "dstEdges": [ + 149, + 150, + 152 + ] }, { "id": 148, "stmtID": 2006, - "srcEdges": [149], + "srcEdges": [ + 149 + ], "dstEdges": [] }, { "id": 151, "stmtID": 2012, - "srcEdges": [152], - "dstEdges": [154] + "srcEdges": [ + 152 + ], + "dstEdges": [ + 154 + ] }, { "id": 153, "stmtID": 2014, - "srcEdges": [154], + "srcEdges": [ + 154 + ], "dstEdges": [] } ], @@ -67,4 +83,4 @@ } ], "contracts": [] -} +} \ No newline at end of file diff --git a/test/contracts/linear-flow-1.cfg.json b/test/contracts/linear-flow-1.cfg.json index 7483f28d..88ab3472 100644 --- a/test/contracts/linear-flow-1.cfg.json +++ b/test/contracts/linear-flow-1.cfg.json @@ -9,24 +9,36 @@ "id": 299, "stmtID": 4012, "srcEdges": [], - "dstEdges": [301] + "dstEdges": [ + 301 + ] }, { "id": 300, "stmtID": 4015, - "srcEdges": [301], - "dstEdges": [303] + "srcEdges": [ + 301 + ], + "dstEdges": [ + 303 + ] }, { "id": 302, "stmtID": 4020, - "srcEdges": [303], - "dstEdges": [305] + "srcEdges": [ + 303 + ], + "dstEdges": [ + 305 + ] }, { "id": 304, "stmtID": 4022, - "srcEdges": [305], + "srcEdges": [ + 305 + ], "dstEdges": [] } ], @@ -51,4 +63,4 @@ } ], "contracts": [] -} +} \ No newline at end of file diff --git a/test/contracts/loops-1.cfg.json b/test/contracts/loops-1.cfg.json index dc669f0b..81fd97af 100644 --- a/test/contracts/loops-1.cfg.json +++ b/test/contracts/loops-1.cfg.json @@ -9,31 +9,50 @@ "id": 450, "stmtID": 6029, "srcEdges": [], - "dstEdges": [452] + "dstEdges": [ + 452 + ] }, { "id": 451, "stmtID": 6032, - "srcEdges": [452], - "dstEdges": [454] + "srcEdges": [ + 452 + ], + "dstEdges": [ + 454 + ] }, { "id": 453, "stmtID": 6046, - "srcEdges": [454, 459], - "dstEdges": [460] + "srcEdges": [ + 454, + 459 + ], + "dstEdges": [ + 460 + ] }, { "id": 455, "stmtID": 6040, - "srcEdges": [456], - "dstEdges": [458] + "srcEdges": [ + 456 + ], + "dstEdges": [ + 458 + ] }, { "id": 457, "stmtID": 6045, - "srcEdges": [458], - "dstEdges": [459] + "srcEdges": [ + 458 + ], + "dstEdges": [ + 459 + ] }, { "id": 461, @@ -78,4 +97,4 @@ } ], "contracts": [] -} +} \ No newline at end of file diff --git a/test/contracts/readonly-1.cfg.json b/test/contracts/readonly-1.cfg.json index 891c59b1..0f23d763 100644 --- a/test/contracts/readonly-1.cfg.json +++ b/test/contracts/readonly-1.cfg.json @@ -9,36 +9,56 @@ "id": 606, "stmtID": 8051, "srcEdges": [], - "dstEdges": [608] + "dstEdges": [ + 608 + ] }, { "id": 607, "stmtID": 8054, - "srcEdges": [608], - "dstEdges": [610] + "srcEdges": [ + 608 + ], + "dstEdges": [ + 610 + ] }, { "id": 609, "stmtID": 8057, - "srcEdges": [610], - "dstEdges": [612] + "srcEdges": [ + 610 + ], + "dstEdges": [ + 612 + ] }, { "id": 611, "stmtID": 8064, - "srcEdges": [612], - "dstEdges": [614, 615, 617] + "srcEdges": [ + 612 + ], + "dstEdges": [ + 614, + 615, + 617 + ] }, { "id": 613, "stmtID": 8063, - "srcEdges": [614], + "srcEdges": [ + 614 + ], "dstEdges": [] }, { "id": 616, "stmtID": 8066, - "srcEdges": [617], + "srcEdges": [ + 617 + ], "dstEdges": [] } ], @@ -78,4 +98,4 @@ } ], "contracts": [] -} +} \ No newline at end of file diff --git a/test/contracts/readonly-2.cfg.json b/test/contracts/readonly-2.cfg.json index 3a39aa2d..d579de64 100644 --- a/test/contracts/readonly-2.cfg.json +++ b/test/contracts/readonly-2.cfg.json @@ -9,18 +9,26 @@ "id": 762, "stmtID": 10059, "srcEdges": [], - "dstEdges": [764] + "dstEdges": [ + 764 + ] }, { "id": 763, "stmtID": 10062, - "srcEdges": [764], - "dstEdges": [766] + "srcEdges": [ + 764 + ], + "dstEdges": [ + 766 + ] }, { "id": 765, "stmtID": 10064, - "srcEdges": [766], + "srcEdges": [ + 766 + ], "dstEdges": [] } ], @@ -40,4 +48,4 @@ } ], "contracts": [] -} +} \ No newline at end of file diff --git a/test/contracts/zero-address.cfg.json b/test/contracts/zero-address.cfg.json index 2f68d31f..be422be8 100644 --- a/test/contracts/zero-address.cfg.json +++ b/test/contracts/zero-address.cfg.json @@ -22,4 +22,4 @@ ] } ] -} +} \ No newline at end of file