TEST FALLITO
Funzione testata: estraiHeaders("From: davidbenedetti@dav.it", "hfrtnftfdtbdt", 1000)
Argomento in esame: Primo
Risultato atteso: RESULT_OK
Risultato ottenuto: BODY_NOT_FOUND
Possibile causa: La funzione ritorna un codice di errore anche per parametri corretti

TEST FALLITO
Funzione testata: estraiHeaders("From: davidbenedetti@dav.it", "vdjmlofoerfdje", 1000)
Argomento in esame: Secondo
Risultato atteso: RESULT_OK
Risultato ottenuto: BODY_NOT_FOUND
Possibile causa: La funzione ritorna un codice di errore anche per parametri corretti

TEST FALLITO
Funzione testata: estraiHeaders("From: davidbenedetti@dav.it", "fddfbfbnrieef", 1000)
Argomento in esame: Terzo
Risultato atteso: RESULT_OK
Risultato ottenuto: BODY_NOT_FOUND
Possibile causa: La funzione ritorna un codice di errore anche per parametri corretti







































TEST FALLITO
Funzione testata: estraiHeaders("From: davidbenedetti@dav.it", "bnghewrds", 20)
Argomento in esame: Secondo
Risultato atteso: BUFFER_TOO_SMALL
Risultato ottenuto: BODY_NOT_FOUND
Possibile causa: La funzione non controlla se il buffer è sufficientemene capiente





































































TEST FALLITO
Funzione testata: primoHeader(buffer1, buffer2, 1000)
Argomento in esame: Primo
Risultato atteso: HEADER_NOT_FOUND
Risultato ottenuto: RESULT_OK
Possibile causa: La funzione non controlla l'esistenza dello header nella email































TEST FALLITO
Funzione testata: parseHeader(buffer1, NULL, 1000, buffer3, 1000)
Argomento in esame: Secondo
Risultato atteso: NULL_POINTER
Risultato ottenuto: EMPTY_STRING
Possibile causa: La funzione non controlla se riceve un puntatore nullo


TEST FALLITO
Funzione testata: parseHeader(buffer1, buffer2, 1000, NULL, 1000)
Argomento in esame: Quarto
Risultato atteso: NULL_POINTER
Risultato ottenuto: EMPTY_STRING
Possibile causa: La funzione non controlla se riceve un puntatore nullo





























TEST FALLITO
Funzione testata: parseHeader(buffer1, buffer2, -1, buffer3, 1000)
Argomento in esame: Terzo
Risultato atteso: BUFFER_TOO_SMALL
Risultato ottenuto: EMPTY_STRING
Possibile causa: La funzione non controlla se il buffer è sufficientemene capiente


TEST FALLITO
Funzione testata: parseHeader(buffer1, buffer2, 1000, buffer3, -1)
Argomento in esame: Quinto
Risultato atteso: BUFFER_TOO_SMALL
Risultato ottenuto: EMPTY_STRING
Possibile causa: La funzione non controlla se il buffer è sufficientemene capiente
































TEST FALLITO
Funzione testata: primaParola(buffer1, NULL, 1000)
Argomento in esame: Secondo
Risultato atteso: NULL_POINTER
Risultato ottenuto: EMPTY_STRING
Possibile causa: La funzione non controlla se riceve un puntatore nullo































TEST FALLITO
Funzione testata: primaParola(buffer1, buffer2, -1)
Argomento in esame: Terzo
Risultato atteso: BUFFER_TOO_SMALL
Risultato ottenuto: EMPTY_STRING
Possibile causa: La funzione non controlla se il buffer è sufficientemene capiente

































































TEST FALLITO
Funzione testata: tokenizzaEmail(buffer, array, -1)
Argomento in esame: Terzo
Risultato atteso: BUFFER_TOO_SMALL
Risultato ottenuto: EMPTY_STRING
Possibile causa: La funzione non controlla se il buffer è sufficientemene capiente
































































TEST FALLITO
Funzione testata: printTokens(tokenArray, -1)
Argomento in esame: Secondo
Risultato atteso: BUFFER_TOO_SMALL
Risultato ottenuto: RESULT_OK
Possibile causa: La funzione non controlla se il buffer è sufficientemene capiente