{"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": 45.5, "percentage": 45.5, "testcases": [{"id": 11091988, "title": "Structure Check", "description": null, "duration": 0.10690879821777344, "score": null, "hint": null, "strict": true, "passed": true, "type": "ws", "render": "normal", "submission": 381357, "parent": null}, {"id": 11091989, "title": "About Tools", "description": "Provides info about the tools. Mostly their versions.\n", "duration": 0.18860936164855957, "score": null, "hint": null, "strict": false, "passed": true, "type": "exec", "render": "normal", "submission": 381357, "parent": null}, {"id": 11091990, "title": "Globals", "description": "Searching for global variables, usage of which is _forbidden_.\n", "duration": 0.21807074546813965, "score": null, "hint": null, "strict": true, "passed": true, "type": "exec", "render": "normal", "submission": 381357, "parent": null}, {"id": 11091991, "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.24973154067993164, "score": null, "hint": null, "strict": true, "passed": true, "type": "exec", "render": "normal", "submission": 381357, "parent": null}, {"id": 11091992, "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.40398740768432617, "score": 0.0, "hint": null, "strict": true, "passed": true, "type": "suite", "render": "normal", "submission": 381357, "parent": null}, {"id": 11091993, "title": "bmp.h", "description": null, "duration": 0.20998334884643555, "score": null, "hint": null, "strict": false, "passed": true, "type": "exec", "render": "normal", "submission": 381357, "parent": 11091992}, {"id": 11091994, "title": "transformations.h", "description": null, "duration": 0.19400405883789062, "score": null, "hint": null, "strict": false, "passed": true, "type": "exec", "render": "normal", "submission": 381357, "parent": 11091992}, {"id": 11091995, "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.5409057140350342, "score": null, "hint": null, "strict": true, "passed": true, "type": "exec", "render": "normal", "submission": 381357, "parent": null}, {"id": 11091996, "title": "Makefile Checks", "description": null, "duration": 0.6976892948150635, "score": 0.0, "hint": null, "strict": true, "passed": true, "type": "suite", "render": "normal", "submission": 381357, "parent": null}, {"id": 11091997, "title": "make all", "description": "Test target \"all\"", "duration": 0.2196953296661377, "score": null, "hint": null, "strict": false, "passed": true, "type": "exec", "render": "normal", "submission": 381357, "parent": 11091996}, {"id": 11091998, "title": "make clean", "description": "Test target \"clean\"", "duration": 0.15977931022644043, "score": null, "hint": null, "strict": false, "passed": true, "type": "exec", "render": "normal", "submission": 381357, "parent": 11091996}, {"id": 11091999, "title": "make bmp", "description": "Test target \"bmp\"", "duration": 0.16392207145690918, "score": null, "hint": null, "strict": false, "passed": true, "type": "exec", "render": "normal", "submission": 381357, "parent": 11091996}, {"id": 11092000, "title": "make transformations", "description": "Test target \"transformations\"", "duration": 0.15429258346557617, "score": null, "hint": null, "strict": false, "passed": true, "type": "exec", "render": "normal", "submission": 381357, "parent": 11091996}, {"id": 11092001, "title": "BMP Module", "description": "Tests of BMP module.", "duration": 16.441277027130127, "score": 19.5, "hint": null, "strict": false, "passed": true, "type": "suite", "render": "normal", "submission": 381357, "parent": null}, {"id": 11092002, "title": "Suite `read_bmp_header()`", "description": null, "duration": 8.62167477607727, "score": 9.5, "hint": null, "strict": false, "passed": true, "type": "suite", "render": "normal", "submission": 381357, "parent": 11092001}, {"id": 11092003, "title": "Dry Run", "description": "Given the `NULL` stream\nWhen the function is called\nThen `NULL` must be returned.\n", "duration": 0.22177457809448242, "score": 0.5, "hint": null, "strict": true, "passed": true, "type": "exec", "render": "normal", "submission": 381357, "parent": 11092002}, {"id": 11092004, "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.21230268478393555, "score": 0.5, "hint": null, "strict": true, "passed": true, "type": "exec", "render": "normal", "submission": 381357, "parent": 11092002}, {"id": 11092005, "title": "Valid Type - Valgrind", "description": null, "duration": 1.2005033493041992, "score": 1.0, "hint": null, "strict": false, "passed": true, "type": "exec", "render": "normal", "submission": 381357, "parent": 11092002}, {"id": 11092006, "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.18224668502807617, "score": 0.5, "hint": null, "strict": true, "passed": true, "type": "exec", "render": "normal", "submission": 381357, "parent": 11092002}, {"id": 11092007, "title": "Valid Width and Height - Valgrind", "description": null, "duration": 1.2279984951019287, "score": 1.0, "hint": null, "strict": false, "passed": true, "type": "exec", "render": "normal", "submission": 381357, "parent": 11092002}, {"id": 11092008, "title": "Invalid Stream - Unit Test", "description": "Given invalid BMP stream\nWhen the function is invoked\nThen `NULL` must be returned.\n", "duration": 0.21144747734069824, "score": 0.5, "hint": null, "strict": true, "passed": true, "type": "exec", "render": "normal", "submission": 381357, "parent": 11092002}, {"id": 11092009, "title": "Not a BMP Stream - Valgrind", "description": null, "duration": 1.14329195022583, "score": 1.0, "hint": null, "strict": false, "passed": true, "type": "exec", "render": "normal", "submission": 381357, "parent": 11092002}, {"id": 11092010, "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.18152356147766113, "score": 0.5, "hint": null, "strict": true, "passed": true, "type": "exec", "render": "normal", "submission": 381357, "parent": 11092002}, {"id": 11092011, "title": "Stream not at the Beginning - Valgrind", "description": null, "duration": 1.1872401237487793, "score": 1.0, "hint": null, "strict": false, "passed": true, "type": "exec", "render": "normal", "submission": 381357, "parent": 11092002}, {"id": 11092012, "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.22615694999694824, "score": 0.5, "hint": null, "strict": true, "passed": true, "type": "exec", "render": "normal", "submission": 381357, "parent": 11092002}, {"id": 11092013, "title": "Size of the File - Valgrind", "description": null, "duration": 1.2083613872528076, "score": 1.0, "hint": null, "strict": false, "passed": true, "type": "exec", "render": "normal", "submission": 381357, "parent": 11092002}, {"id": 11092014, "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.21573710441589355, "score": 0.5, "hint": null, "strict": true, "passed": true, "type": "exec", "render": "normal", "submission": 381357, "parent": 11092002}, {"id": 11092015, "title": "Test Content of Populated Header - Valgrind", "description": null, "duration": 1.2030904293060303, "score": 1.0, "hint": null, "strict": false, "passed": true, "type": "exec", "render": "normal", "submission": 381357, "parent": 11092002}, {"id": 11092016, "title": "Suite `read_bmp_data()`", "description": null, "duration": 1.8659682273864746, "score": 3.5, "hint": null, "strict": false, "passed": true, "type": "suite", "render": "normal", "submission": 381357, "parent": 11092001}, {"id": 11092017, "title": "Dry Run", "description": "When the function is called with `NULL` stream\nAND `NULL` header\nThen `NULL` will be returned.\n", "duration": 0.1923069953918457, "score": 0.5, "hint": null, "strict": true, "passed": true, "type": "exec", "render": "normal", "submission": 381357, "parent": 11092016}, {"id": 11092018, "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.22210049629211426, "score": 1.0, "hint": null, "strict": true, "passed": true, "type": "exec", "render": "normal", "submission": 381357, "parent": 11092016}, {"id": 11092019, "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.20629143714904785, "score": 1.0, "hint": null, "strict": true, "passed": true, "type": "exec", "render": "normal", "submission": 381357, "parent": 11092016}, {"id": 11092020, "title": "Test Content of Data - Valgrind", "description": null, "duration": 1.2452692985534668, "score": 1.0, "hint": null, "strict": false, "passed": true, "type": "exec", "render": "normal", "submission": 381357, "parent": 11092016}, {"id": 11092021, "title": "Suite `read_bmp()`", "description": null, "duration": 1.9485862255096436, "score": 3.5, "hint": null, "strict": false, "passed": true, "type": "suite", "render": "normal", "submission": 381357, "parent": 11092001}, {"id": 11092022, "title": "Dry Run", "description": "Given the `NULL` stream\nWhen the function is called\nThen `NULL` will be returned.\n", "duration": 0.2106490135192871, "score": 0.5, "hint": null, "strict": true, "passed": true, "type": "exec", "render": "normal", "submission": 381357, "parent": 11092021}, {"id": 11092023, "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.23010015487670898, "score": 1.0, "hint": null, "strict": true, "passed": true, "type": "exec", "render": "normal", "submission": 381357, "parent": 11092021}, {"id": 11092024, "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.21738529205322266, "score": 1.0, "hint": null, "strict": true, "passed": true, "type": "exec", "render": "normal", "submission": 381357, "parent": 11092021}, {"id": 11092025, "title": "Content of BMP File - Valgrind", "description": null, "duration": 1.2904517650604248, "score": 1.0, "hint": null, "strict": false, "passed": true, "type": "exec", "render": "normal", "submission": 381357, "parent": 11092021}, {"id": 11092026, "title": "Suite `free_bmp_image()`", "description": null, "duration": 3.05007266998291, "score": 3.0, "hint": null, "strict": false, "passed": true, "type": "suite", "render": "normal", "submission": 381357, "parent": 11092001}, {"id": 11092027, "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": 1.4215543270111084, "score": 1.5, "hint": null, "strict": false, "passed": true, "type": "suite", "render": "normal", "submission": 381357, "parent": 11092026}, {"id": 11092028, "title": "Dry Run - Unit Test", "description": null, "duration": 0.2003786563873291, "score": 0.5, "hint": null, "strict": true, "passed": true, "type": "exec", "render": "normal", "submission": 381357, "parent": 11092027}, {"id": 11092029, "title": "Dry Run - Valgrind", "description": null, "duration": 1.2211756706237793, "score": 1.0, "hint": null, "strict": false, "passed": true, "type": "exec", "render": "normal", "submission": 381357, "parent": 11092027}, {"id": 11092030, "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.2509760856628418, "score": 0.5, "hint": null, "strict": true, "passed": true, "type": "exec", "render": "normal", "submission": 381357, "parent": 11092026}, {"id": 11092031, "title": "Free Image - Valgrind", "description": null, "duration": 1.37754225730896, "score": 1.0, "hint": null, "strict": false, "passed": true, "type": "exec", "render": "normal", "submission": 381357, "parent": 11092026}, {"id": 11092032, "title": "Module Transformations", "description": "Tests for module Transformations.", "duration": 14.451581001281738, "score": 26.0, "hint": null, "strict": false, "passed": false, "type": "suite", "render": "normal", "submission": 381357, "parent": null}, {"id": 11092033, "title": "Suite `flip_horizontally()`", "description": null, "duration": 6.255856990814209, "score": 11.5, "hint": null, "strict": false, "passed": true, "type": "suite", "render": "normal", "submission": 381357, "parent": 11092032}, {"id": 11092034, "title": "Dry Run Test", "description": "When the function is called with `NULL` image,\nThen `NULL` will be returned.\n", "duration": 0.20960474014282227, "score": 0.5, "hint": null, "strict": true, "passed": true, "type": "exec", "render": "normal", "submission": 381357, "parent": 11092033}, {"id": 11092035, "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.1939103603363037, "score": 1.0, "hint": null, "strict": true, "passed": true, "type": "exec", "render": "normal", "submission": 381357, "parent": 11092033}, {"id": 11092036, "title": "Header of Horizontally Flipped Image - Unit Test", "description": "Given the BMP image\nWhen function is called\nThen returned image is not null\nand header is not null\nand width remains unchanged\nand height remains same\nand size remains same\nand image_size remains same\n", "duration": 0.2320559024810791, "score": 1.0, "hint": null, "strict": true, "passed": true, "type": "exec", "render": "normal", "submission": 381357, "parent": 11092033}, {"id": 11092037, "title": "Header of Horizontally Flipped Image - Valgrind", "description": null, "duration": 2.330181837081909, "score": 1.0, "hint": null, "strict": false, "passed": true, "type": "exec", "render": "normal", "submission": 381357, "parent": 11092033}, {"id": 11092038, "title": "Data of Horizontally Flipped Image - Unit Test", "description": "Given the BMP image\nWhen function is called\nThen returned image is not null\nand data are flipped horizontally\n", "duration": 0.23634815216064453, "score": 1.0, "hint": null, "strict": true, "passed": true, "type": "exec", "render": "normal", "submission": 381357, "parent": 11092033}, {"id": 11092039, "title": "Data of Horizontally Flipped Image - Valgrind", "description": null, "duration": 1.2444663047790527, "score": 1.0, "hint": null, "strict": false, "passed": true, "type": "exec", "render": "normal", "submission": 381357, "parent": 11092033}, {"id": 11092040, "title": "Data of Horizontally Flipped Bigger Image - Unit Test", "description": "Given the BMP image\nWhen function is called\nThen returned image is not null\nand data are flipped horizontally\n", "duration": 0.20956182479858398, "score": 1.0, "hint": null, "strict": true, "passed": true, "type": "exec", "render": "normal", "submission": 381357, "parent": 11092033}, {"id": 11092041, "title": "Data of Horizontally Flipped Bigger Image - Valgrind", "description": null, "duration": 1.5997278690338135, "score": 5.0, "hint": null, "strict": false, "passed": true, "type": "exec", "render": "normal", "submission": 381357, "parent": 11092033}, {"id": 11092042, "title": "Suite `flip_vertically()`", "description": null, "duration": 4.934656858444214, "score": 11.5, "hint": null, "strict": false, "passed": true, "type": "suite", "render": "normal", "submission": 381357, "parent": 11092032}, {"id": 11092043, "title": "Dry Run Test", "description": "When the function is called with `NULL` image,\nThen `NULL` will be returned.\n", "duration": 0.1930708885192871, "score": 0.5, "hint": null, "strict": true, "passed": true, "type": "exec", "render": "normal", "submission": 381357, "parent": 11092042}, {"id": 11092044, "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.17743849754333496, "score": 1.0, "hint": null, "strict": true, "passed": true, "type": "exec", "render": "normal", "submission": 381357, "parent": 11092042}, {"id": 11092045, "title": "Header of vertically Flipped Image - Unit Test", "description": "Given the BMP image\nWhen function is called\nThen returned image is not null\nand header is not null\nand width remains unchanged\nand height remains same\nand size remains same\nand image_size remains same\n", "duration": 0.17770624160766602, "score": 1.0, "hint": null, "strict": true, "passed": true, "type": "exec", "render": "normal", "submission": 381357, "parent": 11092042}, {"id": 11092046, "title": "Header of vertically Flipped Image - Valgrind", "description": null, "duration": 1.2387840747833252, "score": 1.0, "hint": null, "strict": false, "passed": true, "type": "exec", "render": "normal", "submission": 381357, "parent": 11092042}, {"id": 11092047, "title": "Data of vertically Flipped Image - Unit Test", "description": "Given the BMP image\nWhen function is called\nThen returned image is not null\nand data are flipped vertically\n", "duration": 0.19233989715576172, "score": 1.0, "hint": null, "strict": true, "passed": true, "type": "exec", "render": "normal", "submission": 381357, "parent": 11092042}, {"id": 11092048, "title": "Data of vertically Flipped Image - Valgrind", "description": null, "duration": 1.1624329090118408, "score": 1.0, "hint": null, "strict": false, "passed": true, "type": "exec", "render": "normal", "submission": 381357, "parent": 11092042}, {"id": 11092049, "title": "Data of Vertically Flipped Bigger Image - Unit Test", "description": "Given the BMP image\nWhen function is called\nThen returned image is not null\nand data are flipped vertically\n", "duration": 0.19868087768554688, "score": 1.0, "hint": null, "strict": true, "passed": true, "type": "exec", "render": "normal", "submission": 381357, "parent": 11092042}, {"id": 11092050, "title": "Data of Vertically Flipped Bigger Image - Valgrind", "description": null, "duration": 1.5942034721374512, "score": 5.0, "hint": null, "strict": false, "passed": true, "type": "exec", "render": "normal", "submission": 381357, "parent": 11092042}, {"id": 11092051, "title": "Suite `rotate_right()`", "description": null, "duration": 0.6567153930664062, "score": 1.5, "hint": null, "strict": false, "passed": false, "type": "suite", "render": "normal", "submission": 381357, "parent": 11092032}, {"id": 11092052, "title": "Dry Run Test", "description": "When the function is called with `NULL` image,\nThen `NULL` will be returned.\n", "duration": 0.20020651817321777, "score": 0.5, "hint": null, "strict": true, "passed": true, "type": "exec", "render": "normal", "submission": 381357, "parent": 11092051}, {"id": 11092053, "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.21865248680114746, "score": 1.0, "hint": null, "strict": true, "passed": true, "type": "exec", "render": "normal", "submission": 381357, "parent": 11092051}, {"id": 11092054, "title": "Test Header of Right Rotated Image - Unit Test", "description": "Given the BMP Image\nWhen function is called\nThen returned image is not null\nand header is not null\nand width and height are swapped with eachother\nand size remains same\nand image_size remains same\n", "duration": 0.23785638809204102, "score": 0.0, "hint": null, "strict": true, "passed": false, "type": "exec", "render": "normal", "submission": 381357, "parent": 11092051}, {"id": 11092055, "title": "Suite `rotate_left()`", "description": null, "duration": 0.7493975162506104, "score": 1.5, "hint": null, "strict": false, "passed": false, "type": "suite", "render": "normal", "submission": 381357, "parent": 11092032}, {"id": 11092056, "title": "Dry Run Test", "description": "When the function is called with `NULL` image,\nThen `NULL` will be returned.\n", "duration": 0.2406308650970459, "score": 0.5, "hint": null, "strict": true, "passed": true, "type": "exec", "render": "normal", "submission": 381357, "parent": 11092055}, {"id": 11092057, "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.2520914077758789, "score": 1.0, "hint": null, "strict": true, "passed": true, "type": "exec", "render": "normal", "submission": 381357, "parent": 11092055}, {"id": 11092058, "title": "Test Header of Left Rotated Image - Unit Test", "description": "Given the BMP Image\nWhen function is called\nThen returned image is not null\nand header is not null\nand width and height are swapped with eachother\nand size remains same\nand image_size remains same\n", "duration": 0.25667524337768555, "score": 0.0, "hint": null, "strict": true, "passed": false, "type": "exec", "render": "normal", "submission": 381357, "parent": 11092055}, {"id": 11092059, "title": "Suite `crop()`", "description": null, "duration": 0.2112579345703125, "score": 0.0, "hint": null, "strict": false, "passed": false, "type": "suite", "render": "normal", "submission": 381357, "parent": 11092032}, {"id": 11092060, "title": "Dry Run Test", "description": "When the function is called with `NULL` image,\nThen `NULL` will be returned.\n", "duration": 0.2112579345703125, "score": 0.0, "hint": null, "strict": true, "passed": false, "type": "exec", "render": "normal", "submission": 381357, "parent": 11092059}, {"id": 11092061, "title": "Suite `extract()`", "description": null, "duration": 0.23718738555908203, "score": 0.0, "hint": null, "strict": false, "passed": false, "type": "suite", "render": "normal", "submission": 381357, "parent": 11092032}, {"id": 11092062, "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.23718738555908203, "score": 0.0, "hint": null, "strict": true, "passed": false, "type": "exec", "render": "normal", "submission": 381357, "parent": 11092061}, {"id": 11092063, "title": "Suite `scale()`", "description": null, "duration": 0.27442455291748047, "score": 0.0, "hint": null, "strict": false, "passed": false, "type": "suite", "render": "normal", "submission": 381357, "parent": 11092032}, {"id": 11092064, "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.27442455291748047, "score": 0.0, "hint": null, "strict": true, "passed": false, "type": "exec", "render": "normal", "submission": 381357, "parent": 11092063}], "id": 381357, "resource_id": "735c2768-9aa6-40a6-8ad8-20e4f9b2de3c", "date_submitted": "2021-04-30T21:17:57Z", "date_evaluated": "2021-04-30T22:16:00.589Z", "max_score": 100.0}