yaze 0.2.0
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
yaze::test Namespace Reference

Namespaces

namespace  emu
 
namespace  gfx
 
namespace  integration
 
namespace  message
 
namespace  zelda3
 

Classes

class  MockRom
 
class  RomTest
 

Functions

 MATCHER_P (StatusIs, status, "")
 
template<typename T >
::testing::AssertionResult IsOkAndHolds (const absl::StatusOr< T > &status_or, const T &value)
 
 MATCHER_P (IsOkAndHolds, value, "")
 
 TEST_F (RomTest, Uninitialized)
 
 TEST_F (RomTest, LoadFromFile)
 
 TEST_F (RomTest, LoadFromFileInvalid)
 
 TEST_F (RomTest, LoadFromFileEmpty)
 
 TEST_F (RomTest, ReadByteOk)
 
 TEST_F (RomTest, ReadByteInvalid)
 
 TEST_F (RomTest, ReadWordOk)
 
 TEST_F (RomTest, ReadWordInvalid)
 
 TEST_F (RomTest, ReadLongOk)
 
 TEST_F (RomTest, ReadLongInvalid)
 
 TEST_F (RomTest, ReadBytesOk)
 
 TEST_F (RomTest, ReadBytesInvalid)
 
 TEST_F (RomTest, ReadBytesOutOfRange)
 
 TEST_F (RomTest, WriteByteOk)
 
 TEST_F (RomTest, WriteByteInvalid)
 
 TEST_F (RomTest, WriteWordOk)
 
 TEST_F (RomTest, WriteWordInvalid)
 
 TEST_F (RomTest, WriteLongOk)
 
 TEST_F (RomTest, WriteLongInvalid)
 
 TEST_F (RomTest, WriteTransactionSuccess)
 
 TEST_F (RomTest, WriteTransactionFailure)
 
 TEST_F (RomTest, ReadTransactionSuccess)
 
 TEST_F (RomTest, ReadTransactionFailure)
 
 TEST (YazeTest, LoadAndUnloadRom)
 
 TEST (YazeTest, NoFilename)
 

Function Documentation

◆ MATCHER_P() [1/2]

yaze::test::MATCHER_P ( StatusIs ,
status ,
""  )

Definition at line 26 of file testing.h.

◆ IsOkAndHolds()

template<typename T >
::testing::AssertionResult yaze::test::IsOkAndHolds ( const absl::StatusOr< T > & status_or,
const T & value )

Definition at line 30 of file testing.h.

Referenced by MATCHER_P(), TEST_F(), and TEST_F().

◆ MATCHER_P() [2/2]

yaze::test::MATCHER_P ( IsOkAndHolds ,
value ,
""  )

Definition at line 43 of file testing.h.

References IsOkAndHolds().

Here is the call graph for this function:

◆ TEST_F() [1/23]

yaze::test::TEST_F ( RomTest ,
Uninitialized  )

Definition at line 41 of file rom_test.cc.

◆ TEST_F() [2/23]

yaze::test::TEST_F ( RomTest ,
LoadFromFile  )

Definition at line 46 of file rom_test.cc.

References EXPECT_OK.

◆ TEST_F() [3/23]

yaze::test::TEST_F ( RomTest ,
LoadFromFileInvalid  )

Definition at line 55 of file rom_test.cc.

◆ TEST_F() [4/23]

yaze::test::TEST_F ( RomTest ,
LoadFromFileEmpty  )

Definition at line 62 of file rom_test.cc.

◆ TEST_F() [5/23]

yaze::test::TEST_F ( RomTest ,
ReadByteOk  )

Definition at line 67 of file rom_test.cc.

References ASSERT_OK_AND_ASSIGN, and EXPECT_OK.

◆ TEST_F() [6/23]

yaze::test::TEST_F ( RomTest ,
ReadByteInvalid  )

Definition at line 77 of file rom_test.cc.

◆ TEST_F() [7/23]

yaze::test::TEST_F ( RomTest ,
ReadWordOk  )

Definition at line 82 of file rom_test.cc.

References EXPECT_OK, and IsOkAndHolds().

Here is the call graph for this function:

◆ TEST_F() [8/23]

yaze::test::TEST_F ( RomTest ,
ReadWordInvalid  )

