Documentation ¶
Overview ¶
JVSRuntime* for runtime results
JVSAst* for Lex, ast parser and Plugin loader
Index ¶
- func StatusColor(status JVSRuntimeStatus) func(str string, modifier ...interface{}) string
- func StatusShortString(status JVSRuntimeStatus) string
- func StatusString(status JVSRuntimeStatus) string
- type JVSAstError
- type JVSRuntimeResult
- func JVSRuntimeResultFail(msgs ...string) *JVSRuntimeResult
- func JVSRuntimeResultPass(msgs ...string) *JVSRuntimeResult
- func JVSRuntimeResultUnknown(msgs ...string) *JVSRuntimeResult
- func JVSRuntimeResultWarning(msgs ...string) *JVSRuntimeResult
- func NewJVSRuntimeResult(status JVSRuntimeStatus, msgs ...string) *JVSRuntimeResult
- type JVSRuntimeStatus
- type JVSStderr
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func StatusColor ¶
func StatusColor(status JVSRuntimeStatus) func(str string, modifier ...interface{}) string
render status:
pass green
warning yellow
fail red
unknown light red
func StatusShortString ¶
func StatusShortString(status JVSRuntimeStatus) string
convert status to short string
Types ¶
type JVSAstError ¶
for lexer, parser and plugin loader Msg: messages Item: file, plugin or ast item phase: lex, parse, link or pluginLoad
func JVSPluginLoadError ¶
func JVSPluginLoadError(pluginName, msg, filePath string) *JVSAstError
create plugin load error
func (*JVSAstError) Error ¶
func (e *JVSAstError) Error() string
type JVSRuntimeResult ¶
type JVSRuntimeResult struct { Status JVSRuntimeStatus Name string // contains filtered or unexported fields }
runtime result, for build and test
Status: pass, fail, unknown, warning
title: "", Error, Unknown, Warning
msg: messages
Name: build name or test name
func JVSRuntimeResultFail ¶
func JVSRuntimeResultFail(msgs ...string) *JVSRuntimeResult
create fail runtime result
func JVSRuntimeResultPass ¶
func JVSRuntimeResultPass(msgs ...string) *JVSRuntimeResult
create pass runtime result
func JVSRuntimeResultUnknown ¶
func JVSRuntimeResultUnknown(msgs ...string) *JVSRuntimeResult
create unknown runtime result
func JVSRuntimeResultWarning ¶
func JVSRuntimeResultWarning(msgs ...string) *JVSRuntimeResult
create waring runtime result
func NewJVSRuntimeResult ¶
func NewJVSRuntimeResult(status JVSRuntimeStatus, msgs ...string) *JVSRuntimeResult
create runtime result
func (*JVSRuntimeResult) Error ¶
func (e *JVSRuntimeResult) Error() string
func (*JVSRuntimeResult) GetMsg ¶
func (e *JVSRuntimeResult) GetMsg() string
type JVSRuntimeStatus ¶
type JVSRuntimeStatus int
const ( JVSRuntimePass JVSRuntimeStatus JVSRuntimeUnknown JVSRuntimeWarning JVSRuntimeFail )
Click to show internal directories.
Click to hide internal directories.