1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-12-24 14:17:58 +03:00

Add trivial tests to increase coverage of sqlite3_table_column_metadata(). (CVS 3074)

FossilOrigin-Name: 424ce5ecd0aa9860afb73180e4d09987f3a9300a
This commit is contained in:
danielk1977
2006-02-10 12:48:55 +00:00
parent 266664ddef
commit ff293cad83
3 changed files with 18 additions and 9 deletions

View File

@@ -12,7 +12,7 @@
# This file implements regression tests for SQLite library. The
# focus of this script is the sqlite3_table_column_metadata() API.
#
# $Id: colmeta.test,v 1.1 2006/02/09 13:43:29 danielk1977 Exp $
# $Id: colmeta.test,v 1.2 2006/02/10 12:48:55 danielk1977 Exp $
set testdir [file dirname $argv0]
source $testdir/tester.tcl
@@ -52,7 +52,8 @@ set tests {
12 {main v1 rowid} {1 {no such table column: v1.rowid}}
13 {main abc rowid} {0 {INTEGER BINARY 0 1 0}}
14 {main abc3 rowid} {0 {INTEGER BINARY 0 1 0}}
14 {main abc4 rowid} {0 {INTEGER BINARY 0 1 1}}
15 {main abc4 rowid} {0 {INTEGER BINARY 0 1 1}}
16 {main abc d} {1 {no such table column: abc.d}}
}
foreach {tn params results} $tests {
@@ -73,5 +74,13 @@ foreach {tn params results} $tests {
} $results
}
do_test colmeta-misuse.1 {
db close
set rc [catch {
sqlite3_table_column_metadata $::DB a b c
} msg]
list $rc $msg
} {1 {library routine called out of sequence}}
finish_test