xcov 1.7.2 → 1.7.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/xcov-core/bin/xcov-core +0 -0
- data/lib/xcov/manager.rb +2 -0
- data/lib/xcov/model/source.rb +8 -2
- data/lib/xcov/model/target.rb +3 -1
- data/lib/xcov/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8334d64118f7acb99400f0ca4b47b0eacde9a830a8c8bd9ac81ff4916728657c
|
4
|
+
data.tar.gz: 07ca92f5c64f17614f5bb18704b54b639fe78c1e73eabe1f877daa417aff7e9e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 75f59b32db70506c183bebffded904dd90fff1513d72324dfea65618f4b86541da2d9075dc287bf8621310a6f73699b96dbfd733530d8271570fd87d8b21f417
|
7
|
+
data.tar.gz: e0426b9b98e3c93908e9a43224ee9676bf40a97357c37feb16a203f23f414f1deef509033326a54045506a0ed8da9f535a176bb14c98a9771984a27086114fea
|
data/lib/xcov-core/bin/xcov-core
CHANGED
Binary file
|
data/lib/xcov/manager.rb
CHANGED
data/lib/xcov/model/source.rb
CHANGED
@@ -8,14 +8,18 @@ module Xcov
|
|
8
8
|
attr_accessor :type
|
9
9
|
attr_accessor :ignored
|
10
10
|
attr_accessor :coverage
|
11
|
+
attr_accessor :coveredLines
|
12
|
+
attr_accessor :executableLines
|
11
13
|
attr_accessor :functions
|
12
14
|
attr_accessor :function_templates
|
13
15
|
attr_accessor :lines
|
14
16
|
|
15
|
-
def initialize(name, location, coverage, functions, lines = nil)
|
17
|
+
def initialize(name, location, coverage, coveredLines, executableLines, functions, lines = nil)
|
16
18
|
@name = CGI::escapeHTML(name)
|
17
19
|
@location = CGI::escapeHTML(location)
|
18
20
|
@coverage = coverage
|
21
|
+
@coveredLines = coveredLines
|
22
|
+
@executableLines = executableLines
|
19
23
|
@functions = functions
|
20
24
|
@ignored = Xcov.ignore_handler.should_ignore_file_at_path(location)
|
21
25
|
@displayable_coverage = self.create_displayable_coverage
|
@@ -68,9 +72,11 @@ module Xcov
|
|
68
72
|
name = dictionary["name"]
|
69
73
|
location = dictionary["location"]
|
70
74
|
coverage = dictionary["coverage"]
|
75
|
+
coveredLines = dictionary["coveredLines"]
|
76
|
+
executableLines = dictionary["executableLines"]
|
71
77
|
functions = dictionary["functions"].map { |function| Function.map(function)}
|
72
78
|
lines = map_lines(dictionary["lines"])
|
73
|
-
Source.new(name, location, coverage, functions, lines)
|
79
|
+
Source.new(name, location, coverage, coveredLines, executableLines, functions, lines)
|
74
80
|
end
|
75
81
|
|
76
82
|
def self.map_lines(dictionaries)
|
data/lib/xcov/model/target.rb
CHANGED
@@ -10,7 +10,9 @@ module Xcov
|
|
10
10
|
def initialize(name, files)
|
11
11
|
@name = CGI::escapeHTML(name)
|
12
12
|
@files = files
|
13
|
-
|
13
|
+
totalCoveredLines = files.reduce(0) { |acc, file| acc + file.coveredLines }
|
14
|
+
totalExecutableLines = files.reduce(0) { |acc, file| acc + file.executableLines }
|
15
|
+
@coverage = files.count == 0 || totalExecutableLines == 0 ? 0.0 : totalCoveredLines.to_f / totalExecutableLines.to_f
|
14
16
|
@displayable_coverage = self.create_displayable_coverage
|
15
17
|
@coverage_color = self.create_coverage_color
|
16
18
|
@id = Target.create_id(name)
|
data/lib/xcov/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: xcov
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.7.
|
4
|
+
version: 1.7.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Carlos Vidal
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-04-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: fastlane
|