In Files

Parent

TC_MysqlStmt

Public Instance Methods

setup() click to toggle source
     # File test.rb, line 413
413:   def setup()
414:     @host, @user, @pass, db, port, sock, flag = ARGV
415:     @db = db || "test"
416:     @port = port.to_i
417:     @sock = sock.nil? || sock.empty? ? nil : sock
418:     @flag = flag.to_i
419:     @m = Mysql.new(@host, @user, @pass, @db, @port, @sock, @flag)
420:   end
teardown() click to toggle source
     # File test.rb, line 421
421:   def teardown()
422:   end
test_init() click to toggle source
     # File test.rb, line 424
424:   def test_init()
425:     if @m.server_version >= 40100 then
426:       s = @m.stmt_init()
427:       assert_equal(Mysql::Stmt, s.class)
428:       s.close
429:     end
430:   end
test_prepare() click to toggle source
     # File test.rb, line 432
432:   def test_prepare()
433:     if @m.server_version >= 40100 then
434:       s = @m.prepare("select 1")
435:       assert_equal(Mysql::Stmt, s.class)
436:       s.close
437:     end
438:   end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.