SERiF 0.0.1a
3+1D Stellar Structure and Evolution
Loading...
Searching...
No Matches
compositionTest.cpp File Reference
#include <gtest/gtest.h>
#include <stdexcept>
#include <string>
#include <algorithm>
#include "atomicSpecies.h"
#include "species.h"
#include "composition.h"
#include "config.h"

Go to the source code of this file.

Classes

class  compositionTest
 Test suite for the composition class. More...
 

Functions

 TEST_F (compositionTest, isotopeMasses)
 Test the constructor of the composition class.
 
 TEST_F (compositionTest, constructor)
 
 TEST_F (compositionTest, registerSymbol)
 
 TEST_F (compositionTest, setGetComposition)
 
 TEST_F (compositionTest, setGetNumberFraction)
 
 TEST_F (compositionTest, subset)
 
 TEST_F (compositionTest, finalizeWithNormalization)
 
 TEST_F (compositionTest, finalizeWithoutNormalization)
 
 TEST_F (compositionTest, getComposition)
 
 TEST_F (compositionTest, setCompositionMode)
 
 TEST_F (compositionTest, hasSymbol)
 
 TEST_F (compositionTest, mix)
 

Variables

std::string EXAMPLE_FILENAME = std::string(getenv("MESON_SOURCE_ROOT")) + "/tests/config/example.yaml"
 

Function Documentation

◆ TEST_F() [1/12]

TEST_F ( compositionTest ,
constructor  )

Definition at line 28 of file compositionTest.cpp.

◆ TEST_F() [2/12]

TEST_F ( compositionTest ,
finalizeWithNormalization  )

Definition at line 106 of file compositionTest.cpp.

◆ TEST_F() [3/12]

TEST_F ( compositionTest ,
finalizeWithoutNormalization  )

Definition at line 118 of file compositionTest.cpp.

◆ TEST_F() [4/12]

TEST_F ( compositionTest ,
getComposition  )

Definition at line 130 of file compositionTest.cpp.

◆ TEST_F() [5/12]

TEST_F ( compositionTest ,
hasSymbol  )

Definition at line 167 of file compositionTest.cpp.

◆ TEST_F() [6/12]

TEST_F ( compositionTest ,
isotopeMasses  )

Test the constructor of the composition class.

Definition at line 21 of file compositionTest.cpp.

◆ TEST_F() [7/12]

TEST_F ( compositionTest ,
mix  )

Definition at line 182 of file compositionTest.cpp.

◆ TEST_F() [8/12]

TEST_F ( compositionTest ,
registerSymbol  )

Definition at line 33 of file compositionTest.cpp.

◆ TEST_F() [9/12]

TEST_F ( compositionTest ,
setCompositionMode  )

Definition at line 145 of file compositionTest.cpp.

◆ TEST_F() [10/12]

TEST_F ( compositionTest ,
setGetComposition  )

Definition at line 48 of file compositionTest.cpp.

◆ TEST_F() [11/12]

TEST_F ( compositionTest ,
setGetNumberFraction  )

Definition at line 74 of file compositionTest.cpp.

◆ TEST_F() [12/12]

TEST_F ( compositionTest ,
subset  )

Definition at line 91 of file compositionTest.cpp.

Variable Documentation

◆ EXAMPLE_FILENAME

std::string EXAMPLE_FILENAME = std::string(getenv("MESON_SOURCE_ROOT")) + "/tests/config/example.yaml"

Definition at line 11 of file compositionTest.cpp.