//go:build test package runner import ( "github.com/ewy1/pik/model" "os/exec" ) // Stub is the most minimal and useless implementation of the target interface. It only panics. Use if you need a target-compliant struct. type Stub struct { } func (s Stub) File(src *model.Source) string { //TODO implement me panic("implement me") } func (s Stub) Matches(input string) bool { //TODO implement me panic("implement me") } func (s Stub) Create(src *model.Source) *exec.Cmd { //TODO implement me panic("implement me") } func (s Stub) Sub() []string { //TODO implement me panic("implement me") } func (s Stub) Label() string { //TODO implement me panic("implement me") } func (s Stub) Hydrate(src *model.Source) (model.HydratedTarget, error) { //TODO implement me panic("implement me") } func (s Stub) Tags() model.Tags { return nil } func (s Stub) ShortestId() string { //TODO implement me panic("implement me") } func (s Stub) Visible() bool { //TODO implement me panic("implement me") } func (s Stub) Invocation(src *model.Source) []string { //TODO implement me panic("implement me") } type HydratedStub struct { } func (h HydratedStub) Matches(input string) bool { //TODO implement me panic("implement me") } func (h HydratedStub) Create(s *model.Source) *exec.Cmd { //TODO implement me panic("implement me") } func (h HydratedStub) Sub() []string { //TODO implement me panic("implement me") } func (h HydratedStub) Label() string { //TODO implement me panic("implement me") } func (h HydratedStub) Hydrate(src *model.Source) (model.HydratedTarget, error) { //TODO implement me panic("implement me") } func (h HydratedStub) Tags() model.Tags { //TODO implement me panic("implement me") } func (h HydratedStub) ShortestId() string { //TODO implement me panic("implement me") } func (h HydratedStub) Visible() bool { //TODO implement me panic("implement me") } func (h HydratedStub) Invocation(src *model.Source) []string { //TODO implement me panic("implement me") } func (h HydratedStub) Icon() string { //TODO implement me panic("implement me") } func (h HydratedStub) Description(src *model.HydratedSource) string { //TODO implement me panic("implement me") } func (h HydratedStub) Target() model.Target { //TODO implement me panic("implement me") }