Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
sample1_unittest.cc File Reference
#include <limits.h>
#include "sample1.h"
#include "gtest/gtest.h"
+ Include dependency graph for sample1_unittest.cc:

Go to the source code of this file.

Functions

 TEST (FactorialTest, Negative)
 
 TEST (FactorialTest, Zero)
 
 TEST (FactorialTest, Positive)
 
 TEST (IsPrimeTest, Negative)
 
 TEST (IsPrimeTest, Trivial)
 
 TEST (IsPrimeTest, Positive)
 

Function Documentation

TEST ( FactorialTest  ,
Negative   
)

Definition at line 79 of file sample1_unittest.cc.

View newest version in sPHENIX GitHub at line 79 of file sample1_unittest.cc

References EXPECT_EQ, EXPECT_GT, and Factorial().

+ Here is the call graph for this function:

TEST ( FactorialTest  ,
Zero   
)

Definition at line 103 of file sample1_unittest.cc.

View newest version in sPHENIX GitHub at line 103 of file sample1_unittest.cc

References EXPECT_EQ, and Factorial().

+ Here is the call graph for this function:

TEST ( FactorialTest  ,
Positive   
)

Definition at line 108 of file sample1_unittest.cc.

View newest version in sPHENIX GitHub at line 108 of file sample1_unittest.cc

References EXPECT_EQ, and Factorial().

+ Here is the call graph for this function:

TEST ( IsPrimeTest  ,
Negative   
)

Definition at line 119 of file sample1_unittest.cc.

View newest version in sPHENIX GitHub at line 119 of file sample1_unittest.cc

References EXPECT_FALSE, and IsPrime().

+ Here is the call graph for this function:

TEST ( IsPrimeTest  ,
Trivial   
)

Definition at line 128 of file sample1_unittest.cc.

View newest version in sPHENIX GitHub at line 128 of file sample1_unittest.cc

References EXPECT_FALSE, EXPECT_TRUE, and IsPrime().

+ Here is the call graph for this function:

TEST ( IsPrimeTest  ,
Positive   
)

Definition at line 136 of file sample1_unittest.cc.

View newest version in sPHENIX GitHub at line 136 of file sample1_unittest.cc

References EXPECT_FALSE, EXPECT_TRUE, and IsPrime().

+ Here is the call graph for this function: