forked from sguiheux/go-coverage
-
Notifications
You must be signed in to change notification settings - Fork 0
/
types_clover.go
82 lines (71 loc) · 2.49 KB
/
types_clover.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
package coverage
import "encoding/xml"
type CloverCoverage struct {
XMLName xml.Name `xml:"coverage"`
Clover string `xml:"clover,attr"`
Generated int64 `xml:"generated,attr"`
Project CloverProject `xml:"project"`
}
type CloverProject struct {
Name string `xml:"name,attr"`
Timestamp int64 `xml:"timestamp,attr"`
Metrics CloverMetric `xml:"metrics"`
Package []CloverPackage `xml:"package"`
}
type CloverPackage struct {
Name string `xml:"name,attr"`
Metrics CloverPackageMetrics `xml:"metrics"`
File []CloverFile `xml:"file"`
}
type CloverFile struct {
Name string `xml:"name,attr"`
Path string `xml:"path,attr"`
Metrics CloverFileMetrics `xml:"metrics"`
Class []CloverClass `xml:"class"`
Line []CloverLine `xml:"line"`
}
type CloverClass struct {
Name string `xml:"name,attr"`
Metrics CloverClassMetrics `xml:"metrics"`
}
type CloverLine struct {
Num int64 `xml:"num,attr"`
Type string `xml:"type,attr"`
Complexity int64 `xml:"complexity,attr"`
Count int64 `xml:"count,attr"`
FalseCount int64 `xml:"falsecount,attr"`
TrueCount int64 `xml:"truecount,attr"`
Signature int64 `xml:"signature,attr"`
TestDuration float64 `xml:"testduration,attr"`
TestSuccess bool `xml:"testsuccess,attr"`
Visibility string `xml:"visibility,attr"`
}
type CloverMetric struct {
CloverPackageMetrics
Packages int64 `xml:"packages,attr"`
}
type CloverPackageMetrics struct {
CloverFileMetrics
Files int64 `xml:"files,attr"`
}
type CloverFileMetrics struct {
CloverClassMetrics
Classes int64 `xml:"classes,attr"`
Loc int64 `xml:"loc,attr"`
Ncloc int64 `xml:"ncloc,attr"`
}
type CloverClassMetrics struct {
Complexity int64 `xml:"complexity,attr"`
Elements int64 `xml:"elements,attr"`
CoveredElements int64 `xml:"coveredelements,attr"`
Conditionnals int64 `xml:"conditionals,attr"`
CoveredConditionals int64 `xml:"coveredconditionals,attr"`
Statements int64 `xml:"statements,attr"`
CoveredStatements int64 `xml:"coveredstatements,attr"`
CoveredMethods int64 `xml:"coveredmethods,attr"`
Methods int64 `xml:"methods,attr"`
TestDuration float64 `xml:"testduration,attr"`
TestFailures int64 `xml:"testfailures,attr"`
TestPasses int64 `xml:"testpasses,attr"`
TestRuns int64 `xml:"testruns,attr"`
}