-
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #75 from per1234/move-test-data
Move test data from test code to data files
- Loading branch information
Showing
8 changed files
with
752 additions
and
278 deletions.
There are no files selected for viewing
117 changes: 117 additions & 0 deletions
117
...tests/data/test_get_sketches_reports/new-report-format/artifact/arduino-avr-leonardo.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,117 @@ | ||
{ | ||
"commit_hash": "d8fd302", | ||
"commit_url": "https://example.com/foo", | ||
"boards": [ | ||
{ | ||
"board": "arduino:avr:leonardo", | ||
"sketches": [ | ||
{ | ||
"name": "examples/Bar", | ||
"compilation_success": true, | ||
"sizes": [ | ||
{ | ||
"name": "flash", | ||
"maximum": 28672, | ||
"current": { | ||
"absolute": 3494, | ||
"relative": 12.19 | ||
}, | ||
"previous": { | ||
"absolute": "N/A", | ||
"relative": "N/A" | ||
}, | ||
"delta": { | ||
"absolute": "N/A", | ||
"relative": "N/A" | ||
} | ||
}, | ||
{ | ||
"name": "RAM for global variables", | ||
"maximum": 2560, | ||
"current": { | ||
"absolute": 153, | ||
"relative": 5.97 | ||
}, | ||
"previous": { | ||
"absolute": "N/A", | ||
"relative": "N/A" | ||
}, | ||
"delta": { | ||
"absolute": "N/A", | ||
"relative": "N/A" | ||
} | ||
} | ||
] | ||
}, | ||
{ | ||
"name": "examples/Foo", | ||
"compilation_success": true, | ||
"sizes": [ | ||
{ | ||
"name": "flash", | ||
"maximum": 28672, | ||
"current": { | ||
"absolute": 3462, | ||
"relative": 12.07 | ||
}, | ||
"previous": { | ||
"absolute": 3474, | ||
"relative": 12.12 | ||
}, | ||
"delta": { | ||
"absolute": -12, | ||
"relative": -0.05 | ||
} | ||
}, | ||
{ | ||
"name": "RAM for global variables", | ||
"maximum": 2560, | ||
"current": { | ||
"absolute": 149, | ||
"relative": 5.82 | ||
}, | ||
"previous": { | ||
"absolute": 149, | ||
"relative": 5.82 | ||
}, | ||
"delta": { | ||
"absolute": 0, | ||
"relative": 0.0 | ||
} | ||
} | ||
] | ||
} | ||
], | ||
"sizes": [ | ||
{ | ||
"name": "flash", | ||
"maximum": 28672, | ||
"delta": { | ||
"absolute": { | ||
"minimum": -12, | ||
"maximum": -12 | ||
}, | ||
"relative": { | ||
"minimum": -0.05, | ||
"maximum": -0.05 | ||
} | ||
} | ||
}, | ||
{ | ||
"name": "RAM for global variables", | ||
"maximum": 2560, | ||
"delta": { | ||
"absolute": { | ||
"minimum": 0, | ||
"maximum": 0 | ||
}, | ||
"relative": { | ||
"minimum": 0.0, | ||
"maximum": 0.0 | ||
} | ||
} | ||
} | ||
] | ||
} | ||
] | ||
} |
117 changes: 117 additions & 0 deletions
117
...ltas/tests/data/test_get_sketches_reports/new-report-format/artifact/arduino-avr-uno.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,117 @@ | ||
{ | ||
"commit_hash": "d8fd302", | ||
"commit_url": "https://example.com/foo", | ||
"boards": [ | ||
{ | ||
"board": "arduino:avr:uno", | ||
"sketches": [ | ||
{ | ||
"name": "examples/Bar", | ||
"compilation_success": true, | ||
"sizes": [ | ||
{ | ||
"name": "flash", | ||
"maximum": 32256, | ||
"current": { | ||
"absolute": 1460, | ||
"relative": 4.53 | ||
}, | ||
"previous": { | ||
"absolute": "N/A", | ||
"relative": "N/A" | ||
}, | ||
"delta": { | ||
"absolute": "N/A", | ||
"relative": "N/A" | ||
} | ||
}, | ||
{ | ||
"name": "RAM for global variables", | ||
"maximum": 2048, | ||
"current": { | ||
"absolute": 190, | ||
"relative": 9.28 | ||
}, | ||
"previous": { | ||
"absolute": "N/A", | ||
"relative": "N/A" | ||
}, | ||
"delta": { | ||
"absolute": "N/A", | ||
"relative": "N/A" | ||
} | ||
} | ||
] | ||
}, | ||
{ | ||
"name": "examples/Foo", | ||
"compilation_success": true, | ||
"sizes": [ | ||
{ | ||
"name": "flash", | ||
"maximum": 32256, | ||
"current": { | ||
"absolute": 444, | ||
"relative": 1.38 | ||
}, | ||
"previous": { | ||
"absolute": 1438, | ||
"relative": 4.46 | ||
}, | ||
"delta": { | ||
"absolute": -994, | ||
"relative": -3.08 | ||
} | ||
}, | ||
{ | ||
"name": "RAM for global variables", | ||
"maximum": 2048, | ||
"current": { | ||
"absolute": 9, | ||
"relative": 0.44 | ||
}, | ||
"previous": { | ||
"absolute": 184, | ||
"relative": 8.98 | ||
}, | ||
"delta": { | ||
"absolute": -175, | ||
"relative": -8.54 | ||
} | ||
} | ||
] | ||
} | ||
], | ||
"sizes": [ | ||
{ | ||
"name": "flash", | ||
"maximum": 32256, | ||
"delta": { | ||
"absolute": { | ||
"minimum": -994, | ||
"maximum": -994 | ||
}, | ||
"relative": { | ||
"minimum": -3.08, | ||
"maximum": -3.08 | ||
} | ||
} | ||
}, | ||
{ | ||
"name": "RAM for global variables", | ||
"maximum": 2048, | ||
"delta": { | ||
"absolute": { | ||
"minimum": -175, | ||
"maximum": -175 | ||
}, | ||
"relative": { | ||
"minimum": -8.54, | ||
"maximum": -8.54 | ||
} | ||
} | ||
} | ||
] | ||
} | ||
] | ||
} |
65 changes: 65 additions & 0 deletions
65
.../test_get_sketches_reports/new-report-format/artifact/arduino-mbed_portenta-envie_m7.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
{ | ||
"commit_hash": "54815a7d1a30fcb0d77d98242b158e7845c0516d", | ||
"commit_url": "https://example.com/foo", | ||
"boards": [ | ||
{ | ||
"board": "arduino:mbed_portenta:envie_m7", | ||
"sketches": [ | ||
{ | ||
"name": "examples/Bar", | ||
"compilation_success": true, | ||
"sizes": [ | ||
{ | ||
"name": "flash", | ||
"maximum": "N/A", | ||
"current": { | ||
"absolute": "N/A", | ||
"relative": "N/A" | ||
} | ||
}, | ||
{ | ||
"name": "RAM for global variables", | ||
"maximum": "N/A", | ||
"current": { | ||
"absolute": "N/A", | ||
"relative": "N/A" | ||
} | ||
} | ||
] | ||
}, | ||
{ | ||
"name": "examples/Foo", | ||
"compilation_success": true, | ||
"sizes": [ | ||
{ | ||
"name": "flash", | ||
"maximum": "N/A", | ||
"current": { | ||
"absolute": "N/A", | ||
"relative": "N/A" | ||
} | ||
}, | ||
{ | ||
"name": "RAM for global variables", | ||
"maximum": "N/A", | ||
"current": { | ||
"absolute": "N/A", | ||
"relative": "N/A" | ||
} | ||
} | ||
] | ||
} | ||
], | ||
"sizes": [ | ||
{ | ||
"name": "flash", | ||
"maximum": "N/A" | ||
}, | ||
{ | ||
"name": "RAM for global variables", | ||
"maximum": "N/A" | ||
} | ||
] | ||
} | ||
] | ||
} |
Oops, something went wrong.