File: sample_03.rb

package info (click to toggle)
rcov 0.7.0-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 336 kB
  • ctags: 471
  • sloc: ruby: 4,780; ansic: 439; makefile: 13
file content (20 lines) | stat: -rw-r--r-- 359 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20

module Rcov; module Test; module Temporary; class Sample03
  def f1                # MUST NOT CHANGE the position or the tests will break
    10.times { f2 }
  end

  def f2; 1 end

  def f3
    10.times{ f1 }
    100.times{ f2 }
  end                   
  
  def self.g1
    10.times{ g2 }
  end

  def self.g2; 1 end
  # safe from here ...
end end end end