LCOV - code coverage report
Current view: top level - calculator\src\calculator.cpp - calculator.cpp (source / functions) Hit Total Coverage
Test: calculator library documentation coverage - genhtml (Windows) Lines: 0 1 0.0 %
Date: Wed Sep 30 03:07:43 2026 Functions: 0 0 -
Legend: Lines: hit not hit

          Line data    Source code
       1           0 : #include "../header/calculator.h"
       2             : #include <stdexcept>
       3             : 
       4             : using namespace Coruh::Calculator;
       5             : 
       6             : double Calculator::add(double a, double b) {
       7             :     return a + b;
       8             : }
       9             : 
      10             : double Calculator::subtract(double a, double b) {
      11             :     return a - b;
      12             : }
      13             : 
      14             : double Calculator::multiply(double a, double b) {
      15             :     return a * b;
      16             : }
      17             : 
      18             : double Calculator::divide(double a, double b) {
      19             :     if (b == 0) {
      20             :         throw std::invalid_argument("Division by zero is not allowed.");
      21             :     }
      22             :     return a / b;
      23             : }

Generated by: LCOV version 1.15.alpha0w