{"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": 14.0, "percentage": 14.000000000000002, "testcases": [{"id": 11034763, "title": "Structure Check", "description": null, "duration": 0.12339377403259277, "score": null, "hint": null, "strict": true, "passed": true, "type": "ws", "render": "normal", "submission": 380335, "parent": null}, {"id": 11034764, "title": "About Tools", "description": "Provides info about the tools. Mostly their versions.\n", "duration": 0.14562654495239258, "score": null, "hint": null, "strict": false, "passed": true, "type": "exec", "render": "normal", "submission": 380335, "parent": null}, {"id": 11034765, "title": "Globals", "description": "Searching for global variables, usage of which is _forbidden_.\n", "duration": 0.15357613563537598, "score": null, "hint": null, "strict": true, "passed": true, "type": "exec", "render": "normal", "submission": 380335, "parent": null}, {"id": 11034766, "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.17816805839538574, "score": null, "hint": null, "strict": true, "passed": true, "type": "exec", "render": "normal", "submission": 380335, "parent": null}, {"id": 11034767, "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.32062840461730957, "score": 0.0, "hint": null, "strict": true, "passed": true, "type": "suite", "render": "normal", "submission": 380335, "parent": null}, {"id": 11034768, "title": "bmp.h", "description": null, "duration": 0.15110468864440918, "score": null, "hint": null, "strict": false, "passed": true, "type": "exec", "render": "normal", "submission": 380335, "parent": 11034767}, {"id": 11034769, "title": "transformations.h", "description": null, "duration": 0.1695237159729004, "score": null, "hint": null, "strict": false, "passed": true, "type": "exec", "render": "normal", "submission": 380335, "parent": 11034767}, {"id": 11034770, "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.48563671112060547, "score": null, "hint": null, "strict": true, "passed": true, "type": "exec", "render": "normal", "submission": 380335, "parent": null}, {"id": 11034771, "title": "Makefile Checks", "description": null, "duration": 0.5976645946502686, "score": 0.0, "hint": null, "strict": true, "passed": true, "type": "suite", "render": "normal", "submission": 380335, "parent": null}, {"id": 11034772, "title": "make all", "description": "Test target \"all\"", "duration": 0.15486693382263184, "score": null, "hint": null, "strict": false, "passed": true, "type": "exec", "render": "normal", "submission": 380335, "parent": 11034771}, {"id": 11034773, "title": "make clean", "description": "Test target \"clean\"", "duration": 0.15193724632263184, "score": null, "hint": null, "strict": false, "passed": true, "type": "exec", "render": "normal", "submission": 380335, "parent": 11034771}, {"id": 11034774, "title": "make bmp", "description": "Test target \"bmp\"", "duration": 0.15001726150512695, "score": null, "hint": null, "strict": false, "passed": true, "type": "exec", "render": "normal", "submission": 380335, "parent": 11034771}, {"id": 11034775, "title": "make transformations", "description": "Test target \"transformations\"", "duration": 0.14084315299987793, "score": null, "hint": null, "strict": false, "passed": true, "type": "exec", "render": "normal", "submission": 380335, "parent": 11034771}, {"id": 11034776, "title": "BMP Module", "description": "Tests of BMP module.", "duration": 12.63168215751648, "score": 12.0, "hint": null, "strict": false, "passed": false, "type": "suite", "render": "normal", "submission": 380335, "parent": null}, {"id": 11034777, "title": "Suite `read_bmp_header()`", "description": null, "duration": 8.6145601272583, "score": 9.5, "hint": null, "strict": false, "passed": true, "type": "suite", "render": "normal", "submission": 380335, "parent": 11034776}, {"id": 11034778, "title": "Dry Run", "description": "Given the `NULL` stream\nWhen the function is called\nThen `NULL` must be returned.\n", "duration": 0.1947948932647705, "score": 0.5, "hint": null, "strict": true, "passed": true, "type": "exec", "render": "normal", "submission": 380335, "parent": 11034777}, {"id": 11034779, "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.17755126953125, "score": 0.5, "hint": null, "strict": true, "passed": true, "type": "exec", "render": "normal", "submission": 380335, "parent": 11034777}, {"id": 11034780, "title": "Valid Type - Valgrind", "description": null, "duration": 1.2186648845672607, "score": 1.0, "hint": null, "strict": false, "passed": true, "type": "exec", "render": "normal", "submission": 380335, "parent": 11034777}, {"id": 11034781, "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.1897592544555664, "score": 0.5, "hint": null, "strict": true, "passed": true, "type": "exec", "render": "normal", "submission": 380335, "parent": 11034777}, {"id": 11034782, "title": "Valid Width and Height - Valgrind", "description": null, "duration": 1.2299540042877197, "score": 1.0, "hint": null, "strict": false, "passed": true, "type": "exec", "render": "normal", "submission": 380335, "parent": 11034777}, {"id": 11034783, "title": "Invalid Stream - Unit Test", "description": "Given invalid BMP stream\nWhen the function is invoked\nThen `NULL` must be returned.\n", "duration": 0.22367429733276367, "score": 0.5, "hint": null, "strict": true, "passed": true, "type": "exec", "render": "normal", "submission": 380335, "parent": 11034777}, {"id": 11034784, "title": "Not a BMP Stream - Valgrind", "description": null, "duration": 1.1591739654541016, "score": 1.0, "hint": null, "strict": false, "passed": true, "type": "exec", "render": "normal", "submission": 380335, "parent": 11034777}, {"id": 11034785, "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.1758565902709961, "score": 0.5, "hint": null, "strict": true, "passed": true, "type": "exec", "render": "normal", "submission": 380335, "parent": 11034777}, {"id": 11034786, "title": "Stream not at the Beginning - Valgrind", "description": null, "duration": 1.1846983432769775, "score": 1.0, "hint": null, "strict": false, "passed": true, "type": "exec", "render": "normal", "submission": 380335, "parent": 11034777}, {"id": 11034787, "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.19613289833068848, "score": 0.5, "hint": null, "strict": true, "passed": true, "type": "exec", "render": "normal", "submission": 380335, "parent": 11034777}, {"id": 11034788, "title": "Size of the File - Valgrind", "description": null, "duration": 1.2453587055206299, "score": 1.0, "hint": null, "strict": false, "passed": true, "type": "exec", "render": "normal", "submission": 380335, "parent": 11034777}, {"id": 11034789, "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.19157123565673828, "score": 0.5, "hint": null, "strict": true, "passed": true, "type": "exec", "render": "normal", "submission": 380335, "parent": 11034777}, {"id": 11034790, "title": "Test Content of Populated Header - Valgrind", "description": null, "duration": 1.227369785308838, "score": 1.0, "hint": null, "strict": false, "passed": true, "type": "exec", "render": "normal", "submission": 380335, "parent": 11034777}, {"id": 11034791, "title": "Suite `read_bmp_data()`", "description": null, "duration": 0.5572748184204102, "score": 1.5, "hint": null, "strict": false, "passed": false, "type": "suite", "render": "normal", "submission": 380335, "parent": 11034776}, {"id": 11034792, "title": "Dry Run", "description": "When the function is called with `NULL` stream\nAND `NULL` header\nThen `NULL` will be returned.\n", "duration": 0.18505859375, "score": 0.5, "hint": null, "strict": true, "passed": true, "type": "exec", "render": "normal", "submission": 380335, "parent": 11034791}, {"id": 11034793, "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.17516183853149414, "score": 1.0, "hint": null, "strict": true, "passed": true, "type": "exec", "render": "normal", "submission": 380335, "parent": 11034791}, {"id": 11034794, "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.19705438613891602, "score": 0.0, "hint": null, "strict": true, "passed": false, "type": "exec", "render": "normal", "submission": 380335, "parent": 11034791}, {"id": 11034795, "title": "Suite `read_bmp()`", "description": null, "duration": 0.3925211429595947, "score": 0.5, "hint": null, "strict": false, "passed": false, "type": "suite", "render": "normal", "submission": 380335, "parent": 11034776}, {"id": 11034796, "title": "Dry Run", "description": "Given the `NULL` stream\nWhen the function is called\nThen `NULL` will be returned.\n", "duration": 0.18975234031677246, "score": 0.5, "hint": null, "strict": true, "passed": true, "type": "exec", "render": "normal", "submission": 380335, "parent": 11034795}, {"id": 11034797, "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.20276880264282227, "score": 0.0, "hint": null, "strict": true, "passed": false, "type": "exec", "render": "normal", "submission": 380335, "parent": 11034795}, {"id": 11034798, "title": "Suite `free_bmp_image()`", "description": null, "duration": 1.9864020347595215, "score": 0.5, "hint": null, "strict": false, "passed": false, "type": "suite", "render": "normal", "submission": 380335, "parent": 11034776}, {"id": 11034799, "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.3888130187988281, "score": 0.0, "hint": null, "strict": false, "passed": false, "type": "suite", "render": "normal", "submission": 380335, "parent": 11034798}, {"id": 11034800, "title": "Dry Run - Unit Test", "description": null, "duration": 0.3888130187988281, "score": 0.0, "hint": null, "strict": true, "passed": false, "type": "exec", "render": "normal", "submission": 380335, "parent": 11034799}, {"id": 11034801, "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.18128061294555664, "score": 0.5, "hint": null, "strict": true, "passed": true, "type": "exec", "render": "normal", "submission": 380335, "parent": 11034798}, {"id": 11034802, "title": "Free Image - Valgrind", "description": null, "duration": 1.4163084030151367, "score": 0.0, "hint": null, "strict": false, "passed": false, "type": "exec", "render": "normal", "submission": 380335, "parent": 11034798}, {"id": 11034803, "title": "Module Transformations", "description": "Tests for module Transformations.", "duration": 4.003673553466797, "score": 2.0, "hint": null, "strict": false, "passed": false, "type": "suite", "render": "normal", "submission": 380335, "parent": null}, {"id": 11034804, "title": "Suite `flip_horizontally()`", "description": null, "duration": 0.5827789306640625, "score": 0.5, "hint": null, "strict": false, "passed": false, "type": "suite", "render": "normal", "submission": 380335, "parent": 11034803}, {"id": 11034805, "title": "Dry Run Test", "description": "When the function is called with `NULL` image,\nThen `NULL` will be returned.\n", "duration": 0.1952674388885498, "score": 0.5, "hint": null, "strict": true, "passed": true, "type": "exec", "render": "normal", "submission": 380335, "parent": 11034804}, {"id": 11034806, "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.3875114917755127, "score": 0.0, "hint": null, "strict": true, "passed": false, "type": "exec", "render": "normal", "submission": 380335, "parent": 11034804}, {"id": 11034807, "title": "Suite `flip_vertically()`", "description": null, "duration": 0.5476622581481934, "score": 0.5, "hint": null, "strict": false, "passed": false, "type": "suite", "render": "normal", "submission": 380335, "parent": 11034803}, {"id": 11034808, "title": "Dry Run Test", "description": "When the function is called with `NULL` image,\nThen `NULL` will be returned.\n", "duration": 0.16976594924926758, "score": 0.5, "hint": null, "strict": true, "passed": true, "type": "exec", "render": "normal", "submission": 380335, "parent": 11034807}, {"id": 11034809, "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.3778963088989258, "score": 0.0, "hint": null, "strict": true, "passed": false, "type": "exec", "render": "normal", "submission": 380335, "parent": 11034807}, {"id": 11034810, "title": "Suite `rotate_right()`", "description": null, "duration": 0.6028234958648682, "score": 0.5, "hint": null, "strict": false, "passed": false, "type": "suite", "render": "normal", "submission": 380335, "parent": 11034803}, {"id": 11034811, "title": "Dry Run Test", "description": "When the function is called with `NULL` image,\nThen `NULL` will be returned.\n", "duration": 0.1744694709777832, "score": 0.5, "hint": null, "strict": true, "passed": true, "type": "exec", "render": "normal", "submission": 380335, "parent": 11034810}, {"id": 11034812, "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.42835402488708496, "score": 0.0, "hint": null, "strict": true, "passed": false, "type": "exec", "render": "normal", "submission": 380335, "parent": 11034810}, {"id": 11034813, "title": "Suite `rotate_left()`", "description": null, "duration": 0.5355186462402344, "score": 0.5, "hint": null, "strict": false, "passed": false, "type": "suite", "render": "normal", "submission": 380335, "parent": 11034803}, {"id": 11034814, "title": "Dry Run Test", "description": "When the function is called with `NULL` image,\nThen `NULL` will be returned.\n", "duration": 0.16884279251098633, "score": 0.5, "hint": null, "strict": true, "passed": true, "type": "exec", "render": "normal", "submission": 380335, "parent": 11034813}, {"id": 11034815, "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.36667585372924805, "score": 0.0, "hint": null, "strict": true, "passed": false, "type": "exec", "render": "normal", "submission": 380335, "parent": 11034813}, {"id": 11034816, "title": "Suite `crop()`", "description": null, "duration": 0.2006850242614746, "score": 0.0, "hint": null, "strict": false, "passed": false, "type": "suite", "render": "normal", "submission": 380335, "parent": 11034803}, {"id": 11034817, "title": "Dry Run Test", "description": "When the function is called with `NULL` image,\nThen `NULL` will be returned.\n", "duration": 0.2006850242614746, "score": 0.0, "hint": null, "strict": true, "passed": false, "type": "exec", "render": "normal", "submission": 380335, "parent": 11034816}, {"id": 11034818, "title": "Suite `extract()`", "description": null, "duration": 0.18349957466125488, "score": 0.0, "hint": null, "strict": false, "passed": false, "type": "suite", "render": "normal", "submission": 380335, "parent": 11034803}, {"id": 11034819, "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.18349957466125488, "score": 0.0, "hint": null, "strict": true, "passed": false, "type": "exec", "render": "normal", "submission": 380335, "parent": 11034818}, {"id": 11034820, "title": "Suite `scale()`", "description": null, "duration": 0.18482637405395508, "score": 0.0, "hint": null, "strict": false, "passed": false, "type": "suite", "render": "normal", "submission": 380335, "parent": 11034803}, {"id": 11034821, "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.18482637405395508, "score": 0.0, "hint": null, "strict": true, "passed": false, "type": "exec", "render": "normal", "submission": 380335, "parent": 11034820}], "id": 380335, "resource_id": "5dc574b1-f6ec-4881-a781-8866e552a3e2", "date_submitted": "2021-04-29T22:26:24Z", "date_evaluated": "2021-04-30T00:12:39.121Z", "max_score": 100.0}