github.com/turbot/steampipe@v1.7.0-rc.0.0.20240517123944-7cef272d4458/pkg/control/controldisplay/template_functions_test.go (about)

     1  package controldisplay
     2  
     3  import (
     4  	"testing"
     5  )
     6  
     7  func BenchmarkToCsvCell(b *testing.B) {
     8  	// the factory is called once per render execution
     9  	toCsvCell := toCSVCellFnFactory("|")
    10  	for i := 0; i < b.N; i++ {
    11  		toCsvCell(i)
    12  	}
    13  }