Beispiel #1
0
func TestLocation(t *testing.T) {
	loc := errgo.Location{"foo", 35}
	if loc.String() != "foo:35" {
		t.Fatalf("expected \"foo:35\" got %q", loc.String)
	}
}
Beispiel #2
0
func (*errorsSuite) TestLocation(c *gc.C) {
	loc := errgo.Location{File: "foo", Line: 35}
	c.Assert(loc.String(), gc.Equals, "foo:35")
}