SERiF 0.0.1a
3+1D Stellar Structure and Evolution
Loading...
Searching...
No Matches
constTest.cpp File Reference

Unit tests for the const class. More...

#include <gtest/gtest.h>
#include "const.h"
#include <iostream>
#include <string>
#include <vector>
#include <set>
#include <sstream>

Go to the source code of this file.

Classes

class  constTest
 Test suite for the const class. More...
 

Functions

 TEST_F (constTest, DefaultConstructor)
 
 TEST_F (constTest, isLoaded)
 
 TEST_F (constTest, GetMethod)
 
 TEST_F (constTest, SubscriptOperator)
 
 TEST_F (constTest, HasMethod)
 
 TEST_F (constTest, KeysMethod)
 
 TEST_F (constTest, StreamOperator)
 

Detailed Description

Unit tests for the const class.

Definition in file constTest.cpp.

Function Documentation

◆ TEST_F() [1/7]

TEST_F ( constTest ,
DefaultConstructor  )
Test
Verify default constructor initializes correctly.

Definition at line 27 of file constTest.cpp.

◆ TEST_F() [2/7]

TEST_F ( constTest ,
GetMethod  )
Test
Verify get method returns the correct constant.

Definition at line 42 of file constTest.cpp.

◆ TEST_F() [3/7]

TEST_F ( constTest ,
HasMethod  )
Test
Verify that the has method returns the correct values

Definition at line 64 of file constTest.cpp.

◆ TEST_F() [4/7]

TEST_F ( constTest ,
isLoaded  )
Test
Verify constructor initializes with provided data and metadata.

Definition at line 34 of file constTest.cpp.

◆ TEST_F() [5/7]

TEST_F ( constTest ,
KeysMethod  )

Definition at line 72 of file constTest.cpp.

◆ TEST_F() [6/7]

TEST_F ( constTest ,
StreamOperator  )

Definition at line 101 of file constTest.cpp.

◆ TEST_F() [7/7]

TEST_F ( constTest ,
SubscriptOperator  )
Test
Verify [] opperators returns the correct constant.

Definition at line 53 of file constTest.cpp.