Updated the test edit page (still need to do the post page)
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed

This commit is contained in:
2025-08-10 01:44:33 -04:00
parent c19bb2108c
commit 60d8554cf1
4 changed files with 60 additions and 2 deletions

View File

@ -1,6 +1,8 @@
package models
import (
"strconv"
"gorm.io/gorm"
)
@ -19,3 +21,12 @@ type Test struct {
// has many results
Results []Result
}
func (t *Test) SelectedBenchmarks() []string {
benchmarks := t.Benchmarks
ids := make([]string, len(benchmarks))
for i, b := range benchmarks {
ids[i] = strconv.Itoa(int(b.ID))
}
return ids
}