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  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)
 

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 42 of file rom_test.cc.

◆ TEST_F() [2/23]

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

Definition at line 47 of file rom_test.cc.

References EXPECT_OK.

◆ TEST_F() [3/23]

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

Definition at line 56 of file rom_test.cc.

◆ TEST_F() [4/23]

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

Definition at line 63 of file rom_test.cc.

◆ TEST_F() [5/23]

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

Definition at line 68 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 78 of file rom_test.cc.

◆ TEST_F() [7/23]

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

Definition at line 83 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 94 of file rom_test.cc.

◆ TEST_F() [9/23]

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

Definition at line 99 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 111 of file rom_test.cc.

◆ TEST_F() [11/23]

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

Definition at line 116 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 124 of file rom_test.cc.

◆ TEST_F() [13/23]

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

Definition at line 129 of file rom_test.cc.

References EXPECT_OK.

◆ TEST_F() [14/23]

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

Definition at line 137 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 148 of file rom_test.cc.

References EXPECT_OK.

◆ TEST_F() [16/23]

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

Definition at line 157 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 168 of file rom_test.cc.

References EXPECT_OK.

◆ TEST_F() [18/23]

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

Definition at line 177 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 188 of file rom_test.cc.

References EXPECT_OK.

◆ TEST_F() [20/23]

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

Definition at line 197 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 210 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 224 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 236 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: