raindrops.git  about / heads / tags
real-time stats for preforking Rack servers
blob c40d50e6de7dd83979fb901de30795d1733d9693 342 bytes (raw)
$ git show v0.5.0:test/test_inet_diag_socket.rb	# shows this blob on the CLI

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
 
# -*- encoding: binary -*-
require 'test/unit'
require 'raindrops'
$stderr.sync = $stdout.sync = true

class TestInetDiagSocket < Test::Unit::TestCase
  def test_new
    sock = Raindrops::InetDiagSocket.new
    assert_kind_of Socket, sock
    assert_kind_of Fixnum, sock.fileno
    assert_nil sock.close
  end
end if RUBY_PLATFORM =~ /linux/

git clone https://yhbt.net/raindrops.git