Correct Go test package name.
Project: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/repo Commit: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/commit/18ab461b Tree: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/tree/18ab461b Diff: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/diff/18ab461b Branch: refs/heads/master Commit: 18ab461b513ae6dc958fc2beee449be6b5b9e695 Parents: f7ff5b6 Author: Marvin Humphrey <[email protected]> Authored: Wed Aug 5 19:07:37 2015 -0700 Committer: Marvin Humphrey <[email protected]> Committed: Thu Aug 6 19:51:32 2015 -0700 ---------------------------------------------------------------------- runtime/go/clownfish/err_test.go | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/lucy-clownfish/blob/18ab461b/runtime/go/clownfish/err_test.go ---------------------------------------------------------------------- diff --git a/runtime/go/clownfish/err_test.go b/runtime/go/clownfish/err_test.go index 9bdbceb..1457f7c 100644 --- a/runtime/go/clownfish/err_test.go +++ b/runtime/go/clownfish/err_test.go @@ -14,29 +14,28 @@ * limitations under the License. */ -package clownfish_test +package clownfish -import "git-wip-us.apache.org/repos/asf/lucy-clownfish.git/runtime/go/clownfish" import "testing" import "errors" func TestTrapErr(t *testing.T) { - err := clownfish.TrapErr( - func() { panic(clownfish.NewErr("mistakes were made")) }, + err := TrapErr( + func() { panic(NewErr("mistakes were made")) }, ) if err == nil { - t.Error("Failed to trap clownfish.Err") + t.Error("Failed to trap Err") } } func TestTrapErr_no_trap_string(t *testing.T) { defer func() { recover() }() - clownfish.TrapErr(func() { panic("foo") }) + TrapErr(func() { panic("foo") }) t.Error("Trapped plain string") // shouldn't reach here } func TestTrapErr_no_trap_error(t *testing.T) { defer func() { recover() }() - clownfish.TrapErr(func() { panic(errors.New("foo")) }) + TrapErr(func() { panic(errors.New("foo")) }) t.Error("Trapped non-clownfish.Error error type") // shouldn't reach here }
