diff --git a/dummy.go b/dummy.go index 37baf39..add3e06 100644 --- a/dummy.go +++ b/dummy.go @@ -17,3 +17,14 @@ var ErrDummy = errors.New("dummy") type PublicAPI struct { PublicMember int } + +func (p *PublicAPI) PublicFunc() { + println("Running PublicAPI.PublicFunc") + println("PublicAPI.PublicMember: ", p.PublicMember) + if p.PublicMember == 1 { + println("PublicAPI.PublicMember is one") + } + if p.PublicMember != 1 { + println("PublicAPI.PublicMember is not one") + } +} diff --git a/dummy_test.go b/dummy_test.go index 95ff4c9..a4d155d 100644 --- a/dummy_test.go +++ b/dummy_test.go @@ -10,4 +10,6 @@ import ( ) func TestDummy(*testing.T) { + p := &PublicAPI{} + p.PublicFunc() }