mirror of
https://github.com/zellyn/diskii.git
synced 2024-11-21 23:31:47 +00:00
09ee1c6262
Major refactor to use kong instead of cobra. All functionality that worked before should still be working now. Added `reorder` command
26 lines
351 B
Go
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",
|
|
})
|
|
}
|