func BenchmarkComplexEgo(b *testing.B) { var buf bytes.Buffer for i := 0; i < b.N; i++ { ego.EgoComplex(&buf, testComplexUser, testComplexNav, testComplexTitle) } }
/****************************************************************************** ** Ego ******************************************************************************/ func TestComplexEgo(t *testing.T) { var buf bytes.Buffer ego.EgoComplex(&buf, testComplexUser, testComplexNav, testComplexTitle) if msg, ok := linesEquals(buf.String(), expectedtComplexResult); !ok { t.Error(msg) } }