urfave-cli/helpers_test.go

20 lines
320 B
Go
Raw Normal View History

package cli
2013-07-20 22:50:13 +00:00
import (
"os"
2013-07-20 22:50:13 +00:00
"reflect"
"testing"
)
func init() {
2019-09-15 09:22:46 +00:00
_ = os.Setenv("CLI_TEMPLATE_REPANIC", "1")
}
2013-07-20 22:50:13 +00:00
func expect(t *testing.T, a interface{}, b interface{}) {
t.Helper()
if !reflect.DeepEqual(a, b) {
t.Errorf("Expected %v (type %v) - Got %v (type %v)", b, reflect.TypeOf(b), a, reflect.TypeOf(a))
2013-07-20 22:50:13 +00:00
}
}