示例#1
0
func Benchmark_authors(b *testing.B) {
	b.StopTimer()
	a := init_authors(100, 10)
	c := create_context(0)
	b.StartTimer() //restart timer
	for i := 0; i < b.N; i++ {
		code.Render_t_authors(c, a)
	}
}
示例#2
0
func Test_authors(t *testing.T) {
	a := init_authors(2, 2)
	c := create_context(0)
	code.Render_t_authors(c, a)
	//fmt.Println(c.String())
}