Skip to content

Commit

Permalink
Add valve_iolink_shut_off_sorio tests
Browse files Browse the repository at this point in the history
  • Loading branch information
idzm committed Nov 1, 2024
1 parent 9066525 commit 6cf0825
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions test/device/PAC_dev_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1567,6 +1567,23 @@ TEST( valve_iolink_shut_off_sorio, evaluate_io )
str_buff );
}

TEST( valve_iolink_shut_off_sorio, get_fb_state )
{
valve_iolink_shut_off_sorio V1( "V1" );
V1.init( 0, 0, 1, 1 );
V1.AO_channels.int_write_values[ 0 ] = new int_2[ 2 ]{ 0 };
V1.AI_channels.int_read_values[ 0 ] = new int_2[ 2 ]{ 0 };
auto buff = reinterpret_cast<char*>( V1.AI_channels.int_read_values[ 0 ] );

Check notice on line 1576 in test/device/PAC_dev_tests.cpp

View check run for this annotation

Codacy Production / Codacy Static Code Analysis

test/device/PAC_dev_tests.cpp#L1576

Variable 'buff' is assigned a value that is never used.


EXPECT_TRUE( V1.get_fb_state() ); //Default value.

G_PAC_INFO()->emulation_off();
EXPECT_FALSE( V1.get_fb_state() );

G_PAC_INFO()->emulation_on();
}

TEST( valve_iolink_gea_tvis_a15_ds, save_device_ex )
{
valve_iolink_gea_tvis_a15_ds V1( "VGEA2" );
Expand Down

0 comments on commit 6cf0825

Please sign in to comment.