summaryrefslogtreecommitdiff
path: root/runner/stub.go
diff options
context:
space:
mode:
Diffstat (limited to 'runner/stub.go')
-rw-r--r--runner/stub.go56
1 files changed, 56 insertions, 0 deletions
diff --git a/runner/stub.go b/runner/stub.go
new file mode 100644
index 0000000..e1fd8ed
--- /dev/null
+++ b/runner/stub.go
@@ -0,0 +1,56 @@
+//go:build test
+
+package runner
+
+import (
+ "os/exec"
+ "pik/model"
+)
+
+// 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) 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")
+}