SE 3800 Cube Example: testing with coverage

This code uses a trivial function to illustrate adding tests and collect statement coverage with makefiles. To use this in Linux, you will need

        sudo apt-get install -y libgtest-dev lcov
        cd /usr/src/gtest
        sudo cmake CMakeLists.txt
        sudo make
        sudo cp *.a /usr/lib

The files:

To run in Ubuntu:
  1. Download cube.h, cube.cpp, main.cpp, cube_test.cpp, Makefile
  2. Install software:
            sudo apt-get install -y g++ cmake libgtest-dev lcov
            cd /usr/src/gtest
            sudo cmake CMakeLists.txt
            sudo make
            sudo cp *.a /usr/lib
    
  3. make
  4. make coverage
  5. xdg-open code_coverage_report/index.html