Function(s) to test:
    - readfile()
    - read_record()
    - save_record()

Input function type and test scope:
    A - valid data with known output (check correctness)
    B - structured, but not valid data (check strength)
    C - structured, with random data (check strength)

Scope: Increase the detection of errors that could
       determine conditions of software vulnerabilities.
       
Output: input and (possible) comments,
        (possible) function errors/success,
        (possible) explanations and/or solutions.

        
----------------------------------------------------------------------------------------------------------
TEST n°1:

Data input (C): readfile()

        /*
            Generate a random file.
            
            If the file given to testing function results
            correct, comparing to the passed parameters, 
            (passed variable schema_ok becomes true), 
            the other passed data (mapCurrentRow and mapCurrentCol)
            and the function return value are consistent.
        */

No errors.
        
----------------------------------------------------------------------------------------------------------
TEST n°2:

Data input (B): readfile() 

        /*
                Give a file that not exists to the function

                The variable schema_ok becomes false, 
                the variables mapCurrentRow and mapCurrentCol
                aren't changed, 
                the function returns null values ('\0').
        */

No errors.
        
----------------------------------------------------------------------------------------------------------
TEST n°3:

Data input (A): readfile()

        /*
                Create a random (but with certains data) 
                input file.

                If the file given to testing function results
                correct, comparing to the passed parameters, 
                (passed variable schema_ok becomes true), 
                the other passed data (mapCurrentRow and mapCurrentCol)
                and the function return value are consistent.
        */

No errors.
        
----------------------------------------------------------------------------------------------------------
TEST n°4:

Data input (C): read_record()

        /*
                Create a random input file.

                Function return true or false.
                If true set the passed variable 
                with number of read rows.
        */

No errors.
        
----------------------------------------------------------------------------------------------------------
TEST n°5:

Data input (C): read_record()

        /*
                Create a random (but with certains data) 
                input file.

                Function return true or false.
                If true set the passed variable 
                with number of read rows.
        */

No errors.
        
----------------------------------------------------------------------------------------------------------
TEST n°6:

Data input (A): read_record() 

        /*
                Create a valid input file.

                Function must return true and set the passed
                variable with number of read rows.
        */

No errors.
        
----------------------------------------------------------------------------------------------------------
TEST n°7:

Data input (A): save_record()

        /*
                Create a random valid input data.

                The function must create a file containing
                the passed data; the function is void type.
        */

No errors.
        
----------------------------------------------------------------------------------------------------------

