LCOV - code coverage report
Current view: top level - calculator/src - calculator.cpp (source / functions) Coverage Total Hit
Test: calculator library documentation coverage - genhtml (Linux) Lines: 0.0 % 1 0
Test Date: 2026-09-30 03:05:56 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 2.0-1