別のキーワード
ライブラリ
- ビルトイン (740)
- csv (120)
- fileutils (36)
- json (12)
-
json
/ add / exception (12) - logger (12)
-
minitest
/ unit (36) -
net
/ http (24) - objspace (12)
- optparse (84)
- pathname (12)
- rake (348)
-
rake
/ loaders / makefile (12) -
rake
/ packagetask (24) -
rake
/ testtask (36) -
rubygems
/ specification (96)
クラス
-
ARGF
. class (84) - Binding (7)
- CSV (120)
- Exception (44)
- File (168)
-
Gem
:: Specification (96) - IO (104)
- Logger (12)
-
MiniTest
:: Unit (7) -
MiniTest
:: Unit :: TestCase (1) - Module (12)
-
Net
:: HTTPGenericRequest (24) - OptionParser (84)
- Pathname (12)
-
Rake
:: Application (108) -
Rake
:: FileList (96) -
Rake
:: FileTask (12) -
Rake
:: InvocationChain (60) -
Rake
:: MakefileLoader (12) -
Rake
:: PackageTask (24) -
Rake
:: TestTask (36) - String (12)
- Thread (24)
モジュール
- FileTest (249)
- FileUtils (36)
-
Gem
:: InstallUpdateOptions (12) - JSON (12)
- Kernel (60)
-
MiniTest
:: Assertions (26) - ObjectSpace (12)
- Rake (24)
-
Rake
:: TaskManager (36)
キーワード
-
1
. 6 . 8から1 . 8 . 0への変更点(まとめ) (12) - Assertion (1)
- Assertions (1)
-
NEWS for Ruby 2
. 2 . 0 (11) -
NEWS for Ruby 2
. 7 . 0 (6) -
NEWS for Ruby 3
. 0 . 0 (5) -
NEWS for Ruby 3
. 1 . 0 (4) -
PASSTHROUGH
_ EXCEPTIONS (1) - VERSION (1)
-
_ assertions (1) -
_ assertions= (1) -
add
_ loader (12) -
allocation
_ sourcefile (12) - append (24)
- application (12)
- application= (12)
- assert (1)
-
assert
_ block (1) -
assert
_ empty (1) -
assert
_ equal (1) -
assert
_ in _ delta (1) -
assert
_ in _ epsilon (1) -
assert
_ includes (1) -
assert
_ instance _ of (1) -
assert
_ kind _ of (1) -
assert
_ match (1) -
assert
_ nil (1) -
assert
_ operator (1) -
assert
_ raises (1) -
assert
_ respond _ to (1) -
assert
_ same (1) -
assert
_ send (1) -
assert
_ throws (1) -
assertion
_ count (1) -
assertion
_ count= (1) - atime (12)
-
backtrace
_ locations (36) - binmode (12)
- blockdev? (12)
-
body
_ stream (12) -
body
_ stream= (12) -
caller
_ locations (24) -
capture
_ io (1) - chardev? (12)
- chown (12)
- chr (12)
- clone (12)
- close (24)
- closed? (12)
-
const
_ source _ location (12) - ctime (36)
- delete (12)
- desc (12)
- directory? (12)
- dump (12)
- dup (12)
-
each
_ char (24) - egrep (12)
- empty? (9)
-
exception
_ details (1) -
excluded
_ from _ list? (12) -
executable
_ real? (12) - exist? (12)
- existing (12)
- existing! (12)
- ext (12)
- fdatasync (12)
- file? (12)
- filter (36)
- flunk (1)
- flush (12)
- getc (12)
- gets (36)
- grpowned? (12)
- gsub! (12)
-
has
_ test _ suite? (12) -
has
_ unit _ tests? (12) - identical? (12)
- import (12)
- init (12)
-
install
_ update _ defaults _ str (12) -
internal
_ encoding (12) -
last
_ description (12) -
last
_ description= (12) - lchmod (12)
- lchown (12)
- link (12)
- load (12)
- location (1)
- member? (12)
- mkdir (12)
- move (12)
- mtime (12)
-
mu
_ pp (1) - mv (12)
- name (12)
- needed? (12)
- new (36)
-
on
_ head (12) -
on
_ tail (12) - open (72)
-
original
_ dir (12) - output= (1)
- owned? (12)
-
package
_ files (12) -
package
_ files= (12) - parse (24)
- parse! (12)
- pass (1)
- pipe? (12)
-
program
_ name= (12) - puke (1)
- puts (12)
- rakefile (12)
- read (12)
- readable? (12)
- readlines (12)
- readlink (12)
- resolve (12)
-
ruby 1
. 6 feature (12) -
ruby 1
. 8 . 2 feature (12) -
ruby 1
. 8 . 3 feature (12) -
ruby 1
. 8 . 4 feature (12) -
ruby
_ opts= (12) -
set
_ backtrace (12) - setgid? (12)
- setuid? (12)
- size (12)
- size? (12)
- skip (1)
- socket? (12)
-
source
_ location (7) - status (1)
- sticky? (12)
- symlink? (12)
-
synthesize
_ file _ task (12) -
test
/ unit (12) -
test
_ file (12) -
test
_ file= (12) -
test
_ files (12) -
test
_ files= (12) -
test
_ suite _ file (12) -
test
_ suite _ file= (12) -
to
_ a (12) -
to
_ json (12) -
to
_ s (12) -
top
_ level (12) -
top
_ level _ tasks (12) -
tty
_ output= (12) - unlink (12)
- writable? (12)
- write (8)
- yaml (12)
- zero? (12)
検索結果
先頭5件
-
Kernel
. # test(cmd , file1 , file2) -> bool (18150.0) -
2ファイル間のファイルテストを行います。
...とみなします。
@param file1 テストするファイルのパスを表す文字列か IO オブジェクトを指定します。
@param file2 テストするファイルのパスを表す文字列か IO オブジェクトを指定します。
@return 真偽値を返します。
以下は cmd......ファイル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
# =>... -
Kernel
. # test(cmd , file) -> bool | Time | Integer | nil (18145.0) -
単体のファイルでファイルテストを行います。
...列の場合はその先頭の文字だけをコマンドとみなします。
@param file テストするファイルのパスを表す文字列か IO オブジェクトを指定します。
@return 下表に特に明記していないものは、真偽値を返します。
以下は cmd として......me
: ?A
ファイルの最終アクセス時刻を返す -> Time
: ?C
ファイルの inode 変更時刻を返す -> Time
//emlist[例][ruby]{
IO.write("testfile", "test")
test("r", "testfile") # => true
test("s", "testfile") # => 4
test("M", "testfile") # => 2018-03-31 07:38:40 +0900
//}... -
MiniTest
:: Assertions # exception _ details(exception , message) -> String (12200.0) -
与えられた例外の詳細を文字列として返します。
...与えられた例外の詳細を文字列として返します。
@param exception 例外を指定します。
@param message メッセージを指定します。... -
MiniTest
:: Assertions # capture _ io { . . . } -> Array (12101.0) -
与えられたブロックを評価中の標準出力と標準エラー出力を StringIO に 変更します。
...与えられたブロックを評価中の標準出力と標準エラー出力を StringIO に
変更します。
@return ブロック評価中に出力された文字列を標準出力を第一要素、標準エラー出力を第二要素とした
配列にして返します。... -
MiniTest
:: Assertions # _ assertions -> Fixnum (12100.0) -
アサーション数を返します。
アサーション数を返します。 -
MiniTest
:: Assertions # _ assertions=(count) (12100.0) -
アサーション数をセットします。
アサーション数をセットします。
@param count 件数を指定します。 -
MiniTest
:: Unit :: TestCase :: PASSTHROUGH _ EXCEPTIONS -> [Class] (12100.0) -
システム関連の例外のリストです。内部で使用します。
システム関連の例外のリストです。内部で使用します。 -
Exception
# backtrace _ locations -> [Thread :: Backtrace :: Location] (9230.0) -
バックトレース情報を返します。Exception#backtraceに似ていますが、 Thread::Backtrace::Location の配列を返す点が異なります。
...ース情報を返します。Exception#backtraceに似ていますが、
Thread::Backtrace::Location の配列を返す点が異なります。
現状では Exception#set_backtrace によって戻り値が変化する事はあり
ません。
//emlist[例: test.rb][ruby]{
require "date"
def check......get_exception
return begin
yield
rescue => e
e
end
end
e = get_exception { check_long_month(2) }
p e.backtrace_locations
# => ["test.rb:4:in `check_long_month'", "test.rb:15:in `block in <main>'", "test.rb:9:in `get_exception'", "test.rb:15:in `<main>'"]
//}
@see Exception#backtrace... -
IO
# clone -> IO (9212.0) -
レシーバと同じ IO を参照する新しい IO オブジェクトを返します。 参照しているファイル記述子は dup(2) されます。
...シーバと同じ IO を参照する新しい IO オブジェクトを返します。
参照しているファイル記述子は dup(2) されます。
clone の際に self は一旦 IO#flush されます。
フリーズした IO の clone は同様にフリーズされた IO を返しますが、......しいフリーズされていない IO を返します。
@raise IOError 既に close されていた場合に発生します。
//emlist[例][ruby]{
clone_io = nil
IO.write("testfile", "test")
File.open("testfile") do |io|
clone_io = io.clone
end
clone_io.read # => "test"
clone_io.close
//}... -
IO
# dup -> IO (9212.0) -
レシーバと同じ IO を参照する新しい IO オブジェクトを返します。 参照しているファイル記述子は dup(2) されます。
...シーバと同じ IO を参照する新しい IO オブジェクトを返します。
参照しているファイル記述子は dup(2) されます。
clone の際に self は一旦 IO#flush されます。
フリーズした IO の clone は同様にフリーズされた IO を返しますが、......しいフリーズされていない IO を返します。
@raise IOError 既に close されていた場合に発生します。
//emlist[例][ruby]{
clone_io = nil
IO.write("testfile", "test")
File.open("testfile") do |io|
clone_io = io.clone
end
clone_io.read # => "test"
clone_io.close
//}... -
MiniTest
:: Unit # location(exception) -> String (9200.0) -
与えられた例外の発生した場所を返します。
与えられた例外の発生した場所を返します。 -
Rake
:: TestTask # options=(option _ str) (9200.0) -
テストスイートに渡すパラメータをセットします。
...テストスイートに渡すパラメータをセットします。
@param option_str テストスイートに渡すパラメータを指定します。... -
Rake
:: Application # options -> OpenStruct (9118.0) -
コマンドラインで与えられたアプリケーションのオプションを返します。
...ーションのオプションを返します。
//emlist[][ruby]{
# Rakefile での記載例とする
task default: :test_rake_app
task :test_rake_app do
Rake.application.options # => #<OpenStruct always_multitask=false, backtrace=false, build_all=false, dryrun=false, ignore_deprecate=false, i......em=false, job_stats=false, load_system=false, nosearch=false, rakelib=["rakelib"], show_all_tasks=false, show_prereqs=false, show_task_pattern=nil, show_tasks=nil, silent=false, suppress_backtrace_pattern=nil, thread_pool_size=8, trace=false, trace_output=#<IO:<STDERR>>, trace_rules=false>
end
//}... -
Gem
:: Specification # test _ file -> String (9117.0) -
Gem::Specification#test_files の単数バージョンです。
...Gem::Specification#test_files の単数バージョンです。...