Documentation
¶
Index ¶
- Constants
- Variables
- func New(baseDir, srcDir string, test, target *tool.Target, testId bson.ObjectId) (tool.T, error)
- type Class
- type Classpath
- type Counter
- type Delete
- type Dest
- type ExecutionData
- type File
- type Fileset
- type Instrument
- type JUnit
- type JVMArg
- type JacocoReport
- type Javac
- type Line
- type Method
- type Mkdir
- type Package
- type PathElement
- type Project
- type Property
- type Report
- type Result
- func (r *Result) ChartVals() []*result.ChartVal
- func (r *Result) GetFileId() bson.ObjectId
- func (r *Result) GetId() bson.ObjectId
- func (r *Result) GetName() string
- func (r *Result) GetTestId() bson.ObjectId
- func (r *Result) GetType() string
- func (r *Result) OnGridFS() bool
- func (r *Result) Reporter() result.Reporter
- func (r *Result) SetReport(n result.Reporter)
- func (r *Result) Success() bool
- func (r *Result) Template() string
- type Source
- type Sourcefiles
- type Structure
- type SysProperty
- type Target
- type Taskdef
- type Test
- type Tool
- type Touch
Constants ¶
View Source
const (
BUILD_TEMPLATE = `` /* 3279-byte string literal not displayed */
)
View Source
const (
NAME = "Jacoco"
)
Variables ¶
View Source
var ( ReportError = errors.New("no report created") CodeError = errors.New("no code found") )
Functions ¶
Types ¶
type Class ¶
type Classpath ¶
type Classpath struct {
Elements []*PathElement `xml:"pathelement"`
}
type Counter ¶
type ExecutionData ¶
type ExecutionData struct {
Files []*File `xml:"file"`
}
type Instrument ¶
type JacocoReport ¶
type JacocoReport struct { ExecutionData *ExecutionData `xml:"executiondata"` Structure *Structure `xml:"structure"` HTML Dest `xml:"html"` XML Dest `xml:"xml"` }
type Line ¶
type Method ¶
type Package ¶
type PathElement ¶
type PathElement struct {
Path string `xml:"path,attr"`
}
type Project ¶
type Project struct { XMLName xml.Name `xml:"project"` Name string `xml:"name,attr"` Default string `xml:"default,attr"` Namespace string `xml:"xmlns:jacoco,attr"` Description string `xml:"description"` Properties []*Property `xml:"property"` Taskdefs []*Taskdef `xml:"taskdef"` Targets []*Target `xml:"target"` }
type Report ¶
type Report struct { Id bson.ObjectId Name string `xml:"name,attr"` Packages []*Package `xml:"package"` Counters []*Counter `xml:"counter"` HTML []byte MainCounters []*Counter }
type Result ¶
type Result struct { Id bson.ObjectId `bson:"_id"` FileId bson.ObjectId `bson:"fileid"` TestId bson.ObjectId `bson:"testid"` TestName string `bson:"name"` Report *Report `bson:"report"` GridFS bool `bson:"gridfs"` Type string `bson:"type"` }
type Source ¶
type Sourcefiles ¶
type Structure ¶
type Structure struct { Name string `xml:"name,attr"` Classfiles []*Fileset `xml:"classfiles>fileset"` Sourcefiles *Sourcefiles `xml:"sourcefiles"` }
type SysProperty ¶
type Target ¶
type Target struct { Name string `xml:"name,attr"` Depends string `xml:"depends,attr,omitempty"` Touch *Touch `xml:"touch"` Mkdir *Mkdir `xml:"mkdir"` Delete *Delete `xml:"delete"` Javac *Javac `xml:"javac"` InstrumentHolder *Instrument `xml:"instrument"` InstrumentActual *Instrument `xml:"jacoco:instrument"` JUnit *JUnit `xml:"junit"` ReportHolder *JacocoReport `xml:"report"` ReportActual *JacocoReport `xml:"jacoco:report"` }
Click to show internal directories.
Click to hide internal directories.