gem5  v22.0.0.2
Functions
bufval.test.cc File Reference
#include <gmock/gmock.h>
#include <gtest/gtest.h>
#include <array>
#include "sim/bufval.hh"

Go to the source code of this file.

Functions

template<class First >
bool pairFail (const std::pair< First, bool > &p)
 
bool pairFailU64 (const std::pair< std::uint64_t, bool > &p)
 
bool pairFailStr (const std::pair< std::string, bool > &p)
 
template<class First >
bool pairVal (const std::pair< First, bool > &p, const First &expected)
 
bool pairValU64 (const std::pair< std::uint64_t, bool > &p, std::uint64_t expected)
 
bool pairValStr (const std::pair< std::string, bool > &p, const std::string &expected)
 
 TEST (GetUintX, BadSize)
 
 TEST (GetUintX, LittleEndian)
 
 TEST (GetUintX, BigEndian)
 
 TEST (SetUintX, BadSize)
 
 TEST (SetUintX, LittleEndian)
 
 TEST (SetUintX, BigEndian)
 
 TEST (PrintUintX, BadSize)
 
 TEST (PrintUintX, LittleEndian)
 
 TEST (PrintUintX, BigEndian)
 
 TEST (PrintByteBuf, LittleEndian)
 
 TEST (PrintByteBuf, BigEndian)
 
 TEST (PrintByteBuf, ChunkSize)
 

Function Documentation

◆ pairFail()

template<class First >
bool pairFail ( const std::pair< First, bool > &  p)

Definition at line 41 of file bufval.test.cc.

References gem5::VegaISA::p.

Referenced by pairFailStr(), and pairFailU64().

◆ pairFailStr()

bool pairFailStr ( const std::pair< std::string, bool > &  p)

Definition at line 52 of file bufval.test.cc.

References gem5::VegaISA::p, and pairFail().

Referenced by TEST().

◆ pairFailU64()

bool pairFailU64 ( const std::pair< std::uint64_t, bool > &  p)

Definition at line 47 of file bufval.test.cc.

References gem5::VegaISA::p, and pairFail().

Referenced by TEST().

◆ pairVal()

template<class First >
bool pairVal ( const std::pair< First, bool > &  p,
const First &  expected 
)

Definition at line 59 of file bufval.test.cc.

References expected, and gem5::VegaISA::p.

Referenced by pairValStr(), and pairValU64().

◆ pairValStr()

bool pairValStr ( const std::pair< std::string, bool > &  p,
const std::string &  expected 
)

Definition at line 72 of file bufval.test.cc.

References expected, gem5::VegaISA::p, and pairVal().

Referenced by TEST().

◆ pairValU64()

bool pairValU64 ( const std::pair< std::uint64_t, bool > &  p,
std::uint64_t  expected 
)

Definition at line 66 of file bufval.test.cc.

References expected, gem5::VegaISA::p, and pairVal().

Referenced by TEST().

◆ TEST() [1/12]

TEST ( GetUintX  ,
BadSize   
)

Definition at line 77 of file bufval.test.cc.

References gem5::getUintX(), and pairFailU64().

◆ TEST() [2/12]

TEST ( GetUintX  ,
BigEndian   
)

Definition at line 108 of file bufval.test.cc.

References gem5::getUintX(), and pairValU64().

◆ TEST() [3/12]

TEST ( GetUintX  ,
LittleEndian   
)

Definition at line 94 of file bufval.test.cc.

References gem5::getUintX(), and pairValU64().

◆ TEST() [4/12]

TEST ( PrintByteBuf  ,
BigEndian   
)

Definition at line 249 of file bufval.test.cc.

References gem5::printByteBuf().

◆ TEST() [5/12]

TEST ( PrintByteBuf  ,
ChunkSize   
)

Definition at line 272 of file bufval.test.cc.

References gem5::printByteBuf().

◆ TEST() [6/12]

TEST ( PrintByteBuf  ,
LittleEndian   
)

Definition at line 225 of file bufval.test.cc.

References gem5::printByteBuf().

◆ TEST() [7/12]

TEST ( PrintUintX  ,
BadSize   
)

Definition at line 180 of file bufval.test.cc.

References pairFailStr(), and gem5::printUintX().

◆ TEST() [8/12]

TEST ( PrintUintX  ,
BigEndian   
)

Definition at line 211 of file bufval.test.cc.

References pairValStr(), and gem5::printUintX().

◆ TEST() [9/12]

TEST ( PrintUintX  ,
LittleEndian   
)

Definition at line 197 of file bufval.test.cc.

References pairValStr(), and gem5::printUintX().

◆ TEST() [10/12]

TEST ( SetUintX  ,
BadSize   
)

Definition at line 122 of file bufval.test.cc.

References gem5::setUintX().

◆ TEST() [11/12]

TEST ( SetUintX  ,
BigEndian   
)

Definition at line 160 of file bufval.test.cc.

References gem5::setUintX().

◆ TEST() [12/12]

TEST ( SetUintX  ,
LittleEndian   
)

Definition at line 139 of file bufval.test.cc.

References gem5::setUintX().


Generated on Thu Jul 28 2022 13:32:49 for gem5 by doxygen 1.8.17