Finishing the test/edit route
Some checks are pending
ci/woodpecker/push/woodpecker Pipeline is pending
Some checks are pending
ci/woodpecker/push/woodpecker Pipeline is pending
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
package models
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"strconv"
|
||||
|
||||
"gorm.io/gorm"
|
||||
@@ -32,13 +31,8 @@ func (t *Test) SelectedBenchmarks() []string {
|
||||
return ids
|
||||
}
|
||||
|
||||
func (t *Test) IsBenchmarkSelected(benchmarkID string) bool {
|
||||
benchmarkConv, err := strconv.ParseUint(benchmarkID, 10, 0)
|
||||
if err != nil {
|
||||
fmt.Println("Error parsing Uint: ", err)
|
||||
}
|
||||
|
||||
benchmarkUint := uint(benchmarkConv)
|
||||
func (t *Test) IsBenchmarkSelected(benchmarkID uint) bool {
|
||||
benchmarkUint := uint(benchmarkID)
|
||||
|
||||
for _, b := range t.Benchmarks {
|
||||
if b.ID == benchmarkUint {
|
||||
|
Reference in New Issue
Block a user