Name | Total Lines | Lines of Code | Total Coverage | Code Coverage |
---|---|---|---|---|
lib/linux-tools.rb | 72 | 53 | 72.22%
|
62.26%
|
Code reported as executed by Ruby looks like this...and this: this line is also marked as covered.Lines considered as run by rcov, but not reported by Ruby, look like this,and this: these lines were inferred by rcov (using simple heuristics).Finally, here's a line marked as not executed.
1 class Lt |
2 def self.ls |
3 system("ls") |
4 end |
5 |
6 def self.cd |
7 puts "this function is currently not operational" |
8 dir = gets |
9 system("cd "+dir) |
10 end |
11 |
12 def self.cat |
13 puts "please enter the filename" |
14 file = gets |
15 system("cat "+file) |
16 end |
17 |
18 def self.chmod |
19 puts "Please input the name of the directory/file you want to execute chmod on" |
20 file = gets |
21 puts "Please enter the mode type either in numerical or alphabetic mode" |
22 mode = gets |
23 system("chmod "+mode+" "+file) |
24 end |
25 |
26 def self.cp |
27 puts "please enter the source and destination" |
28 file = gets |
29 system("cp "+file) |
30 end |
31 |
32 def self.date |
33 end |
34 |
35 def self.df |
36 |
37 end |
38 |
39 def self.du |
40 |
41 end |
42 |
43 def self.kill |
44 end |
45 |
46 def self.mkdir |
47 end |
48 |
49 def self.mv |
50 end |
51 |
52 def self.passwd |
53 end |
54 |
55 def self.ps |
56 end |
57 |
58 def self.pwd |
59 end |
60 |
61 def self.rm |
62 end |
63 |
64 def self.rmdir |
65 end |
66 |
67 def self.who |
68 end |
69 |
70 def self.whoami |
71 end |
72 end |
Generated on Fri Apr 29 14:18:26 +0530 2011 with rcov 0.9.8