func BenchmarkComplexQuicktemplate(b *testing.B) { var buf bytes.Buffer for i := 0; i < b.N; i++ { quicktemplate.WriteIndex(&buf, testComplexUser, testComplexNav, testComplexTitle) } }
/****************************************************************************** ** Quicktemplate ******************************************************************************/ func TestComplexQuicktemplate(t *testing.T) { var buf bytes.Buffer quicktemplate.WriteIndex(&buf, testComplexUser, testComplexNav, testComplexTitle) if msg, ok := linesEquals(buf.String(), expectedtComplexResult); !ok { t.Error(msg) } }