2
2
mirror of https://github.com/octoleo/restic.git synced 2024-12-20 09:59:05 +00:00
restic/cmd/restic/cmd_forget_integration_test.go
Michael Eischer 66103aea3d Remove all usages of the global command-specific options
Now, every command uses an options struct, which is passed to the run*
function by the command.RunE method.
2024-01-23 19:21:39 +01:00

17 lines
316 B
Go

package main
import (
"context"
"testing"
rtest "github.com/restic/restic/internal/test"
)
func testRunForget(t testing.TB, gopts GlobalOptions, args ...string) {
opts := ForgetOptions{}
pruneOpts := PruneOptions{
MaxUnused: "5%",
}
rtest.OK(t, runForget(context.TODO(), opts, pruneOpts, gopts, args))
}