{"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": 19.0, "percentage": 19.0, "testcases": [{"id": 11084585, "title": "Structure Check", "description": null, "duration": 0.07793807983398438, "score": null, "hint": null, "strict": true, "passed": true, "type": "ws", "render": "normal", "submission": 381237, "parent": null}, {"id": 11084586, "title": "About Tools", "description": "Provides info about the tools. Mostly their versions.\n", "duration": 0.2694694995880127, "score": null, "hint": null, "strict": false, "passed": true, "type": "exec", "render": "normal", "submission": 381237, "parent": null}, {"id": 11084587, "title": "Globals", "description": "Searching for global variables, usage of which is _forbidden_.\n", "duration": 0.22400784492492676, "score": null, "hint": null, "strict": true, "passed": true, "type": "exec", "render": "normal", "submission": 381237, "parent": null}, {"id": 11084588, "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.30771756172180176, "score": null, "hint": null, "strict": true, "passed": true, "type": "exec", "render": "normal", "submission": 381237, "parent": null}, {"id": 11084589, "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.4568660259246826, "score": 0.0, "hint": null, "strict": true, "passed": true, "type": "suite", "render": "normal", "submission": 381237, "parent": null}, {"id": 11084590, "title": "bmp.h", "description": null, "duration": 0.22294378280639648, "score": null, "hint": null, "strict": false, "passed": true, "type": "exec", "render": "normal", "submission": 381237, "parent": 11084589}, {"id": 11084591, "title": "transformations.h", "description": null, "duration": 0.23392224311828613, "score": null, "hint": null, "strict": false, "passed": true, "type": "exec", "render": "normal", "submission": 381237, "parent": 11084589}, {"id": 11084592, "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.851036548614502, "score": null, "hint": null, "strict": true, "passed": true, "type": "exec", "render": "normal", "submission": 381237, "parent": null}, {"id": 11084593, "title": "Makefile Checks", "description": null, "duration": 1.0265882015228271, "score": 0.0, "hint": null, "strict": true, "passed": true, "type": "suite", "render": "normal", "submission": 381237, "parent": null}, {"id": 11084594, "title": "make all", "description": "Test target \"all\"", "duration": 0.25938868522644043, "score": null, "hint": null, "strict": false, "passed": true, "type": "exec", "render": "normal", "submission": 381237, "parent": 11084593}, {"id": 11084595, "title": "make clean", "description": "Test target \"clean\"", "duration": 0.28304028511047363, "score": null, "hint": null, "strict": false, "passed": true, "type": "exec", "render": "normal", "submission": 381237, "parent": 11084593}, {"id": 11084596, "title": "make bmp", "description": "Test target \"bmp\"", "duration": 0.20890164375305176, "score": null, "hint": null, "strict": false, "passed": true, "type": "exec", "render": "normal", "submission": 381237, "parent": 11084593}, {"id": 11084597, "title": "make transformations", "description": "Test target \"transformations\"", "duration": 0.27525758743286133, "score": null, "hint": null, "strict": false, "passed": true, "type": "exec", "render": "normal", "submission": 381237, "parent": 11084593}, {"id": 11084598, "title": "BMP Module", "description": "Tests of BMP module.", "duration": 18.517009258270264, "score": 17.0, "hint": null, "strict": false, "passed": false, "type": "suite", "render": "normal", "submission": 381237, "parent": null}, {"id": 11084599, "title": "Suite `read_bmp_header()`", "description": null, "duration": 10.258297443389893, "score": 9.5, "hint": null, "strict": false, "passed": true, "type": "suite", "render": "normal", "submission": 381237, "parent": 11084598}, {"id": 11084600, "title": "Dry Run", "description": "Given the `NULL` stream\nWhen the function is called\nThen `NULL` must be returned.\n", "duration": 0.324751615524292, "score": 0.5, "hint": null, "strict": true, "passed": true, "type": "exec", "render": "normal", "submission": 381237, "parent": 11084599}, {"id": 11084601, "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.31310200691223145, "score": 0.5, "hint": null, "strict": true, "passed": true, "type": "exec", "render": "normal", "submission": 381237, "parent": 11084599}, {"id": 11084602, "title": "Valid Type - Valgrind", "description": null, "duration": 1.3556804656982422, "score": 1.0, "hint": null, "strict": false, "passed": true, "type": "exec", "render": "normal", "submission": 381237, "parent": 11084599}, {"id": 11084603, "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.25544095039367676, "score": 0.5, "hint": null, "strict": true, "passed": true, "type": "exec", "render": "normal", "submission": 381237, "parent": 11084599}, {"id": 11084604, "title": "Valid Width and Height - Valgrind", "description": null, "duration": 1.4278249740600586, "score": 1.0, "hint": null, "strict": false, "passed": true, "type": "exec", "render": "normal", "submission": 381237, "parent": 11084599}, {"id": 11084605, "title": "Invalid Stream - Unit Test", "description": "Given invalid BMP stream\nWhen the function is invoked\nThen `NULL` must be returned.\n", "duration": 0.2536039352416992, "score": 0.5, "hint": null, "strict": true, "passed": true, "type": "exec", "render": "normal", "submission": 381237, "parent": 11084599}, {"id": 11084606, "title": "Not a BMP Stream - Valgrind", "description": null, "duration": 1.3033113479614258, "score": 1.0, "hint": null, "strict": false, "passed": true, "type": "exec", "render": "normal", "submission": 381237, "parent": 11084599}, {"id": 11084607, "title": "Stream not at the Beginning - Unit Test", "description": "Given a valid BMP stream\nAnd file position indicator is set somewhere in the file\nWhen the function is invoked\nThen function can't return `NULL`.\n", "duration": 0.2823634147644043, "score": 0.5, "hint": null, "strict": true, "passed": true, "type": "exec", "render": "normal", "submission": 381237, "parent": 11084599}, {"id": 11084608, "title": "Stream not at the Beginning - Valgrind", "description": null, "duration": 1.4493587017059326, "score": 1.0, "hint": null, "strict": false, "passed": true, "type": "exec", "render": "normal", "submission": 381237, "parent": 11084599}, {"id": 11084609, "title": "Size of the File - Unit Test", "description": "Given the valid BMP stream\nWhen function is invoked\nThen valid file size must be read\n", "duration": 0.24606943130493164, "score": 0.5, "hint": null, "strict": true, "passed": true, "type": "exec", "render": "normal", "submission": 381237, "parent": 11084599}, {"id": 11084610, "title": "Size of the File - Valgrind", "description": null, "duration": 1.3936455249786377, "score": 1.0, "hint": null, "strict": false, "passed": true, "type": "exec", "render": "normal", "submission": 381237, "parent": 11084599}, {"id": 11084611, "title": "Test Content of Populated Header - Unit Test", "description": "Given the stream with BMP image\nWhen function is called\nThen return populated header.\n", "duration": 0.29195642471313477, "score": 0.5, "hint": null, "strict": true, "passed": true, "type": "exec", "render": "normal", "submission": 381237, "parent": 11084599}, {"id": 11084612, "title": "Test Content of Populated Header - Valgrind", "description": null, "duration": 1.3611886501312256, "score": 1.0, "hint": null, "strict": false, "passed": true, "type": "exec", "render": "normal", "submission": 381237, "parent": 11084599}, {"id": 11084613, "title": "Suite `read_bmp_data()`", "description": null, "duration": 2.2821404933929443, "score": 3.5, "hint": null, "strict": false, "passed": true, "type": "suite", "render": "normal", "submission": 381237, "parent": 11084598}, {"id": 11084614, "title": "Dry Run", "description": "When the function is called with `NULL` stream\nAND `NULL` header\nThen `NULL` will be returned.\n", "duration": 0.3154635429382324, "score": 0.5, "hint": null, "strict": true, "passed": true, "type": "exec", "render": "normal", "submission": 381237, "parent": 11084613}, {"id": 11084615, "title": "Wrong Position in Stream", "description": "Given the stream valid BMP image\nAnd the position in stream is not in the beginning\nWhen the function is called\nThen it should not return `NULL`.\n", "duration": 0.2403242588043213, "score": 1.0, "hint": null, "strict": true, "passed": true, "type": "exec", "render": "normal", "submission": 381237, "parent": 11084613}, {"id": 11084616, "title": "Test Content of Data - Unit Test", "description": "Given the valid BMP stream\nAnd the position in file is correct\nAnd valid header\nWhen the function is called\nThen data should be read.\n", "duration": 0.2769155502319336, "score": 1.0, "hint": null, "strict": true, "passed": true, "type": "exec", "render": "normal", "submission": 381237, "parent": 11084613}, {"id": 11084617, "title": "Test Content of Data - Valgrind", "description": null, "duration": 1.449437141418457, "score": 1.0, "hint": null, "strict": false, "passed": true, "type": "exec", "render": "normal", "submission": 381237, "parent": 11084613}, {"id": 11084618, "title": "Suite `read_bmp()`", "description": null, "duration": 2.290811777114868, "score": 3.5, "hint": null, "strict": false, "passed": true, "type": "suite", "render": "normal", "submission": 381237, "parent": 11084598}, {"id": 11084619, "title": "Dry Run", "description": "Given the `NULL` stream\nWhen the function is called\nThen `NULL` will be returned.\n", "duration": 0.3472154140472412, "score": 0.5, "hint": null, "strict": true, "passed": true, "type": "exec", "render": "normal", "submission": 381237, "parent": 11084618}, {"id": 11084620, "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.3136911392211914, "score": 1.0, "hint": null, "strict": true, "passed": true, "type": "exec", "render": "normal", "submission": 381237, "parent": 11084618}, {"id": 11084621, "title": "Content of BMP File - Unit Test", "description": "Given the valid BMP stream\nWhen the function is called\nThen `struct bmp_image` should be created with valid header and data.\n", "duration": 0.2893815040588379, "score": 1.0, "hint": null, "strict": true, "passed": true, "type": "exec", "render": "normal", "submission": 381237, "parent": 11084618}, {"id": 11084622, "title": "Content of BMP File - Valgrind", "description": null, "duration": 1.3405237197875977, "score": 1.0, "hint": null, "strict": false, "passed": true, "type": "exec", "render": "normal", "submission": 381237, "parent": 11084618}, {"id": 11084623, "title": "Suite `free_bmp_image()`", "description": null, "duration": 2.2084128856658936, "score": 0.5, "hint": null, "strict": false, "passed": false, "type": "suite", "render": "normal", "submission": 381237, "parent": 11084598}, {"id": 11084624, "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.4561767578125, "score": 0.0, "hint": null, "strict": false, "passed": false, "type": "suite", "render": "normal", "submission": 381237, "parent": 11084623}, {"id": 11084625, "title": "Dry Run - Unit Test", "description": null, "duration": 0.4561767578125, "score": 0.0, "hint": null, "strict": true, "passed": false, "type": "exec", "render": "normal", "submission": 381237, "parent": 11084624}, {"id": 11084626, "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.26893043518066406, "score": 0.5, "hint": null, "strict": true, "passed": true, "type": "exec", "render": "normal", "submission": 381237, "parent": 11084623}, {"id": 11084627, "title": "Free Image - Valgrind", "description": null, "duration": 1.4833056926727295, "score": 0.0, "hint": null, "strict": false, "passed": false, "type": "exec", "render": "normal", "submission": 381237, "parent": 11084623}, {"id": 11084628, "title": "Module Transformations", "description": "Tests for module Transformations.", "duration": 6.075347900390625, "score": 2.0, "hint": null, "strict": false, "passed": false, "type": "suite", "render": "normal", "submission": 381237, "parent": null}, {"id": 11084629, "title": "Suite `flip_horizontally()`", "description": null, "duration": 0.9442789554595947, "score": 0.5, "hint": null, "strict": false, "passed": false, "type": "suite", "render": "normal", "submission": 381237, "parent": 11084628}, {"id": 11084630, "title": "Dry Run Test", "description": "When the function is called with `NULL` image,\nThen `NULL` will be returned.\n", "duration": 0.32303595542907715, "score": 0.5, "hint": null, "strict": true, "passed": true, "type": "exec", "render": "normal", "submission": 381237, "parent": 11084629}, {"id": 11084631, "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.6212430000305176, "score": 0.0, "hint": null, "strict": true, "passed": false, "type": "exec", "render": "normal", "submission": 381237, "parent": 11084629}, {"id": 11084632, "title": "Suite `flip_vertically()`", "description": null, "duration": 0.8222494125366211, "score": 0.5, "hint": null, "strict": false, "passed": false, "type": "suite", "render": "normal", "submission": 381237, "parent": 11084628}, {"id": 11084633, "title": "Dry Run Test", "description": "When the function is called with `NULL` image,\nThen `NULL` will be returned.\n", "duration": 0.2996327877044678, "score": 0.5, "hint": null, "strict": true, "passed": true, "type": "exec", "render": "normal", "submission": 381237, "parent": 11084632}, {"id": 11084634, "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.5226166248321533, "score": 0.0, "hint": null, "strict": true, "passed": false, "type": "exec", "render": "normal", "submission": 381237, "parent": 11084632}, {"id": 11084635, "title": "Suite `rotate_right()`", "description": null, "duration": 0.8291294574737549, "score": 0.5, "hint": null, "strict": false, "passed": false, "type": "suite", "render": "normal", "submission": 381237, "parent": 11084628}, {"id": 11084636, "title": "Dry Run Test", "description": "When the function is called with `NULL` image,\nThen `NULL` will be returned.\n", "duration": 0.2509005069732666, "score": 0.5, "hint": null, "strict": true, "passed": true, "type": "exec", "render": "normal", "submission": 381237, "parent": 11084635}, {"id": 11084637, "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.5782289505004883, "score": 0.0, "hint": null, "strict": true, "passed": false, "type": "exec", "render": "normal", "submission": 381237, "parent": 11084635}, {"id": 11084638, "title": "Suite `rotate_left()`", "description": null, "duration": 0.9989135265350342, "score": 0.5, "hint": null, "strict": false, "passed": false, "type": "suite", "render": "normal", "submission": 381237, "parent": 11084628}, {"id": 11084639, "title": "Dry Run Test", "description": "When the function is called with `NULL` image,\nThen `NULL` will be returned.\n", "duration": 0.3896605968475342, "score": 0.5, "hint": null, "strict": true, "passed": true, "type": "exec", "render": "normal", "submission": 381237, "parent": 11084638}, {"id": 11084640, "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.6092529296875, "score": 0.0, "hint": null, "strict": true, "passed": false, "type": "exec", "render": "normal", "submission": 381237, "parent": 11084638}, {"id": 11084641, "title": "Suite `crop()`", "description": null, "duration": 0.30384182929992676, "score": 0.0, "hint": null, "strict": false, "passed": false, "type": "suite", "render": "normal", "submission": 381237, "parent": 11084628}, {"id": 11084642, "title": "Dry Run Test", "description": "When the function is called with `NULL` image,\nThen `NULL` will be returned.\n", "duration": 0.30384182929992676, "score": 0.0, "hint": null, "strict": true, "passed": false, "type": "exec", "render": "normal", "submission": 381237, "parent": 11084641}, {"id": 11084643, "title": "Suite `extract()`", "description": null, "duration": 0.3508434295654297, "score": 0.0, "hint": null, "strict": false, "passed": false, "type": "suite", "render": "normal", "submission": 381237, "parent": 11084628}, {"id": 11084644, "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.3508434295654297, "score": 0.0, "hint": null, "strict": true, "passed": false, "type": "exec", "render": "normal", "submission": 381237, "parent": 11084643}, {"id": 11084645, "title": "Suite `scale()`", "description": null, "duration": 0.3428823947906494, "score": 0.0, "hint": null, "strict": false, "passed": false, "type": "suite", "render": "normal", "submission": 381237, "parent": 11084628}, {"id": 11084646, "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.3428823947906494, "score": 0.0, "hint": null, "strict": true, "passed": false, "type": "exec", "render": "normal", "submission": 381237, "parent": 11084645}], "id": 381237, "resource_id": "1473ac4e-3817-4b89-b199-796f95a78f84", "date_submitted": "2021-04-30T19:51:39Z", "date_evaluated": "2021-04-30T20:15:09.206Z", "max_score": 100.0}