summaryrefslogtreecommitdiff
path: root/runner
diff options
context:
space:
mode:
authorewy <ewy0@protonmail.com>2026-04-22 18:29:37 +0200
committerewy <ewy0@protonmail.com>2026-04-22 18:29:37 +0200
commit374ed5e1a4dc635c42e33e4133729d40cf3e0e35 (patch)
tree01f12ca3eea0154b61afde3d1ee27df2094644e1 /runner
parentee481fa406bb685a16d8b568fca0c9f592c06180 (diff)
work on tests
also replace the annoying search return with a struct
Diffstat (limited to 'runner')
-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")
+}