Suppose I have some code as such:
function1() {
function2()
}
function2() {
function3()
}
function3() {
function4()
}
function4() {
...
}
Do I have to write integration tests for function1(), function2() and function3()? Or do I only write integration tests for function1(), and unit tests for the other functions?