Revert "test: increase coverage on test helpers"
This reverts commit 2727b9e535
.
This commit is contained in:
parent
2727b9e535
commit
3568719115
|
@ -4,7 +4,6 @@ import "testing"
|
||||||
|
|
||||||
func TestAssert(t *testing.T) {
|
func TestAssert(t *testing.T) {
|
||||||
err := ""
|
err := ""
|
||||||
oldErr := errFunc
|
|
||||||
errFunc = func(t *testing.T, message string) {
|
errFunc = func(t *testing.T, message string) {
|
||||||
err = message
|
err = message
|
||||||
}
|
}
|
||||||
|
@ -18,11 +17,9 @@ func TestAssert(t *testing.T) {
|
||||||
if err != `gobottest_test.go:16: 1 - "int", should equal, 2 - "int"` {
|
if err != `gobottest_test.go:16: 1 - "int", should equal, 2 - "int"` {
|
||||||
t.Errorf("Assert failed: 1 should not equal 2")
|
t.Errorf("Assert failed: 1 should not equal 2")
|
||||||
}
|
}
|
||||||
errFunc = oldErr
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestRefute(t *testing.T) {
|
func TestRefute(t *testing.T) {
|
||||||
oldErr := errFunc
|
|
||||||
err := ""
|
err := ""
|
||||||
errFunc = func(t *testing.T, message string) {
|
errFunc = func(t *testing.T, message string) {
|
||||||
err = message
|
err = message
|
||||||
|
@ -37,7 +34,6 @@ func TestRefute(t *testing.T) {
|
||||||
if err != `gobottest_test.go:33: 1 - "int", should not equal, 1 - "int"` {
|
if err != `gobottest_test.go:33: 1 - "int", should not equal, 1 - "int"` {
|
||||||
t.Errorf("Refute failed: 1 should not be 1")
|
t.Errorf("Refute failed: 1 should not be 1")
|
||||||
}
|
}
|
||||||
errFunc = oldErr
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestExecCommand(t *testing.T) {
|
func TestExecCommand(t *testing.T) {
|
||||||
|
|
Loading…
Reference in New Issue