Documentation
¶
Index ¶
- Constants
- type CheckResult
- func (r *CheckResult) AddRewriterWarning(rrtype string, position int, message string)
- func (r *CheckResult) AddScriptWarning(obj *tp.ScriptObject, ins *tp.Instruction, message string)
- func (r *CheckResult) AddXpathWarning(obj *tp.ScriptObject, ins *tp.Instruction, message string)
- func (result *CheckResult) CheckForLocationExport(script *tp.ScriptObject)
- func (result *CheckResult) CheckForNotMisuse(script *tp.ScriptObject)
- func (result *CheckResult) CheckForSelectText(script *tp.ScriptObject)
- func (result *CheckResult) CheckXpath(script *tp.ScriptObject)
- type ProjectTests
- type RewriteTestCase
- type Warning
Constants ¶
View Source
const ( WARNING_SCRIPT = iota WARNING_REWRITER WARNING_XPATH )
View Source
const TEST_FILE = "test/rewrite_test.yml"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CheckResult ¶
type CheckResult struct {
Warnings []*Warning
}
func CheckBeforeLinking ¶
func CheckBeforeLinking(scripts []*tp.ScriptObject) *CheckResult
func CheckFile ¶
func CheckFile(projectPath, scriptPath, fileName string, activeLayers []string) *CheckResult
func (*CheckResult) AddRewriterWarning ¶
func (r *CheckResult) AddRewriterWarning(rrtype string, position int, message string)
func (*CheckResult) AddScriptWarning ¶
func (r *CheckResult) AddScriptWarning(obj *tp.ScriptObject, ins *tp.Instruction, message string)
func (*CheckResult) AddXpathWarning ¶
func (r *CheckResult) AddXpathWarning(obj *tp.ScriptObject, ins *tp.Instruction, message string)
func (*CheckResult) CheckForLocationExport ¶
func (result *CheckResult) CheckForLocationExport(script *tp.ScriptObject)
func (*CheckResult) CheckForNotMisuse ¶
func (result *CheckResult) CheckForNotMisuse(script *tp.ScriptObject)
func (*CheckResult) CheckForSelectText ¶
func (result *CheckResult) CheckForSelectText(script *tp.ScriptObject)
func (*CheckResult) CheckXpath ¶
func (result *CheckResult) CheckXpath(script *tp.ScriptObject)
type ProjectTests ¶
type ProjectTests struct {
Host []RewriteTestCase
Link []RewriteTestCase
Cookie_Domain []RewriteTestCase
}
type RewriteTestCase ¶
type Warning ¶
func NewWarning ¶
Click to show internal directories.
Click to hide internal directories.