< Summary - calculator library documentation coverage (Linux)

Information
Class: /home/runner/work/cpp-cmake-ctest-template/cpp-cmake-ctest-template/src/calculator/header/calculator.h
Assembly: Default
File(s): /home/runner/work/cpp-cmake-ctest-template/cpp-cmake-ctest-template/src/calculator/header/calculator.h
Line coverage
75%
Covered lines: 6
Uncovered lines: 2
Coverable lines: 8
Total lines: 62
Line coverage: 75%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Coverage history

Coverage history 0 25 50 75 100 09/30/2026 - 03:05:56 Line coverage: 75% (6/8) Total lines: 62

File(s)

/home/runner/work/cpp-cmake-ctest-template/cpp-cmake-ctest-template/src/calculator/header/calculator.h

#LineLine coverage
 11/**
 2 * @file calculator.h
 3 *
 4 * @brief Provides functions for math. utilities
 5 */
 6
 7#ifndef CALCULATOR_H
 8#define CALCULATOR_H
 9
 10#include "../../utility/header/commonTypes.h"
 11
 012namespace Coruh
 13{
 014    namespace Calculator
 15    {
 16        /**
 17            @class Calculator
 18            @brief Provides Basic functions for various operations.
 19        */
 120        class Calculator
 21        {
 22        public:
 23            /**
 24             * Adds two numbers.
 25             * @param a First operand.
 26             * @param b Second operand.
 27             * @return The sum of a and b.
 28             */
 129            static double add(double a, double b);
 30
 31            /**
 32             * Subtracts the second number from the first.
 33             * @param a Minuend.
 34             * @param b Subtrahend.
 35             * @return The result of a - b.
 36             */
 137            static double subtract(double a, double b);
 38
 39            /**
 40             * Multiplies two numbers.
 41             * @param a First operand.
 42             * @param b Second operand.
 43             * @return The product of a and b.
 44             */
 145            static double multiply(double a, double b);
 46
 47            /**
 48             * Divides the first number by the second.
 49             * Throws std::invalid_argument if the second number is zero.
 50             * @param a Dividend.
 51             * @param b Divisor.
 52             * @return The result of a / b.
 53             * @throws std::invalid_argument If b is zero.
 54             */
 155            static double divide(double a, double b);
 56
 57
 58        };
 59    }
 60}
 61
 62#endif // CALCULATOR_H

Methods/Properties