Skip to content
This repository has been archived by the owner on Mar 23, 2024. It is now read-only.

Commit

Permalink
remove visul verification test
Browse files Browse the repository at this point in the history
  • Loading branch information
hhenry01 committed Mar 7, 2024
1 parent cafdcec commit 253526e
Showing 1 changed file with 0 additions and 35 deletions.
35 changes: 0 additions & 35 deletions projects/local_transceiver/test/test_local_transceiver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -164,38 +164,3 @@ TEST_F(TestLocalTransceiver, sendData)
lcl_trns_->updateSensor(local_paths);
lcl_trns_->send();
}

/**
* @brief Open LOCAL_TRANSCEIVER_TEST_PORT as a file and visually confirm response
*
*/
TEST_F(TestLocalTransceiver, visualVerification)
{
constexpr float holder = 14.3;

custom_interfaces::msg::GPS gps;
gps.heading.set__heading(holder);
gps.lat_lon.set__latitude(holder);
gps.lat_lon.set__longitude(holder);
gps.speed.set__speed(holder);
lcl_trns_->updateSensor(gps);
lcl_trns_->send();

std::ifstream port(LOCAL_TRANSCEIVER_TEST_PORT);
std::string portline;

port.close();

/*std::ofstream mockSerialFile(LOCAL_TRANSCEIVER_TEST_PORT);
// Redirect cout to the file
std::streambuf *originalCoutBuffer = std::cout.rdbuf();
std::cout.rdbuf(mockSerialFile.rdbuf());
// Execute the function that generates output
lcl_trns_->receive();
// Restore the original cout buffer
std::cout.rdbuf(originalCoutBuffer);
*/
}

0 comments on commit 253526e

Please sign in to comment.