1 2 3 4 5 6 7 8 9 10 11 12 13 14
package tmp import ( "testing" ) func TestSomethingLessImportant(t *testing.T) { strp := "hello!" somethingImportant(t, &strp) } func somethingImportant(t *testing.T, message *string) { t.Log("Something important happened in a test: " + *message) }