Skip to content

Commit 95cfae1

Browse files
committed
Add a couple tests to Statement for 100% coverage.
1 parent ad8c0ce commit 95cfae1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Diff for: tests/Statement_test.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,7 @@ TEST(Statement, moveConstructor)
138138
// Moved statements should throw
139139
EXPECT_THROW(query.getColumnIndex("value"), SQLite::Exception);
140140
EXPECT_THROW(query.getColumn(index), SQLite::Exception);
141+
EXPECT_THROW(query.getExpandedSQL(), SQLite::Exception);
141142
}
142143

143144
#endif
@@ -309,6 +310,7 @@ TEST(Statement, bindings)
309310
insert.bind(3, dbl);
310311
EXPECT_EQ(insert.getExpandedSQL(), "INSERT INTO test VALUES (NULL, 'first', -123, 0.123)");
311312
EXPECT_EQ(1, insert.exec());
313+
EXPECT_EQ(1, insert.getChanges());
312314
EXPECT_EQ(SQLITE_DONE, db.getErrorCode());
313315

314316
// Check the result

0 commit comments

Comments
 (0)