Documentation ¶
Index ¶
Constants ¶
View Source
const ( //Some result names. NORESULT = "NoResult" TIMEOUT = "Timeout" ERROR = "Error" CODE = "Code" //The different types of compilation that we can have. SUCCESS CompileType = iota WARNINGS ERRORS UNKNOWN )
Variables ¶
View Source
var (
COMPILE_SUCCESS = []byte("Compiled successfully")
)
Functions ¶
Types ¶
type CompileType ¶
type CompileType uint
CompileType tells us what type of result compilation gave us.
type Displayer ¶
type Displayer interface { GetType() string //GetName GetName() string //Reporter Reporter() Reporter //Template retrieves the name of a html template. //Each Displayer should therefore have a html file which specify how //its result is displayed. The return value of the Displayer's //Reporter method is passed to the template. //Here is an example for Javac: // //{{define "result"}} //{{if .Success}} //<h4 class="text-success">{{.Header}}</h4> //{{else}} //{{$content := setBreaks .Result}} //{{if .Warnings}} //<h4 class="text-warning">{{.Header}}</h4> //<p class="text-warning">{{$content}}</p> //{{else}} //<h4 class="text-danger">{{.Header}}</h4> //<p class="text-danger">{{$content}}</p> //{{end}} //{{end}} //{{end}} Template() string }
Displayer is used to display result reports.
type Error ¶
type Error struct {
// contains filtered or unexported fields
}
Error is a Displayer used to indicate that an error occured when retrieving a Tool's result or running a Tool..
type Reporter ¶
type Reporter interface{}
Reporter is an interface which represents a tool report on a snapshot.
type Tooler ¶
type Tooler interface { GetType() string //Retrieves the result's db id. GetId() bson.ObjectId //Retrieves the file associated with the result's db id. GetFileId() bson.ObjectId GetTestId() bson.ObjectId //Retrieves this result's tool name. GetName() string //True if this result is partially stored on GridFS, false otherwise. OnGridFS() bool //Retrieves the report generated by the associated tool stored in this result. Reporter() Reporter //Sets this result's tool report. Used mainly to move data from/to GridFS SetReport(Reporter) }
Tooler is used to store tool result data.
Click to show internal directories.
Click to hide internal directories.