Saturday, March 6, 2021

Structural testing adequacy criteria - line coverage, branch coverage, path coverage

 structural testing adequacy criteria - line coverage, branch coverage, path coverage



unit testing tool - JUnit

 unit testing tool - JUnit



swtest - test possible corner cases ( called boundary testing)

 test possible corner cases - this is called boundary testing 

software testing


source: edx, automated software testing: unit testing, coverage criteria, and design for testability



arrays -> dynamically allocated arrays -> linked lists

 arrays -> dynamically allocated arrarys -> linked lists


chain of thought

succession of logic

logical order of evolution


source: harvard cs50, david malan



Free a linked list in C

 while(list!=NULL)

{

        node *tmp=list->next;

        free(list);

        list=tmp;

}



source: harvard cs50, david malan



Traverse a linked list in C

 for (node *tmp=list; tmp!=NULL; tmp=tmp->next)

{

        printf("%i\n", tmp->number);

}



source: harvard cs50, david malan