/****************************************************************************** ** ftmpl ******************************************************************************/ func TestComplexFtmpl(t *testing.T) { result := ftmpl.TMPLindex(testComplexUser, testComplexNav, testComplexTitle) if msg, ok := linesEquals(result, expectedtComplexResult); !ok { t.Error(msg) } }
func BenchmarkComplexFtmpl(b *testing.B) { for i := 0; i < b.N; i++ { _ = ftmpl.TMPLindex(testComplexUser, testComplexNav, testComplexTitle) } }