diff options
Diffstat (limited to 'spec/ruby/library/coverage/fixtures')
5 files changed, 38 insertions, 0 deletions
diff --git a/spec/ruby/library/coverage/fixtures/code_with_begin.rb b/spec/ruby/library/coverage/fixtures/code_with_begin.rb new file mode 100644 index 0000000000..9a6384e337 --- /dev/null +++ b/spec/ruby/library/coverage/fixtures/code_with_begin.rb @@ -0,0 +1,3 @@ +begin + 'coverage with begin' +end diff --git a/spec/ruby/library/coverage/fixtures/eval_code.rb b/spec/ruby/library/coverage/fixtures/eval_code.rb new file mode 100644 index 0000000000..8ab82218f3 --- /dev/null +++ b/spec/ruby/library/coverage/fixtures/eval_code.rb @@ -0,0 +1,11 @@ +5 + 5 + +module CoverageSpecs + + class_eval <<-RUBY, __FILE__, __LINE__ + 1 + attr_reader :ok + RUBY + +end + +4 + 4 diff --git a/spec/ruby/library/coverage/fixtures/second_class.rb b/spec/ruby/library/coverage/fixtures/second_class.rb new file mode 100644 index 0000000000..0318ac26ff --- /dev/null +++ b/spec/ruby/library/coverage/fixtures/second_class.rb @@ -0,0 +1,5 @@ +class SecondClass + def some_method + 42 + end +end diff --git a/spec/ruby/library/coverage/fixtures/some_class.rb b/spec/ruby/library/coverage/fixtures/some_class.rb new file mode 100644 index 0000000000..52629f0332 --- /dev/null +++ b/spec/ruby/library/coverage/fixtures/some_class.rb @@ -0,0 +1,16 @@ + +#Class comment +class SomeClass + + # Method comment + def some_method + + # Inline method comment + actual_code = true + + end + +end + +# Trailing comment and extra blank line + diff --git a/spec/ruby/library/coverage/fixtures/start_coverage.rb b/spec/ruby/library/coverage/fixtures/start_coverage.rb new file mode 100644 index 0000000000..8a0c56c50a --- /dev/null +++ b/spec/ruby/library/coverage/fixtures/start_coverage.rb @@ -0,0 +1,3 @@ +2 + 2 +Coverage.start +1 + 1 |
