Documentation ¶
Index ¶
- Variables
- func MustEncode(data any) []byte
- func NewTestJobContext(ctx context.Context, jobKey, correlationId, transactionId string, ...) *sparkv1.JobContext
- func WithSparkConfigJSON(d []byte) sparkv1.Option
- func WithSparkConfigYAML(d []byte) sparkv1.Option
- type Input
- type Inputs
- type Option
- type Outputs
- type RunnerTest
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNoStageResult = errors.New("stage result not found") ErrNoOutput = errors.New("unable to find output") )
View Source
var (
ErrInvalidStageResultMimeType = errors.New("stage result expects mime-type of application/json")
)
Functions ¶
func MustEncode ¶ added in v1.36.0
func NewTestJobContext ¶ added in v1.20.0
func WithSparkConfigJSON ¶ added in v1.24.0
func WithSparkConfigYAML ¶ added in v1.24.0
Types ¶
type Option ¶ added in v1.20.0
type Option = func(je *testOpts) *testOpts
func WithBasePath ¶ added in v1.20.0
type Outputs ¶ added in v1.20.0
type Outputs struct {
sparkv1.ExecuteSparkOutput
}
type RunnerTest ¶ added in v1.20.0
type RunnerTest interface { sparkv1.StageTracker Execute(ctx *sparkv1.JobContext, opts ...sparkv1.Option) (*Outputs, error) }
RunnerTest Test Helper
func NewTestRunner ¶ added in v1.20.0
Click to show internal directories.
Click to hide internal directories.