Documentation
¶
Overview ¶
Package invoketest provides a contract test suite for invoke providers.
Index ¶
Constants ¶
View Source
const ( CategoryCore = "core" CategoryLifecycle = "lifecycle" CategoryEnvironment = "environment" CategoryFilesystem = "filesystem" CategorySystem = "system" CategoryErrors = "errors" )
Standard categories for grouping tests.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type T ¶
type T interface {
Errorf(format string, args ...any)
FailNow()
Skipf(format string, args ...any)
Context() context.Context
TempDir() string
Name() string
}
T is the minimal interface required for testify/assert and require.
type TestCase ¶
type TestCase struct {
Category string
Name string
Description string
Prereq func(t T, env invoke.Environment) (ok bool, reason string)
Run func(t T, env invoke.Environment)
}
TestCase defines a single behavioral contract requirement.
func AllContracts ¶
func AllContracts() []TestCase
AllContracts returns all test cases for the contract test suite.
Click to show internal directories.
Click to hide internal directories.