package testcheck
import "github.com/Diarkis/diarkis/analysis/passes/testcheck"
Package testcheck defines an analyzer that detects incorrect usage of ts.Async within ts.OnEnd
Analyzer testcheck
testcheck: check for correct usage of ts.Async within ts.OnEnd
We are checking to make sure that the following doesn't happen with usage of ts.Async:
Ex: We create some usage of ts.End
ts.OnEnd(func() { ... ts.Async(func() { ... }) })
Index
Variables
var Analyzer = &analysis.Analyzer{ Name: "testcheck", Doc: "Checks for incorrect usage of ts.Async within ts.OnEnd", Requires: []*analysis.Analyzer{inspect.Analyzer}, Run: run, }
Analyzer for testcheck; checks for incorrect usage of ts.Async within ts.OnEnd
Directories
cmd | The testcheck command applies the github.com/Diarkis/diarkis/analysis/testcheck analysis to the specified packages of Go source code. |