Documentation
¶
Index ¶
- Constants
- func FeatureTask() coretask.UntypedTask
- func NewServer(t testing.TB) *coreinspection.InspectionTaskServer
- func NewServerWithInspection(t testing.TB, tasks ...coretask.UntypedTask) (*coreinspection.InspectionTaskServer, string)
- func RunInspection(t testing.TB, server *coreinspection.InspectionTaskServer) string
Constants ¶
const TypeID = "test-type"
TypeID is the inspection type ID registered by NewServerWithInspection.
Variables ¶
This section is empty.
Functions ¶
func FeatureTask ¶
func FeatureTask() coretask.UntypedTask
FeatureTask returns a constant task enabled by default as an inspection feature.
func NewServer ¶
func NewServer(t testing.TB) *coreinspection.InspectionTaskServer
NewServer creates an InspectionTaskServer whose data and temporary directories live under t.TempDir().
func NewServerWithInspection ¶
func NewServerWithInspection(t testing.TB, tasks ...coretask.UntypedTask) (*coreinspection.InspectionTaskServer, string)
NewServerWithInspection registers TypeID with the given feature tasks and returns the server along with the ID of one completed inspection.
func RunInspection ¶
func RunInspection(t testing.TB, server *coreinspection.InspectionTaskServer) string
RunInspection creates one more inspection of TypeID on the server, runs it, and waits until it finishes.
Types ¶
This section is empty.