ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
test_stru_frame_io.cpp File Reference

Unit test for stru_frame_io: last-frame extraction from a fixed-name cumulative STRU file written in out_app_flag == 1 mode. More...

#include "source_cell/stru_frame_io.h"
#include <fstream>
#include <sstream>
#include <string>
#include "gmock/gmock.h"
#include "gtest/gtest.h"
#include "source_base/fs_compat.h"
Include dependency graph for test_stru_frame_io.cpp:

Classes

class  StruFrameIoTest

Functions

 TEST_F (StruFrameIoTest, ExtractLastFramePicksNewest)
 TEST_F (StruFrameIoTest, ExtractLastFrameRewritesOnSecondCall)
 TEST_F (StruFrameIoTest, ExtractLastFrameFailsOnMissingFile)
 TEST_F (StruFrameIoTest, ExtractLastFrameFailsWithoutMarker)
 TEST_F (StruFrameIoTest, LastFrameStepReportsNewestMarker)
 TEST_F (StruFrameIoTest, LastFrameStepIsZeroOnMissingOrUnmarkedFile)
 TEST_F (StruFrameIoTest, ExtractFrameByStepPicksExactMarker)
 TEST_F (StruFrameIoTest, ExtractFrameByStepFailsOnMissingStep)
 TEST_F (StruFrameIoTest, ExtractFrameByStepFailsOnMissingFile)

Detailed Description

Unit test for stru_frame_io: last-frame extraction from a fixed-name cumulative STRU file written in out_app_flag == 1 mode.

Function Documentation

◆ TEST_F() [1/9]

TEST_F ( StruFrameIoTest ,
ExtractFrameByStepFailsOnMissingFile  )
Here is the call graph for this function:

◆ TEST_F() [2/9]

TEST_F ( StruFrameIoTest ,
ExtractFrameByStepFailsOnMissingStep  )
Here is the call graph for this function:

◆ TEST_F() [3/9]

TEST_F ( StruFrameIoTest ,
ExtractFrameByStepPicksExactMarker  )
Here is the call graph for this function:

◆ TEST_F() [4/9]

TEST_F ( StruFrameIoTest ,
ExtractLastFrameFailsOnMissingFile  )
Here is the call graph for this function:

◆ TEST_F() [5/9]

TEST_F ( StruFrameIoTest ,
ExtractLastFrameFailsWithoutMarker  )
Here is the call graph for this function:

◆ TEST_F() [6/9]

TEST_F ( StruFrameIoTest ,
ExtractLastFramePicksNewest  )
Here is the call graph for this function:

◆ TEST_F() [7/9]

TEST_F ( StruFrameIoTest ,
ExtractLastFrameRewritesOnSecondCall  )
Here is the call graph for this function:

◆ TEST_F() [8/9]

TEST_F ( StruFrameIoTest ,
LastFrameStepIsZeroOnMissingOrUnmarkedFile  )
Here is the call graph for this function:

◆ TEST_F() [9/9]

TEST_F ( StruFrameIoTest ,
LastFrameStepReportsNewestMarker  )
Here is the call graph for this function: