how do i unit test the above subroutine? get_sql_details() is the subroutine which is SQL string. get_html_content() is the Html content both subroutines are in the same package What are the steps that are need to be taken for unit testing?sub get_detail_team($team,$debug){ my $dbh = connect to databasehandle my sql = get_sql_details($team,$debug) my $sth = $dbh->prepare($sql) $sth->execute() my $result = $sth->fetchall_arrayref(); return get_html_content($result,prama) }
In reply to How do i Unit Test a subroutine by ejvar
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |