diff options
| author | Paul Buetow <paul@buetow.org> | 2026-03-27 06:36:47 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-03-27 06:36:47 +0200 |
| commit | 5e014f3a6c7fc766ed4216919f8b268d6e320d03 (patch) | |
| tree | 4b3d1292a8b136d0027b232ca0d9aadbdddc8eeb /internal/askcli/command_dep_test.go | |
| parent | 7a38213ce33d11690c32645456fd3814f33731da (diff) | |
Verify fish selector completion coverage for 6c1f2f60-d55c-4a0c-ba5d-e897c738ecb4
Diffstat (limited to 'internal/askcli/command_dep_test.go')
| -rw-r--r-- | internal/askcli/command_dep_test.go | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/internal/askcli/command_dep_test.go b/internal/askcli/command_dep_test.go index 408ef86..f674d28 100644 --- a/internal/askcli/command_dep_test.go +++ b/internal/askcli/command_dep_test.go @@ -58,6 +58,16 @@ func TestHandleDep_AddSuccess(t *testing.T) { } func TestHandleDep_RmSuccess(t *testing.T) { + dir := t.TempDir() + oldRoot := taskAliasCacheRoot + oldNow := nowTaskAliasCache + taskAliasCacheRoot = func() (string, error) { return filepath.Join(dir, "hexai"), nil } + nowTaskAliasCache = func() time.Time { return time.Date(2026, 3, 26, 12, 0, 0, 0, time.UTC) } + defer func() { + taskAliasCacheRoot = oldRoot + nowTaskAliasCache = oldNow + }() + d := NewDispatcher(&spyRunner{runFn: func(ctx context.Context, args []string, stdin io.Reader, stdout, stderr io.Writer) (int, error) { if len(args) == 2 && args[1] == "export" { switch args[0] { |
