Loading bigpear.go +8 −0 Original line number Diff line number Diff line package bigpear const ( titleText = "bp - Big Pear" ) func Title() string { return titleText } bigpear_test.go +5 −2 Original line number Diff line number Diff line Loading @@ -2,6 +2,9 @@ package bigpear import "testing" func TestDummy(t *testing.T) { t.Skip("no tests") func TestTitle(t *testing.T) { x := Title() if x != titleText { t.Fatalf("Title() is %q, expected %q", x, titleText) } } Loading
bigpear.go +8 −0 Original line number Diff line number Diff line package bigpear const ( titleText = "bp - Big Pear" ) func Title() string { return titleText }
bigpear_test.go +5 −2 Original line number Diff line number Diff line Loading @@ -2,6 +2,9 @@ package bigpear import "testing" func TestDummy(t *testing.T) { t.Skip("no tests") func TestTitle(t *testing.T) { x := Title() if x != titleText { t.Fatalf("Title() is %q, expected %q", x, titleText) } }