Files
blt/web/forms/test.go
Gregory Ballantine 352950467c
Some checks are pending
ci/woodpecker/push/woodpecker Pipeline is pending
Finishing the test/edit route
2025-10-02 11:28:56 -04:00

19 lines
469 B
Go

package forms
type TestForm struct {
Name string `form:"test_name" validate:"required"`
Description string `form:"test_description"`
Hardware int `form:"test_hardware" validate:"required"`
Benchmarks []uint `form:"test_benchmarks" validate:"required"`
}
func (t *TestForm) IsBenchmarkSelected(checkID uint) bool {
for _, selectedID := range t.Benchmarks {
if checkID == selectedID {
return true
}
}
return false
}