Skip to content

Commit

Permalink
#5127: Another unit test case
Browse files Browse the repository at this point in the history
  • Loading branch information
codereader committed Jan 4, 2021
1 parent 61104d5 commit b64c171
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions test/Favourites.cpp
Expand Up @@ -235,4 +235,20 @@ TEST_F(FavouritesTest, ChangedSignals)
EXPECT_TRUE(signalFired);
}

TEST_F(FavouritesTest, RequestingSignalForNoneType)
{
bool exceptionThrown = false;

try
{
GlobalFavouritesManager().getSignalForType(decl::Type::None);
}
catch (const std::logic_error&)
{
exceptionThrown = true;
}

EXPECT_TRUE(exceptionThrown);
}

}

0 comments on commit b64c171

Please sign in to comment.