diskii/script_test.go
Zellyn Hunter 09ee1c6262 major refactor
Major refactor to use kong instead of cobra. All functionality
that worked before should still be working now.

Added `reorder` command
2021-07-31 22:10:44 -04:00

26 lines
351 B
Go

package main
import (
"os"
"testing"
"github.com/rogpeppe/go-internal/testscript"
)
func testscriptMain() int {
main()
return 0
}
func TestMain(m *testing.M) {
os.Exit(testscript.RunMain(m, map[string]func() int{
"diskii": testscriptMain,
}))
}
func TestFoo(t *testing.T) {
testscript.Run(t, testscript.Params{
Dir: "testdata",
})
}