Skip to content

Commit

Permalink
commented the test case heavily.
Browse files Browse the repository at this point in the history
  • Loading branch information
agentzh committed Dec 29, 2009
1 parent e2a1b03 commit 0f1b9e5
Showing 1 changed file with 38 additions and 1 deletion.
39 changes: 38 additions & 1 deletion test/t/sanity.t
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,14 @@ no_diff();
__DATA__
=== TEST 1: sanity
little-endian systems only
db init:
create table cats (id integer, name text);
insert into cats (id) values (2);
insert into cats (id, name) values (3, 'bob');
--- http_config
upstream backend {
drizzle_server 127.0.0.1:3306 dbname=test
Expand All @@ -26,5 +34,34 @@ __DATA__
--- request
GET /mysql
--- response_body eval
"\x{00}\x{01}\x{00}\x{00}\x{00}\x{00}\x{00}\x{00}\x{00}\x{00}\x{00}\x{00}\x{00}\x{00}\x{00}\x{00}\x{00}\x{00}\x{00}\x{00}\x{00}\x{00}\x{00}\x{00}\x{00}\x{00}\x{00}\x{00}\x{02}\x{00}\x{01}\x{00}\x{03}\x{00}\x{02}\x{00}id\x{13}\x{80}\x{fc}\x{00}\x{04}\x{00}name\x{00}\x{00}\x{01}\x{01}\x{00}\x{00}\x{00}2\x{00}\x{00}\x{00}\x{00}\x{01}\x{01}\x{00}\x{00}\x{00}3\x{03}\x{00}\x{00}\x{00}bob\x{00}"
"\x{00}". # endian
"\x{01}\x{00}\x{00}\x{00}". # format version 0.0.1
"\x{00}". # result type
"\x{00}\x{00}". # std errcode
"\x{00}\x{00}" . # driver errcode
"\x{00}\x{00}". # driver errstr len
"". # driver errstr data
"\x{00}\x{00}\x{00}\x{00}\x{00}\x{00}\x{00}\x{00}". # rows affected
"\x{00}\x{00}\x{00}\x{00}\x{00}\x{00}\x{00}\x{00}". # insert id
"\x{02}\x{00}". # col count
"\x{01}\x{00}". # std col type
"\x{03}\x{00}". # drizzle col type
"\x{02}\x{00}". # col name len
"id". # col name data
"\x{13}\x{80}". # std col type
"\x{fc}\x{00}". # drizzle col type
"\x{04}\x{00}". # col name len
"name". # col name data
"\x{00}\x{00}". # col list terminator
"\x{01}". # valid row flag
"\x{01}\x{00}\x{00}\x{00}". # field len
"2". # field data
"\x{00}\x{00}\x{00}\x{00}". # field len
"". # field data
"\x{01}". # valid row flag
"\x{01}\x{00}\x{00}\x{00}". # field len
"3". # field data
"\x{03}\x{00}\x{00}\x{00}". # field len
"bob". # field data
"\x{00}" # row list terminator

0 comments on commit 0f1b9e5

Please sign in to comment.