calculator (Linux) - unit tests 1.1.1
calculator - Unit Tests
Loading...
Searching...
No Matches
Classes | Functions
calculator_test.cpp File Reference
#include "gtest/gtest.h"
#include "../../calculator/header/calculator.h"
Include dependency graph for calculator_test.cpp:

Go to the source code of this file.

Classes

class  CalculatorTest
 

Functions

 TEST_F (CalculatorTest, TestAdd)
 
 TEST_F (CalculatorTest, TestSubtract)
 
 TEST_F (CalculatorTest, TestMultiply)
 
 TEST_F (CalculatorTest, TestDivide)
 
 TEST_F (CalculatorTest, TestDivideByZero)
 
int main (int argc, char **argv)
 The main function of the test program.
 

Function Documentation

◆ main()

int main ( int  argc,
char **  argv 
)

The main function of the test program.

Parameters
argcThe number of command-line arguments.
argvAn array of command-line argument strings.
Returns
int The exit status of the program.

Definition at line 50 of file calculator_test.cpp.

◆ TEST_F() [1/5]

TEST_F ( CalculatorTest  ,
TestAdd   
)

Definition at line 19 of file calculator_test.cpp.

◆ TEST_F() [2/5]

TEST_F ( CalculatorTest  ,
TestDivide   
)

Definition at line 34 of file calculator_test.cpp.

◆ TEST_F() [3/5]

TEST_F ( CalculatorTest  ,
TestDivideByZero   
)

Definition at line 39 of file calculator_test.cpp.

◆ TEST_F() [4/5]

TEST_F ( CalculatorTest  ,
TestMultiply   
)

Definition at line 29 of file calculator_test.cpp.

◆ TEST_F() [5/5]

TEST_F ( CalculatorTest  ,
TestSubtract   
)

Definition at line 24 of file calculator_test.cpp.