Definition at line 93 of file rom_test.cc.

◆ TEST_F() [9/23]

yaze::test::TEST_F ( RomTest ,
ReadLongOk  )

Definition at line 98 of file rom_test.cc.

References EXPECT_OK, and IsOkAndHolds().

Here is the call graph for this function:

◆ TEST_F() [10/23]

yaze::test::TEST_F ( RomTest ,
ReadLongInvalid  )

Definition at line 110 of file rom_test.cc.

◆ TEST_F() [11/23]

yaze::test::TEST_F ( RomTest ,
ReadBytesOk  )

Definition at line 115 of file rom_test.cc.

References ASSERT_OK_AND_ASSIGN, and EXPECT_OK.

◆ TEST_F() [12/23]

yaze::test::TEST_F ( RomTest ,
ReadBytesInvalid  )

Definition at line 123 of file rom_test.cc.

◆ TEST_F() [13/23]

yaze::test::TEST_F ( RomTest ,
ReadBytesOutOfRange  )

Definition at line 128 of file rom_test.cc.

References EXPECT_OK.

◆ TEST_F() [14/23]

yaze::test::TEST_F ( RomTest ,
WriteByteOk  )

Definition at line 136 of file rom_test.cc.

References ASSERT_OK_AND_ASSIGN, and EXPECT_OK.

◆ TEST_F() [15/23]

yaze::test::TEST_F ( RomTest ,
WriteByteInvalid  )

Definition at line 147 of file rom_test.cc.

References EXPECT_OK.

◆ TEST_F() [16/23]

yaze::test::TEST_F ( RomTest ,
WriteWordOk  )

Definition at line 156 of file rom_test.cc.

References ASSERT_OK_AND_ASSIGN, and EXPECT_OK.

◆ TEST_F() [17/23]

yaze::test::TEST_F ( RomTest ,
WriteWordInvalid  )

Definition at line 167 of file rom_test.cc.

References EXPECT_OK.

◆ TEST_F() [18/23]

yaze::test::TEST_F ( RomTest ,
WriteLongOk  )

Definition at line 176 of file rom_test.cc.

References ASSERT_OK_AND_ASSIGN, and EXPECT_OK.

◆ TEST_F() [19/23]

yaze::test::TEST_F ( RomTest ,
WriteLongInvalid  )

Definition at line 187 of file rom_test.cc.

References EXPECT_OK.

◆ TEST_F() [20/23]

yaze::test::TEST_F ( RomTest ,
WriteTransactionSuccess  )

Definition at line 196 of file rom_test.cc.

References EXPECT_OK, yaze::app::Rom::LoadFromBytes(), and yaze::app::Rom::WriteTransaction().

Here is the call graph for this function:

◆ TEST_F() [21/23]

yaze::test::TEST_F ( RomTest ,
WriteTransactionFailure  )

Definition at line 209 of file rom_test.cc.

References EXPECT_OK, yaze::app::Rom::LoadFromBytes(), and yaze::app::Rom::WriteTransaction().

Here is the call graph for this function:

◆ TEST_F() [22/23]

yaze::test::TEST_F ( RomTest ,
ReadTransactionSuccess  )

Definition at line 223 of file rom_test.cc.

References EXPECT_OK, yaze::app::Rom::LoadFromBytes(), and yaze::app::Rom::ReadTransaction().

Here is the call graph for this function:

◆ TEST_F() [23/23]

yaze::test::TEST_F ( RomTest ,
ReadTransactionFailure  )

Definition at line 235 of file rom_test.cc.

References EXPECT_OK, yaze::app::Rom::LoadFromBytes(), and yaze::app::Rom::ReadTransaction().

Here is the call graph for this function:

◆ TEST() [1/2]

yaze::test::TEST ( YazeTest ,
LoadAndUnloadRom  )

Definition at line 14 of file yaze_test.cc.

References yaze_flags::rom_filename, yaze_cleanup(), and yaze_init().

Here is the call graph for this function:

◆ TEST() [2/2]

yaze::test::TEST ( YazeTest ,
NoFilename  )

Definition at line 22 of file yaze_test.cc.

References yaze_cleanup(), and yaze_init().

Here is the call graph for this function: