{"problem": {"id": 1754, "resource_id": "prog.2021.bmp", "title": "Problem Set 4: BMP Transformations!"}, "student": {"id": 5609, "resource_id": "1DIYiK", "name": "Richard Dzurik", "email": "richard.dzurik@student.tuke.sk"}, "score": 6.5, "percentage": 6.5, "testcases": [{"id": 11024490, "title": "Structure Check", "description": null, "duration": 0.07583355903625488, "score": null, "hint": null, "strict": true, "passed": true, "type": "ws", "render": "normal", "submission": 380151, "parent": null}, {"id": 11024491, "title": "About Tools", "description": "Provides info about the tools. Mostly their versions.\n", "duration": 0.16397309303283691, "score": null, "hint": null, "strict": false, "passed": true, "type": "exec", "render": "normal", "submission": 380151, "parent": null}, {"id": 11024492, "title": "Globals", "description": "Searching for global variables, usage of which is _forbidden_.\n", "duration": 0.14893007278442383, "score": null, "hint": null, "strict": true, "passed": true, "type": "exec", "render": "normal", "submission": 380151, "parent": null}, {"id": 11024493, "title": "Static Code Analysis", "description": "Checks style of your code with `cppcheck` with following command:\n`cppcheck --enable=performance,unusedFunction --error-exitcode=1 bmp.c transformations.c main.c`\n", "duration": 0.19274258613586426, "score": null, "hint": null, "strict": true, "passed": true, "type": "exec", "render": "normal", "submission": 380151, "parent": null}, {"id": 11024494, "title": "Header Files Check", "description": "Simple test with `diff`, if header files of student project are same as those of the Arena.\n", "duration": 0.3015787601470947, "score": 0.0, "hint": null, "strict": true, "passed": true, "type": "suite", "render": "normal", "submission": 380151, "parent": null}, {"id": 11024495, "title": "bmp.h", "description": null, "duration": 0.1456902027130127, "score": null, "hint": null, "strict": false, "passed": true, "type": "exec", "render": "normal", "submission": 380151, "parent": 11024494}, {"id": 11024496, "title": "transformations.h", "description": null, "duration": 0.15588855743408203, "score": null, "hint": null, "strict": false, "passed": true, "type": "exec", "render": "normal", "submission": 380151, "parent": 11024494}, {"id": 11024497, "title": "Compilation", "description": "Compiles your code with the following command:\n`gcc -c -std=c11 -Wall -Werror -Wconversion main.c bmp.c transformations.c -lm`\n", "duration": 0.5122966766357422, "score": null, "hint": null, "strict": true, "passed": true, "type": "exec", "render": "normal", "submission": 380151, "parent": null}, {"id": 11024498, "title": "Makefile Checks", "description": null, "duration": 0.6509139537811279, "score": 0.0, "hint": null, "strict": true, "passed": true, "type": "suite", "render": "normal", "submission": 380151, "parent": null}, {"id": 11024499, "title": "make all", "description": "Test target \"all\"", "duration": 0.1516861915588379, "score": null, "hint": null, "strict": false, "passed": true, "type": "exec", "render": "normal", "submission": 380151, "parent": 11024498}, {"id": 11024500, "title": "make clean", "description": "Test target \"clean\"", "duration": 0.18667864799499512, "score": null, "hint": null, "strict": false, "passed": true, "type": "exec", "render": "normal", "submission": 380151, "parent": 11024498}, {"id": 11024501, "title": "make bmp", "description": "Test target \"bmp\"", "duration": 0.1561284065246582, "score": null, "hint": null, "strict": false, "passed": true, "type": "exec", "render": "normal", "submission": 380151, "parent": 11024498}, {"id": 11024502, "title": "make transformations", "description": "Test target \"transformations\"", "duration": 0.15642070770263672, "score": null, "hint": null, "strict": false, "passed": true, "type": "exec", "render": "normal", "submission": 380151, "parent": 11024498}, {"id": 11024503, "title": "BMP Module", "description": "Tests of BMP module.", "duration": 7.148411750793457, "score": 4.5, "hint": null, "strict": false, "passed": false, "type": "suite", "render": "normal", "submission": 380151, "parent": null}, {"id": 11024504, "title": "Suite `read_bmp_header()`", "description": null, "duration": 3.3316588401794434, "score": 3.5, "hint": null, "strict": false, "passed": false, "type": "suite", "render": "normal", "submission": 380151, "parent": 11024503}, {"id": 11024505, "title": "Dry Run", "description": "Given the `NULL` stream\nWhen the function is called\nThen `NULL` must be returned.\n", "duration": 0.2417769432067871, "score": 0.5, "hint": null, "strict": true, "passed": true, "type": "exec", "render": "normal", "submission": 380151, "parent": 11024504}, {"id": 11024506, "title": "Valid Type - Unit Test", "description": "Given the valid BMP stream\nWhen the function is called\nThen the header type must be `BM`\n", "duration": 0.21871376037597656, "score": 0.5, "hint": null, "strict": true, "passed": true, "type": "exec", "render": "normal", "submission": 380151, "parent": 11024504}, {"id": 11024507, "title": "Valid Type - Valgrind", "description": null, "duration": 1.2061476707458496, "score": 1.0, "hint": null, "strict": false, "passed": true, "type": "exec", "render": "normal", "submission": 380151, "parent": 11024504}, {"id": 11024508, "title": "Valid Width and Height - Unit Test", "description": "Given the valid BMP stream\nWhen the function is invoked\nThen the image width must be valid\nAnd the image height must be valid\n", "duration": 0.20135259628295898, "score": 0.5, "hint": null, "strict": true, "passed": true, "type": "exec", "render": "normal", "submission": 380151, "parent": 11024504}, {"id": 11024509, "title": "Valid Width and Height - Valgrind", "description": null, "duration": 1.2580676078796387, "score": 1.0, "hint": null, "strict": false, "passed": true, "type": "exec", "render": "normal", "submission": 380151, "parent": 11024504}, {"id": 11024510, "title": "Invalid Stream - Unit Test", "description": "Given invalid BMP stream\nWhen the function is invoked\nThen `NULL` must be returned.\n", "duration": 0.20560026168823242, "score": 0.0, "hint": null, "strict": true, "passed": false, "type": "exec", "render": "normal", "submission": 380151, "parent": 11024504}, {"id": 11024511, "title": "Suite `read_bmp_data()`", "description": null, "duration": 0.41963624954223633, "score": 0.0, "hint": null, "strict": false, "passed": false, "type": "suite", "render": "normal", "submission": 380151, "parent": 11024503}, {"id": 11024512, "title": "Dry Run", "description": "When the function is called with `NULL` stream\nAND `NULL` header\nThen `NULL` will be returned.\n", "duration": 0.41963624954223633, "score": 0.0, "hint": null, "strict": true, "passed": false, "type": "exec", "render": "normal", "submission": 380151, "parent": 11024511}, {"id": 11024513, "title": "Suite `read_bmp()`", "description": null, "duration": 0.42000722885131836, "score": 0.5, "hint": null, "strict": false, "passed": false, "type": "suite", "render": "normal", "submission": 380151, "parent": 11024503}, {"id": 11024514, "title": "Dry Run", "description": "Given the `NULL` stream\nWhen the function is called\nThen `NULL` will be returned.\n", "duration": 0.20771121978759766, "score": 0.5, "hint": null, "strict": true, "passed": true, "type": "exec", "render": "normal", "submission": 380151, "parent": 11024513}, {"id": 11024515, "title": "Invalid Stream", "description": "Given an invalid BMP stream,\nWhen function is invoked\nThen it should return `NULL`\nAnd write `Error: This is not a BMP file.` to `stderr`.\n", "duration": 0.2122960090637207, "score": 0.0, "hint": null, "strict": true, "passed": false, "type": "exec", "render": "normal", "submission": 380151, "parent": 11024513}, {"id": 11024516, "title": "Suite `free_bmp_image()`", "description": null, "duration": 1.9617955684661865, "score": 0.5, "hint": null, "strict": false, "passed": false, "type": "suite", "render": "normal", "submission": 380151, "parent": 11024503}, {"id": 11024517, "title": "Dry Run", "description": "Given the image with single or both `NULL` elements,\nWhen the function is called with such image or `NULL` image,\nThen function must free at least existing elements and must pass.\n", "duration": 0.4119701385498047, "score": 0.0, "hint": null, "strict": false, "passed": false, "type": "suite", "render": "normal", "submission": 380151, "parent": 11024516}, {"id": 11024518, "title": "Dry Run - Unit Test", "description": null, "duration": 0.4119701385498047, "score": 0.0, "hint": null, "strict": true, "passed": false, "type": "exec", "render": "normal", "submission": 380151, "parent": 11024517}, {"id": 11024519, "title": "Free Image - Unit Test", "description": "Given the BMP image,\nWhen the function is called,\nThen the image must be freed from the memory.\n", "duration": 0.18359661102294922, "score": 0.5, "hint": null, "strict": true, "passed": true, "type": "exec", "render": "normal", "submission": 380151, "parent": 11024516}, {"id": 11024520, "title": "Free Image - Valgrind", "description": null, "duration": 1.3662288188934326, "score": 0.0, "hint": null, "strict": false, "passed": false, "type": "exec", "render": "normal", "submission": 380151, "parent": 11024516}, {"id": 11024521, "title": "Module Transformations", "description": "Tests for module Transformations.", "duration": 4.504769325256348, "score": 2.0, "hint": null, "strict": false, "passed": false, "type": "suite", "render": "normal", "submission": 380151, "parent": null}, {"id": 11024522, "title": "Suite `flip_horizontally()`", "description": null, "duration": 0.7253668308258057, "score": 0.5, "hint": null, "strict": false, "passed": false, "type": "suite", "render": "normal", "submission": 380151, "parent": 11024521}, {"id": 11024523, "title": "Dry Run Test", "description": "When the function is called with `NULL` image,\nThen `NULL` will be returned.\n", "duration": 0.2618842124938965, "score": 0.5, "hint": null, "strict": true, "passed": true, "type": "exec", "render": "normal", "submission": 380151, "parent": 11024522}, {"id": 11024524, "title": "New Image", "description": "Given the BMP Image\nWhen the function is called\nThen returned image is not `NULL`\nand returned image is different than the given one.\n", "duration": 0.4634826183319092, "score": 0.0, "hint": null, "strict": true, "passed": false, "type": "exec", "render": "normal", "submission": 380151, "parent": 11024522}, {"id": 11024525, "title": "Suite `flip_vertically()`", "description": null, "duration": 0.6461338996887207, "score": 0.5, "hint": null, "strict": false, "passed": false, "type": "suite", "render": "normal", "submission": 380151, "parent": 11024521}, {"id": 11024526, "title": "Dry Run Test", "description": "When the function is called with `NULL` image,\nThen `NULL` will be returned.\n", "duration": 0.22826862335205078, "score": 0.5, "hint": null, "strict": true, "passed": true, "type": "exec", "render": "normal", "submission": 380151, "parent": 11024525}, {"id": 11024527, "title": "New Image", "description": "Given the BMP Image\nWhen the function is called\nThen returned image is not `NULL`\nand returned image is different than the given one.\n", "duration": 0.4178652763366699, "score": 0.0, "hint": null, "strict": true, "passed": false, "type": "exec", "render": "normal", "submission": 380151, "parent": 11024525}, {"id": 11024528, "title": "Suite `rotate_right()`", "description": null, "duration": 0.6499748229980469, "score": 0.5, "hint": null, "strict": false, "passed": false, "type": "suite", "render": "normal", "submission": 380151, "parent": 11024521}, {"id": 11024529, "title": "Dry Run Test", "description": "When the function is called with `NULL` image,\nThen `NULL` will be returned.\n", "duration": 0.24410104751586914, "score": 0.5, "hint": null, "strict": true, "passed": true, "type": "exec", "render": "normal", "submission": 380151, "parent": 11024528}, {"id": 11024530, "title": "New Image", "description": "Given the BMP Image\nWhen the function is called\nThen returned image is not `NULL`\nand returned image is different than the given one.\n", "duration": 0.40587377548217773, "score": 0.0, "hint": null, "strict": true, "passed": false, "type": "exec", "render": "normal", "submission": 380151, "parent": 11024528}, {"id": 11024531, "title": "Suite `rotate_left()`", "description": null, "duration": 0.5806934833526611, "score": 0.5, "hint": null, "strict": false, "passed": false, "type": "suite", "render": "normal", "submission": 380151, "parent": 11024521}, {"id": 11024532, "title": "Dry Run Test", "description": "When the function is called with `NULL` image,\nThen `NULL` will be returned.\n", "duration": 0.19132733345031738, "score": 0.5, "hint": null, "strict": true, "passed": true, "type": "exec", "render": "normal", "submission": 380151, "parent": 11024531}, {"id": 11024533, "title": "New Image", "description": "Given the BMP Image\nWhen the function is called\nThen returned image is not `NULL`\nand returned image is different than the given one.\n", "duration": 0.38936614990234375, "score": 0.0, "hint": null, "strict": true, "passed": false, "type": "exec", "render": "normal", "submission": 380151, "parent": 11024531}, {"id": 11024534, "title": "Suite `crop()`", "description": null, "duration": 0.21435880661010742, "score": 0.0, "hint": null, "strict": false, "passed": false, "type": "suite", "render": "normal", "submission": 380151, "parent": 11024521}, {"id": 11024535, "title": "Dry Run Test", "description": "When the function is called with `NULL` image,\nThen `NULL` will be returned.\n", "duration": 0.21435880661010742, "score": 0.0, "hint": null, "strict": true, "passed": false, "type": "exec", "render": "normal", "submission": 380151, "parent": 11024534}, {"id": 11024536, "title": "Suite `extract()`", "description": null, "duration": 0.22516441345214844, "score": 0.0, "hint": null, "strict": false, "passed": false, "type": "suite", "render": "normal", "submission": 380151, "parent": 11024521}, {"id": 11024537, "title": "Dry Run Test", "description": "Given the `NULL` image\nAnd `NULL` parameter `colors_to_keep`\nWhen the function is called\nThen `NULL` will be returned.\n", "duration": 0.22516441345214844, "score": 0.0, "hint": null, "strict": true, "passed": false, "type": "exec", "render": "normal", "submission": 380151, "parent": 11024536}, {"id": 11024538, "title": "Suite `scale()`", "description": null, "duration": 0.19104743003845215, "score": 0.0, "hint": null, "strict": false, "passed": false, "type": "suite", "render": "normal", "submission": 380151, "parent": 11024521}, {"id": 11024539, "title": "Dry Run Test", "description": "Given a `NULL` as an image\nAnd random valid scale factor\nWhen the function is called\nThen `NULL` will be returned.\n", "duration": 0.19104743003845215, "score": 0.0, "hint": null, "strict": true, "passed": false, "type": "exec", "render": "normal", "submission": 380151, "parent": 11024538}], "id": 380151, "resource_id": "c36a048f-09df-4bcd-a6aa-3348cf1a1875", "date_submitted": "2021-04-29T20:05:10Z", "date_evaluated": "2021-04-29T20:18:01.719Z", "max_score": 100.0}