mirror of
https://github.com/akuker/RASCSI.git
synced 2024-06-02 11:41:34 +00:00
Address SonarQube issues
This commit is contained in:
parent
1d5efa35b5
commit
f13ccbe166
|
@ -30,7 +30,7 @@ DiskCache::DiskCache(const string& path, int size, uint32_t blocks, off_t imgoff
|
|||
bool DiskCache::Save() const
|
||||
{
|
||||
// Save valid tracks
|
||||
return none_of(cache.begin(), cache.end(), [this](const cache_t& c)
|
||||
return ranges::none_of(cache.begin(), cache.end(), [this](const cache_t& c)
|
||||
{ return c.disktrk != nullptr && !c.disktrk->Save(sec_path); });
|
||||
}
|
||||
|
||||
|
|
|
@ -596,7 +596,7 @@ void Piscsi::ShutDown(AbstractController::piscsi_shutdown_mode shutdown_mode)
|
|||
{
|
||||
CleanUp();
|
||||
|
||||
switch(shutdown_mode) { //NOSONAR using enum is not supported by the bullseye compiler
|
||||
switch(shutdown_mode) {
|
||||
case AbstractController::piscsi_shutdown_mode::STOP_PISCSI:
|
||||
spdlog::info("PiSCSI shutdown requested");
|
||||
break;
|
||||
|
|
|
@ -96,7 +96,7 @@ TEST(PhaseHandlerTest, Phases)
|
|||
}
|
||||
|
||||
TEST(PhaseHandlerTest, ProcessPhase)
|
||||
{ //NOSONAR using enum is not supported by the bullseye clang++ compiler
|
||||
{
|
||||
MockPhaseHandler handler;
|
||||
|
||||
handler.SetPhase(phase_t::selection);
|
||||
|
|
|
@ -90,7 +90,7 @@ TEST(PrimaryDeviceTest, CheckReservation)
|
|||
}
|
||||
|
||||
TEST(PrimaryDeviceTest, ReserveReleaseUnit)
|
||||
{ //NOSONAR using enum is not supported by the bullseye clang++ compiler
|
||||
{
|
||||
auto [controller, device] = CreatePrimaryDevice();
|
||||
|
||||
device->Dispatch(scsi_command::eCmdReserve6);
|
||||
|
|
Loading…
Reference in New Issue
Block a user