るりまサーチ

最速Rubyリファレンスマニュアル検索!
3017件ヒット [1-100件を表示] (0.107秒)
トップページ > クエリ:c[x] > クエリ:test[x]

別のキーワード

  1. _builtin to_c
  2. etc sc_2_c_dev
  3. etc sc_2_c_bind
  4. tracer display_c_call
  5. tracer display_c_call=

オブジェクト

キーワード

検索結果

<< 1 2 3 ... > >>

Shell::CommandProcessor#test(command, file1, file2 = nil) -> bool | Time | Integer | nil (18257.0)

Kernel.#test や FileTest のメソッドに処理を委譲します。

...Kernel.#test や FileTest のメソッドに処理を委譲します。

@param command 数値、またはサイズが 1 の文字列の場合は Kernel.#test に処理委譲します。
2 文字以上の文字列の場合は FileTest のメソッドとして実行します。

@para...
...ell'
Shell.verbose = false
sh = Shell.new
begin
sh.mkdir("foo")
rescue
end
p sh[?e, "foo"] # => true
p sh[:e, "foo"] # => true
p sh["e", "foo"] # => true
p sh[:exists?, "foo"] # => true
p sh["exists?", "foo"] # => true

@see Kernel.#test, FileTest...

Kernel.#test(cmd, file) -> bool | Time | Integer | nil (18241.0)

単体のファイルでファイルテストを行います。

...単体のファイルでファイルテストを行います。

@param cmd 以下に示す文字リテラル、文字列、あるいは同じ文字を表す数値
です。文字列の場合はその先頭の文字だけをコマンドとみなします。
@param file テストするフ...
...字列か IO オブジェクトを指定します。
@return 下表に特に明記していないものは、真偽値を返します。

以下は cmd として指定できる文字リテラルとその意味です。

: ?r
ファイルを実効 uid で読むことができる
: ?w
ファ...
...sticky ビットがセットされている
: ?M
ファイルの最終更新時刻を返す -> Time
: ?A
ファイルの最終アクセス時刻を返す -> Time
: ?C
ファイルの inode 変更時刻を返す -> Time

