gcc

package
v0.0.0-...-d4285bb Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 7, 2014 License: BSD-2-Clause Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NAME = "GCC"
)

Variables

This section is empty.

Functions

func NewResult

func NewResult(fileId bson.ObjectId, data []byte) (result.Tooler, error)

Types

type Report

type Report struct {
	Id       bson.ObjectId      `bson:"_id"`
	Type     result.CompileType `bson:"type"`
	Warnings int                `bson:"warnings"`
	Errors   int                `bson:"errors"`
	Data     []byte             `bson:"data"`
}

func NewReport

func NewReport(id bson.ObjectId, data []byte) (*Report, error)

NewReport

func (*Report) Header

func (r *Report) Header() (header string)

Header generates a string which briefly describes the compilation.

func (*Report) Success

func (r *Report) Success() bool

Success tells us if compilation finished with no errors or warnings.

type Result

type Result struct {
	Id     bson.ObjectId `bson:"_id"`
	FileId bson.ObjectId `bson:"fileid"`
	Name   string        `bson:"name"`
	Report *Report       `bson:"report"`
	GridFS bool          `bson:"gridfs"`
	Type   string        `bson:"type"`
}

func (*Result) ChartVals

func (r *Result) ChartVals() []*result.ChartVal

ChartVals

func (*Result) GetFileId

func (r *Result) GetFileId() bson.ObjectId

func (*Result) GetId

func (r *Result) GetId() bson.ObjectId

func (*Result) GetName

func (r *Result) GetName() string

func (*Result) GetTestId

func (r *Result) GetTestId() bson.ObjectId

func (*Result) GetType

func (r *Result) GetType() string

func (*Result) OnGridFS

func (r *Result) OnGridFS() bool

func (*Result) Reporter

func (r *Result) Reporter() result.Reporter

func (*Result) SetReport

func (r *Result) SetReport(report result.Reporter)

func (*Result) Template

func (r *Result) Template() string

type Tool

type Tool struct {
	// contains filtered or unexported fields
}

func New

func New() (*Tool, error)

func (*Tool) AddCP

func (t *Tool) AddCP(p string)

func (*Tool) Lang

func (t *Tool) Lang() tool.Language

Lang

func (*Tool) Name

func (t *Tool) Name() string

Name

func (*Tool) Run

func (t *Tool) Run(fileId bson.ObjectId, target *tool.Target) (result.Tooler, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL