feat: test add
This commit is contained in:
parent
012c76941d
commit
a5e464d4a7
2 changed files with 38 additions and 10 deletions
|
@ -10,9 +10,14 @@ const (
|
|||
)
|
||||
|
||||
type Testgroup struct {
|
||||
Id *int32 `db:"id"`
|
||||
ProblemId *int32 `db:"problem_id"`
|
||||
TestingStrategy *int32 `db:"testing_strategy"`
|
||||
Id *int32 `db:"id"`
|
||||
ProblemId *int32 `db:"problem_id"`
|
||||
TestingStrategy *TestingStrategy `db:"testing_strategy"`
|
||||
}
|
||||
|
||||
type TestgroupData struct {
|
||||
Ts TestingStrategy
|
||||
TestAmount int32
|
||||
}
|
||||
|
||||
func (TestingStrategy ts) Valid() error {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue