mirror of
https://github.com/zellyn/diskii.git
synced 2024-11-21 23:31:47 +00:00
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",
|
||
|
})
|
||
|
}
|