@@ -145,7 +145,7 @@ const (
145145 HTMLReproDurationTable = "repro_duration"
146146)
147147
148- type uiTableGenerator = func (urlPrefix string , view StatView , r * http.Request ) (* uiTable , error )
148+ type uiTableGenerator = func (urlPrefix string , view * StatView , r * http.Request ) (* uiTable , error )
149149
150150type uiTableType struct {
151151 Key string
@@ -171,12 +171,12 @@ type uiMainPage struct {
171171func (ctx * TestbedContext ) getTableTypes () []uiTableType {
172172 allTypeList := []uiTableType {
173173 {HTMLStatsTable , "Statistics" , ctx .httpMainStatsTable },
174- {HTMLBugsTable , "Bugs" , ctx .genSimpleTableController ((StatView ).GenerateBugTable , true )},
175- {HTMLBugCountsTable , "Bug Counts" , ctx .genSimpleTableController ((StatView ).GenerateBugCountsTable , false )},
176- {HTMLReprosTable , "Repros" , ctx .genSimpleTableController ((StatView ).GenerateReproSuccessTable , true )},
177- {HTMLCReprosTable , "C Repros" , ctx .genSimpleTableController ((StatView ).GenerateCReproSuccessTable , true )},
178- {HTMLReproAttemptsTable , "All Repros" , ctx .genSimpleTableController ((StatView ).GenerateReproAttemptsTable , false )},
179- {HTMLReproDurationTable , "Duration" , ctx .genSimpleTableController ((StatView ).GenerateReproDurationTable , true )},
174+ {HTMLBugsTable , "Bugs" , ctx .genSimpleTableController ((* StatView ).GenerateBugTable , true )},
175+ {HTMLBugCountsTable , "Bug Counts" , ctx .genSimpleTableController ((* StatView ).GenerateBugCountsTable , false )},
176+ {HTMLReprosTable , "Repros" , ctx .genSimpleTableController ((* StatView ).GenerateReproSuccessTable , true )},
177+ {HTMLCReprosTable , "C Repros" , ctx .genSimpleTableController ((* StatView ).GenerateCReproSuccessTable , true )},
178+ {HTMLReproAttemptsTable , "All Repros" , ctx .genSimpleTableController ((* StatView ).GenerateReproAttemptsTable , false )},
179+ {HTMLReproDurationTable , "Duration" , ctx .genSimpleTableController ((* StatView ).GenerateReproDurationTable , true )},
180180 }
181181 typeList := []uiTableType {}
182182 for _ , t := range allTypeList {
@@ -187,9 +187,9 @@ func (ctx *TestbedContext) getTableTypes() []uiTableType {
187187 return typeList
188188}
189189
190- func (ctx * TestbedContext ) genSimpleTableController (method func (view StatView ) (* Table , error ),
190+ func (ctx * TestbedContext ) genSimpleTableController (method func (view * StatView ) (* Table , error ),
191191 hasFooter bool ) uiTableGenerator {
192- return func (urlPrefix string , view StatView , r * http.Request ) (* uiTable , error ) {
192+ return func (urlPrefix string , view * StatView , r * http.Request ) (* uiTable , error ) {
193193 table , err := method (view )
194194 if err != nil {
195195 return nil , fmt .Errorf ("table generation failed: %w" , err )
@@ -201,7 +201,7 @@ func (ctx *TestbedContext) genSimpleTableController(method func(view StatView) (
201201 }
202202}
203203
204- func (ctx * TestbedContext ) httpMainStatsTable (urlPrefix string , view StatView , r * http.Request ) (* uiTable , error ) {
204+ func (ctx * TestbedContext ) httpMainStatsTable (urlPrefix string , view * StatView , r * http.Request ) (* uiTable , error ) {
205205 alignBy := r .FormValue ("align" )
206206 table , err := view .AlignedStatsTable (alignBy )
207207 if err != nil {
@@ -276,7 +276,7 @@ func (ctx *TestbedContext) httpMain(w http.ResponseWriter, r *http.Request) {
276276 v .Set ("table" , t .Key )
277277 return "/?" + v .Encode ()
278278 }
279- uiView .ActiveTable , err = tableType .Generator (uiView .GenTableURL (tableType )+ "&" , * activeView , r )
279+ uiView .ActiveTable , err = tableType .Generator (uiView .GenTableURL (tableType )+ "&" , activeView , r )
280280 if err != nil {
281281 http .Error (w , fmt .Sprintf ("%s" , err ), http .StatusInternalServerError )
282282 return
0 commit comments