Skip to content

Commit

Permalink
Improve test coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
d-frey committed Nov 28, 2024
1 parent 33356f5 commit 4f59d40
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/test/pq/result.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,9 @@ namespace
TEST_THROWS( connection->execute( "SELECT NULL" )[ 0 ].is_null( 1 ) );
TEST_ASSERT( connection->execute( "SELECT NULL" )[ 0 ][ 0 ].is_null() );
TEST_ASSERT( connection->execute( "SELECT NULL" )[ 0 ][ 0 ] == tao::pq::null );
TEST_ASSERT( tao::pq::null == connection->execute( "SELECT NULL" )[ 0 ][ 0 ] );
TEST_ASSERT( !( connection->execute( "SELECT NULL" )[ 0 ][ 0 ] != tao::pq::null ) );
TEST_ASSERT( !( tao::pq::null != connection->execute( "SELECT NULL" )[ 0 ][ 0 ] ) );
TEST_THROWS( connection->execute( "SELECT NULL" )[ 0 ].at( 1 ) );
TEST_THROWS( connection->execute( "SELECT NULL" ).at( 1 )[ 1 ] );

Expand All @@ -55,7 +57,9 @@ namespace
TEST_THROWS( connection->execute( "SELECT 42" )[ 0 ].is_null( 1 ) );
TEST_ASSERT( !connection->execute( "SELECT 42" )[ 0 ][ 0 ].is_null() );
TEST_ASSERT( connection->execute( "SELECT 42" )[ 0 ][ 0 ] != tao::pq::null );
TEST_ASSERT( tao::pq::null != connection->execute( "SELECT 42" )[ 0 ][ 0 ] );
TEST_ASSERT( !( connection->execute( "SELECT 42" )[ 0 ][ 0 ] == tao::pq::null ) );
TEST_ASSERT( !( tao::pq::null == connection->execute( "SELECT 42" )[ 0 ][ 0 ] ) );
TEST_THROWS( connection->execute( "SELECT 42" )[ 0 ].at( 1 ) );
TEST_THROWS( connection->execute( "SELECT 42" ).at( 1 )[ 1 ] );

Expand Down

0 comments on commit 4f59d40

Please sign in to comment.