Solution 3: Code Testing and Profiling

Let’s solve the challenge set in the previous lesson.

We'll cover the following


Here are the test functions for a package that calculates numbers in the Fibonacci sequence. The fibonacci.go file contains the recursive function to calculate the nthnth Fibonacci number. The fibonacci_test.go file contains the test cases.

Get hands-on with 1200+ tech skills courses.