//emlist[例][ruby]{
IO.write("testfile", "test")
test
("r", "testfil...

Kernel.#test(cmd, file1, file2) -> bool (18226.0)

2ファイル間のファイルテストを行います。

...2ファイル間のファイルテストを行います。

@param cmd 以下に示す文字リテラル、文字列、あるいは同じ文字を表す数値
です。文字列の場合はその先頭の文字だけをコマンドとみなします。
@param file1 テストするフ...
...2 テストするファイルのパスを表す文字列か IO オブジェクトを指定します。
@return 真偽値を返します。

以下は cmd として指定できる文字リテラルとその意味です。

: ?=
ファイル1とファイル2の最終更新時刻が等しい
: ?>...
...ァイル1とファイル2が同一のファイルである

//emlist[例][ruby]{
IO.write("testfile1", "test1")
IO.write("testfile2", "test2")
%w(= < > -).each do |e|
result = test(e, "testfile1", "testfile2")
puts "#{e}: #{result}"
end
//}

# => =: true
# => <: false
# => >: false
# => -: fals...

MiniTest::Unit#test_count=(count) (15301.0)

テストケース数をセットします。

...テストケース数をセットします。

@param count 件数を指定します。...

Shell#test(command, file1, file2 = nil) -> bool | Time | Integer | nil (15257.0)

Kernel.#test や FileTest のメソッドに処理を委譲します。

...Kernel.#test や FileTest のメソッドに処理を委譲します。

@param command 数値、またはサイズが 1 の文字列の場合は Kernel.#test に処理委譲します。
2 文字以上の文字列の場合は FileTest のメソッドとして実行します。

@para...
...ell'
Shell.verbose = false
sh = Shell.new
begin
sh.mkdir("foo")
rescue
end
p sh[?e, "foo"] # => true
p sh[:e, "foo"] # => true
p sh["e", "foo"] # => true
p sh[:exists?, "foo"] # => true
p sh["exists?", "foo"] # => true

@see Kernel.#test, FileTest...

絞り込み条件を変える

Shell::Filter#test(command, file1, file2 = nil) -> bool | Time | Integer | nil (15257.0)

Kernel.#test や FileTest のメソッドに処理を委譲します。

...Kernel.#test や FileTest のメソッドに処理を委譲します。

@param command 数値、またはサイズが 1 の文字列の場合は Kernel.#test に処理委譲します。
2 文字以上の文字列の場合は FileTest のメソッドとして実行します。

@para...
...ell'
Shell.verbose = false
sh = Shell.new
begin
sh.mkdir("foo")
rescue
end
p sh[?e, "foo"] # => true
p sh[:e, "foo"] # => true
p sh["e", "foo"] # => true
p sh[:exists?, "foo"] # => true
p sh["exists?", "foo"] # => true

@see Kernel.#test, FileTest...

MiniTest::Unit#test_count -> Fixnum (15201.0)

テストケース数を返します。

テストケース数を返します。

MiniTest::Unit::TestCase.test_methods -> Array (15107.0)

テストメソッドのリストを返します。

...テストメソッドのリストを返します。

MiniTest::Unit::TestCase.test_order の値が :random である場合は
返されるメソッドリストの順番はランダムです。
そうでない場合は、文字コード順にソートされます。...

MiniTest::Unit::TestCase.test_order -> Symbol (15101.0)

テストの実行順序を返します。

テストの実行順序を返します。

デフォルトはランダムです。

MiniTest::Unit::TestCase.test_suites -> Array (15101.0)

テストクラス名のリストを返します。

テストクラス名のリストを返します。

絞り込み条件を変える

MiniTest::Unit::TestCase (15012.0)

テストの基本単位(あるいは「テスト本体」)を表すクラスです。

...トを行うメソッド (テストメソッド) は TestCase のサブクラスの
インスタンスメソッドとして定義されます。
テストメソッドの名前は "test" で始まっていなければなりません。
逆に、"test" で始まっているメソッドは全てテス...

Kernel.#caller_locations(range) -> [Thread::Backtrace::Location] | nil (12478.0)

現在のフレームを Thread::Backtrace::Location の配列で返します。引 数で指定した値が範囲外の場合は nil を返します。

...現在のフレームを Thread::Backtrace::Location の配列で返します。引
数で指定した値が範囲外の場合は nil を返します。

@param start 開始フレームの位置を数値で指定します。

@param length 取得するフレームの個数を指定します。

@pa...
...][ruby]{
def test1(start, length)
locations = caller_locations(start, length)
p locations
p locations.map(&:lineno)
p locations.map(&:path)
end

def test2(start, length)
test
1(start, length)
end

def test3(start, length)
test
2(start, length)
end

c
aller_locations # => []
test
3(1, nil)
#...
.../Users/user/test.rb:9:in `test2'", "/Users/user/test.rb:13:in `test3'", "/Users/user/test.rb:17:in `<main>'"]
# => [9, 13, 17]
# => ["/Users/user/test.rb", "/Users/user/test.rb", "/Users/user/test.rb"]
test
3(1, 2)
# => ["/Users/user/test.rb:9:in `test2'", "/Users/user/test.rb:13:in `test3'"]
# => [9...

Kernel.#caller_locations(start = 1, length = nil) -> [Thread::Backtrace::Location] | nil (12478.0)

現在のフレームを Thread::Backtrace::Location の配列で返します。引 数で指定した値が範囲外の場合は nil を返します。

...現在のフレームを Thread::Backtrace::Location の配列で返します。引
数で指定した値が範囲外の場合は nil を返します。

@param start 開始フレームの位置を数値で指定します。

@param length 取得するフレームの個数を指定します。

@pa...
...][ruby]{
def test1(start, length)
locations = caller_locations(start, length)
p locations
p locations.map(&:lineno)
p locations.map(&:path)
end

def test2(start, length)
test
1(start, length)
end

def test3(start, length)
test
2(start, length)
end

c
aller_locations # => []
test
3(1, nil)
#...
.../Users/user/test.rb:9:in `test2'", "/Users/user/test.rb:13:in `test3'", "/Users/user/test.rb:17:in `<main>'"]
# => [9, 13, 17]
# => ["/Users/user/test.rb", "/Users/user/test.rb", "/Users/user/test.rb"]
test
3(1, 2)
# => ["/Users/user/test.rb:9:in `test2'", "/Users/user/test.rb:13:in `test3'"]
# => [9...

Rake::FileList#clear_exclude -> self (12248.0)

登録されている除外リストをクリアします。

...する

task default: :test_rake_app
task :test_rake_app do
file_list = FileList.new("test.rb", "test.bak")
file_list.exclude("test.rb")
# DEFAULT_IGNORE_PATTERNS と "test.rb" の双方の除外がクリアされる
file_list.clear_exclude
file_list # => ["test.rb", "test.bak"]
end
//}...

Gem::SourceIndex#latest_specs -> Array (12216.0)

自身に含まれる最新の Gem::Specification のリストを返します。

...自身に含まれる最新の Gem::Specification のリストを返します。...

絞り込み条件を変える

Gem::Server#latest_specs(request, response) -> () (12212.0)

メソッド名に対応する URI に対するリクエストを処理するメソッドです。

...メソッド名に対応する URI に対するリクエストを処理するメソッドです。

@param request WEBrick::HTTPRequest オブジェクトが自動的に指定されます。

@param response WEBrick::HTTPResponse オブジェクトが自動的に指定されます。...
<< 1 2 3 ... > >>